kernel: Remove darwin support

Darwin kernel build is not supported for >=5.10
and non-standard clang versions.
Another side effect is that it causes LD_LIBRARY_PATH
to get overwritten, which breaks certain configurations.
Let's just get rid of it since AOSP darwin build is no longer supported.

Change-Id: I9ac642996b90937bd9c52138fb06bf1eff901c8b
This commit is contained in:
Michael Bestas 2022-11-01 14:54:44 +02:00
parent 19c16dff32
commit 0693b10516
No known key found for this signature in database
GPG key ID: CC95044519BE6669

View file

@ -93,7 +93,6 @@ KERNEL_MAKE_FLAGS :=
KERNEL_MAKE_FLAGS += -j$(shell getconf _NPROCESSORS_ONLN)
TOOLS_PATH_OVERRIDE := \
LD_LIBRARY_PATH=$(BUILD_TOP)/prebuilts/tools-lineage/$(HOST_PREBUILT_TAG)/lib:$$LD_LIBRARY_PATH \
PERL5LIB=$(BUILD_TOP)/prebuilts/tools-lineage/common/perl-base
# 5.10+ can fully compile without gcc
@ -151,11 +150,7 @@ ifeq (,$(filter 5.10, $(TARGET_KERNEL_VERSION)))
endif
endif
ifeq ($(HOST_OS),darwin)
KERNEL_MAKE_FLAGS += HOSTCFLAGS="-I$(BUILD_TOP)/external/elfutils/libelf -I/usr/local/opt/openssl/include" HOSTLDFLAGS="-L/usr/local/opt/openssl/lib -fuse-ld=lld"
else
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"
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"
ifeq ($(KERNEL_ARCH),arm64)
# Add 32-bit GCC to PATH so that arm-linux-androidkernel-as is available for CONFIG_COMPAT_VDSO