Skip to content

Commit

Permalink
Revert "kernel: Use CPATH for including host headers"
Browse files Browse the repository at this point in the history
This reverts commit 2baeb4f.

CPATH is used for both host and target. Meaning that system headers
will be used for target compilation. It is also a higher priority than
isystem, which is used for the compiler include paths, making this
override the compiler headers.

Change-Id: I4d836698f25d2d97d917d323a22ee359b937fcb4
  • Loading branch information
webgeek1234 authored and Stricted committed Nov 22, 2024
1 parent e84e4c6 commit 6bdd847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/BoardConfigKernel.mk
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ ifneq ($(KERNEL_NO_GCC), true)
endif
endif

KERNEL_MAKE_FLAGS += CPATH="/usr/include:/usr/include/x86_64-linux-gnu" HOSTLDFLAGS="-L/usr/lib/x86_64-linux-gnu -L/usr/lib64 -fuse-ld=lld"
KERNEL_MAKE_FLAGS += HOSTCFLAGS="-I/usr/include -I/usr/include/x86_64-linux-gnu" HOSTLDFLAGS="-L/usr/lib/x86_64-linux-gnu -L/usr/lib64 -fuse-ld=lld"

ifeq ($(KERNEL_ARCH),arm64)
# Add 32-bit GCC to PATH so that arm-linux-androidkernel-as is available for CONFIG_COMPAT_VDSO
Expand Down

0 comments on commit 6bdd847

Please sign in to comment.