amlogic: Compile kernel modules with clang
authorChristian Hoffmann <chrmhoffmann@gmail.com>
Sat, 11 Feb 2023 10:54:17 +0000 (11:54 +0100)
committerBruno Martins <bgcngm@gmail.com>
Sun, 22 Oct 2023 16:28:38 +0000 (17:28 +0100)
Change-Id: I486acdee0a13b5c265392b8b76ad2ebc185d6758

Android.mk

index 5795dd15b8ebcc8a60dbb75039da124d00ffc7f2..7a97d96a4f2dcc1e32db74eadc28d7676a6a3566 100644 (file)
@@ -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