aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordianlujitao <dianlujitao@lineageos.org>2020-03-11 19:05:29 +0800
committerBruno Martins <bgcngm@gmail.com>2020-05-29 17:31:10 +0200
commita24144faf2f81a02af9006fb95d60f0273914cb1 (patch)
treea4dcd3eff7e91932d86048bb2a1954cb332e44aa
parentd3a50ee8667f5dd7c46850ec36eed7f9ab76f37f (diff)
downloadvendor_lineage-a24144faf2f81a02af9006fb95d60f0273914cb1.tar.gz
vendor_lineage-a24144faf2f81a02af9006fb95d60f0273914cb1.tar.bz2
vendor_lineage-a24144faf2f81a02af9006fb95d60f0273914cb1.zip
kernel: Add bison and flex to build environment
* Required since Linux 4.16 Change-Id: I107ea1b097d72a7b5251273c8c7e33ad6585b59c Signed-off-by: Jesse Chan <jc@lineageos.org>
-rw-r--r--config/BoardConfigKernel.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/BoardConfigKernel.mk b/config/BoardConfigKernel.mk
index b0a75ef6..5b1a6738 100644
--- a/config/BoardConfigKernel.mk
+++ b/config/BoardConfigKernel.mk
@@ -149,6 +149,11 @@ endif
KERNEL_MAKE_FLAGS += HOSTCC=$(KERNEL_HOST_TOOLCHAIN_ROOT)gcc
KERNEL_MAKE_FLAGS += HOSTCXX=$(KERNEL_HOST_TOOLCHAIN_ROOT)g++
+# Since Linux 4.16, flex and bison are required
+KERNEL_MAKE_FLAGS += LEX=$(BUILD_TOP)/prebuilts/build-tools/$(HOST_OS)-x86/bin/flex
+KERNEL_MAKE_FLAGS += YACC=$(BUILD_TOP)/prebuilts/build-tools/$(HOST_OS)-x86/bin/bison
+TOOLS_PATH_OVERRIDE += BISON_PKGDATADIR=$(BUILD_TOP)/prebuilts/build-tools/common/bison
+
# Set the out dir for the kernel's O= arg
# This needs to be an absolute path, so only set this if the standard out dir isn't used
OUT_DIR_PREFIX := $(shell echo $(OUT_DIR) | sed -e 's|/target/.*$$||g')