Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2baeb4fb authored by LuK1337's avatar LuK1337 Committed by Łukasz Patron
Browse files

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
parent 70d5cc42
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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),)