From 1f2ca33f5f43d5409416f1ae8bc6bda794393f0d Mon Sep 17 00:00:00 2001 From: Christian Hoffmann Date: Sat, 11 Feb 2023 11:54:17 +0100 Subject: [PATCH] amlogic: Compile kernel modules with clang Change-Id: I486acdee0a13b5c265392b8b76ad2ebc185d6758 --- Android.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1