rtk_btusb: 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:08:22 +0000 (21:08 +0100)
With this, the GCC dependency is gone for good.

Change-Id: Icb21e4133a6bd872beeb907c671766809dd794af

Android.mk

index 74d7c3fde2c8bcb6f2ac73a9b5f30cc28d4275dd..00f98c21ce419134ab310ba02d7d9a8124b56366 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.
@@ -36,7 +36,7 @@ $(_rtkbtusb_ko): $(KERNEL_OUT)/arch/$(KERNEL_ARCH)/boot/$(BOARD_KERNEL_IMAGE_NAM
        @mkdir -p $(dir $@)
        @cp -R $(RTKBTUSB_PATH)/* $(_rtkbtusb_intermediates)/
        $(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 $@;
+       $(TARGET_KERNEL_CLANG_PATH)/bin/llvm-strip --strip-unneeded $@;
 
 include $(BUILD_SYSTEM)/base_rules.mk
 endif