From 1b1c049af29d11badc85ce4833240abe1c3fbcbc Mon Sep 17 00:00:00 2001 From: Baruch Siach Date: Fri, 20 Nov 2020 07:08:41 +0200 Subject: [PATCH] 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 Signed-off-by: Baruch Siach Signed-off-by: Peter Korsgaard --- 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),) BR2_BISON_HOST_DEPENDENCY = host-bison -- 2.30.2