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 20:05:38 +0000 (21:05 +0100)
Change-Id: I8bb39dcf9b792fe78b70ad75b6a38d379c514c4e

Android.mk

index 0d745efd713cb872313cd9f08c02070e9545a925..74d7c3fde2c8bcb6f2ac73a9b5f30cc28d4275dd 100644 (file)
@@ -35,7 +35,7 @@ RTKBTUSB_ABSOLUTE := $(abspath $(_rtkbtusb_intermediates))
 $(_rtkbtusb_ko): $(KERNEL_OUT)/arch/$(KERNEL_ARCH)/boot/$(BOARD_KERNEL_IMAGE_NAME)
        @mkdir -p $(dir $@)
        @cp -R $(RTKBTUSB_PATH)/* $(_rtkbtusb_intermediates)/
-       $(hide) +$(KERNEL_MAKE_CMD) $(PATH_OVERRIDE) $(KERNEL_MAKE_FLAGS) -C $(KERNEL_OUT) M=$(abspath $(_rtkbtusb_intermediates)) ARCH=$(TARGET_KERNEL_ARCH) $(KERNEL_CROSS_COMPILE) $(RTKBTUSB_CONFIGS) modules
+       $(PATH_OVERRIDE) $(KERNEL_MAKE_CMD) $(KERNEL_MAKE_FLAGS) -C $(KERNEL_OUT) M=$(abspath $(_rtkbtusb_intermediates)) ARCH=$(TARGET_KERNEL_ARCH) $(KERNEL_CROSS_COMPILE) $(RTKBTUSB_CONFIGS) $(KERNEL_CLANG_TRIPLE) $(KERNEL_CC) modules
        $(KERNEL_TOOLCHAIN_PATH)strip --strip-unneeded $@;
 
 include $(BUILD_SYSTEM)/base_rules.mk