amlogic: Compile kernel modules with clang
authorChristian Hoffmann <chrmhoffmann@gmail.com>
Sat, 11 Feb 2023 10:54:17 +0000 (11:54 +0100)
committerChristian Hoffmann <chrmhoffmann@gmail.com>
Sat, 11 Feb 2023 10:58:40 +0000 (11:58 +0100)
Change-Id: I0b17a4a893412f0f68bdf9600a0caa6ead660b55

Android.mk

index 878e8077ef8b6591b311883eec4a1fe1d921257a..923e0df1aaeb0660149ca771b3042bdf4552db81 100644 (file)
@@ -34,7 +34,7 @@ KERNEL_OUT := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ
 $(_optee_ko): $(KERNEL_OUT)/arch/$(KERNEL_ARCH)/boot/$(BOARD_KERNEL_IMAGE_NAME)
        @mkdir -p $(dir $@)
        @cp -R $(OPTEE_PATH)/* $(_optee_intermediates)/
-       $(hide) +$(KERNEL_MAKE_CMD) $(PATH_OVERRIDE) $(KERNEL_MAKE_FLAGS) -C $(KERNEL_OUT) M=$(abspath $(_optee_intermediates)) ARCH=$(TARGET_KERNEL_ARCH) $(KERNEL_CROSS_COMPILE) modules
+       $(PATH_OVERRIDE) $(KERNEL_MAKE_CMD) $(KERNEL_MAKE_FLAGS) -C $(KERNEL_OUT) M=$(abspath $(_optee_intermediates)) ARCH=$(TARGET_KERNEL_ARCH) $(KERNEL_CROSS_COMPILE) $(KERNEL_CLANG_TRIPLE) $(KERNEL_CC) modules
        modules=$$(find $(_optee_intermediates) -type f -name '*.ko'); \
        for f in $$modules; do \
                $(KERNEL_TOOLCHAIN_PATH)strip --strip-unneeded $$f; \