aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoonas Kylmälä <joonas.kylmala@iki.fi>2020-06-26 18:26:43 -0400
committerJoonas Kylmälä <joonas.kylmala@iki.fi>2020-06-26 18:26:43 -0400
commit48e63d04d7afd554405724e89d35b65d2250a55a (patch)
tree00dc85cbf15f2b6dd33af11e2f3a3a48f65a1fd0
parentebb8aee3f5ba5bb0ee0d1fef78d740f567d1586f (diff)
downloadvendor_lineage-48e63d04d7afd554405724e89d35b65d2250a55a.tar.gz
vendor_lineage-48e63d04d7afd554405724e89d35b65d2250a55a.tar.bz2
vendor_lineage-48e63d04d7afd554405724e89d35b65d2250a55a.zip
kernel: lower the precedence of system include files
Using the -isystem instead of -I for system headers will use the linux kernel header files if they exists instead of the build system ones. This prevents any build errors in case the linux kernel header files are changed. Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
-rw-r--r--config/BoardConfigKernel.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/BoardConfigKernel.mk b/config/BoardConfigKernel.mk
index 5b1a6738..8acf4195 100644
--- a/config/BoardConfigKernel.mk
+++ b/config/BoardConfigKernel.mk
@@ -118,7 +118,7 @@ endif
ifeq ($(HOST_OS),darwin)
KERNEL_MAKE_FLAGS += HOSTCFLAGS="-I$(BUILD_TOP)/external/elfutils/libelf -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib"
else
- KERNEL_MAKE_FLAGS += HOSTCFLAGS="-I/usr/include -I/usr/include/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -L/usr/lib64"
+ KERNEL_MAKE_FLAGS += HOSTCFLAGS="-isystem /usr/include -isystem /usr/include/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -L/usr/lib64"
endif
ifneq ($(TARGET_KERNEL_ADDITIONAL_FLAGS),)