From 0a5489444173a68c7b45646d5c1ba31c43b872ad 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: I8bb39dcf9b792fe78b70ad75b6a38d379c514c4e --- Android.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Android.mk b/Android.mk index 0d745ef..74d7c3f 100644 --- a/Android.mk +++ b/Android.mk @@ -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 -- 2.20.1