[Buildroot] [git commit branch/2020.02.x] support/dependencies: clarify intended use of host bison/flex

Peter Korsgaard peter at korsgaard.com
Mon Dec 7 20:36:04 UTC 2020

commit: https://git.buildroot.net/buildroot/commit/?id=1e063bef46bb7ddd1087a73d6acec02f8005c335
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2020.02.x

We should not rely on host installed bison/flex for target code. This
ensures better reproducibility of generated code.


Cc: Yann E. MORIN <yann.morin.1998 at free.fr>
Signed-off-by: Baruch Siach <baruch at tkos.co.il>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
(cherry picked from commit 1b1c049af29d11badc85ce4833240abe1c3fbcbc)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
 support/dependencies/check-host-bison-flex.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/support/dependencies/check-host-bison-flex.mk b/support/dependencies/check-host-bison-flex.mk
index 233b6c51cc..14a232fd44 100644
--- a/support/dependencies/check-host-bison-flex.mk
+++ b/support/dependencies/check-host-bison-flex.mk
@@ -1,5 +1,9 @@
 # If the system lacks bison or flex, add
 # dependencies to suitable host packages
+# BR2_{BISON,FLES}_HOST_DEPENDENCY should only be used to build code
+# that runs on host, e.g. Kconfig. To build code for target use plain
+# host-{bison,flex}.
 ifeq ($(shell which bison 2>/dev/null),)

More information about the buildroot mailing list