From: Christian Hoffmann Date: Sat, 11 Feb 2023 10:54:17 +0000 (+0100) Subject: amlogic: Compile kernel modules with clang X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1f2ca33f5f43d5409416f1ae8bc6bda794393f0d;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_amlogic_kernel-modules_rtl8822cs.git amlogic: Compile kernel modules with clang Change-Id: I486acdee0a13b5c265392b8b76ad2ebc185d6758 --- diff --git a/Android.mk b/Android.mk index 5795dd1..7a97d96 100644 --- a/Android.mk +++ b/Android.mk @@ -34,7 +34,7 @@ KERNEL_OUT := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ $(_rtl8822cs_ko): $(KERNEL_OUT)/arch/$(KERNEL_ARCH)/boot/$(BOARD_KERNEL_IMAGE_NAME) @mkdir -p $(dir $@) @cp -R $(RTL8822CS_PATH)/* $(_rtl8822cs_intermediates)/ - $(hide) +$(KERNEL_MAKE_CMD) $(PATH_OVERRIDE) $(KERNEL_MAKE_FLAGS) -C $(KERNEL_OUT) M=$(abspath $(_rtl8822cs_intermediates)) ARCH=$(TARGET_KERNEL_ARCH) $(KERNEL_CROSS_COMPILE) $(RTL8822CS_CONFIGS) modules + $(PATH_OVERRIDE) $(KERNEL_MAKE_CMD) $(KERNEL_MAKE_FLAGS) -C $(KERNEL_OUT) M=$(abspath $(_rtl8822cs_intermediates)) ARCH=$(TARGET_KERNEL_ARCH) $(KERNEL_CROSS_COMPILE) $(RTL8822CS_CONFIGS) $(KERNEL_CLANG_TRIPLE) $(KERNEL_CC) modules $(KERNEL_TOOLCHAIN_PATH)strip --strip-unneeded $@; include $(BUILD_SYSTEM)/base_rules.mk