kernel: Use CPATH for including host headers
* Fixes build on distros where CAP_LAST_CAP @ /usr/include/linux/capability.h doesn't match target device kernel src. Change-Id: Iafdf9694fd165c83b22bd95df95e940ecceb0fdd
This commit is contained in:
parent
70d5cc42e0
commit
2baeb4fb8b
1 changed files with 1 additions and 1 deletions
|
@ -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 += CPATH="/usr/include:/usr/include/x86_64-linux-gnu" HOSTCFLAGS="-L/usr/lib/x86_64-linux-gnu -L/usr/lib64"
|
||||
endif
|
||||
|
||||
ifneq ($(TARGET_KERNEL_ADDITIONAL_FLAGS),)
|
||||
|
|
Loading…
Reference in a new issue