rtl8822cs: Strip modules using llvm-strip
authorBruno Martins <bgcngm@gmail.com>
Fri, 20 Oct 2023 23:22:47 +0000 (00:22 +0100)
committerBruno Martins <bgcngm@gmail.com>
Sun, 22 Oct 2023 20:09:51 +0000 (20:09 +0000)
With this, the GCC dependency is gone for good.

Change-Id: Iece3d3e642434781a002b4d61d615afe70b1b19f

Android.mk

index 7a97d96a4f2dcc1e32db74eadc28d7676a6a3566..e2c8be5887d63b29007b7dfc85e0af9f69851924 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2021 The LineageOS Project
+# Copyright (C) 2021-2023 The LineageOS Project
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -35,7 +35,7 @@ $(_rtl8822cs_ko): $(KERNEL_OUT)/arch/$(KERNEL_ARCH)/boot/$(BOARD_KERNEL_IMAGE_NA
        @mkdir -p $(dir $@)
        @cp -R $(RTL8822CS_PATH)/* $(_rtl8822cs_intermediates)/
        $(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 $@;
+       $(TARGET_KERNEL_CLANG_PATH)/bin/llvm-strip --strip-unneeded $@;
 
 include $(BUILD_SYSTEM)/base_rules.mk
 endif