aboutsummaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorGravatar Baruch Siach <baruch@tkos.co.il>2020-11-20 07:08:41 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2020-11-22 15:24:12 +0100
commit1b1c049af29d11badc85ce4833240abe1c3fbcbc (patch)
tree279c5decc3347775377a456270ed6510b6055d2f /support
parentc356b20ba8afa79b08fc3d30a1c3f60d9f3c6f65 (diff)
downloadbuildroot-1b1c049af29d11badc85ce4833240abe1c3fbcbc.tar.gz
buildroot-1b1c049af29d11badc85ce4833240abe1c3fbcbc.tar.bz2
support/dependencies: clarify intended use of host bison/flex
We should not rely on host installed bison/flex for target code. This ensures better reproducibility of generated code. http://lists.busybox.net/pipermail/buildroot/2020-November/296786.html Cc: Yann E. MORIN <yann.morin.1998@free.fr> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'support')
-rw-r--r--support/dependencies/check-host-bison-flex.mk4
1 files changed, 4 insertions, 0 deletions
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),)
BR2_BISON_HOST_DEPENDENCY = host-bison