summaryrefslogtreecommitdiffstats
path: root/support/dependencies
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2018-08-17 18:06:48 +0200
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-08-20 16:01:42 +0200
commit3ab56f8a63daceeda8548b02f5db40e44fd2eb34 (patch)
tree7fde2842a3a1139660ae101219e5afaa3318b98a /support/dependencies
parent373ac58b82d2430b745e90c7c8b39e319949882a (diff)
downloadbuildroot-3ab56f8a63daceeda8548b02f5db40e44fd2eb34.tar.gz
buildroot-3ab56f8a63daceeda8548b02f5db40e44fd2eb34.zip
support/dependencies: check for system-provided bison and flex
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Arnout Vandecappelle <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'support/dependencies')
-rw-r--r--support/dependencies/check-host-bison-flex.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/support/dependencies/check-host-bison-flex.mk b/support/dependencies/check-host-bison-flex.mk
new file mode 100644
index 0000000000..233b6c51cc
--- /dev/null
+++ b/support/dependencies/check-host-bison-flex.mk
@@ -0,0 +1,10 @@
+# If the system lacks bison or flex, add
+# dependencies to suitable host packages
+
+ifeq ($(shell which bison 2>/dev/null),)
+BR2_BISON_HOST_DEPENDENCY = host-bison
+endif
+
+ifeq ($(shell which flex 2>/dev/null),)
+BR2_FLEX_HOST_DEPENDENCY = host-flex
+endif
OpenPOWER on IntegriCloud