dhd-driver: Strip modules using llvm-strip
authorBruno Martins <bgcngm@gmail.com>
Fri, 20 Oct 2023 23:16:58 +0000 (00:16 +0100)
committerBruno Martins <bgcngm@gmail.com>
Fri, 20 Oct 2023 23:20:50 +0000 (00:20 +0100)
With this, the GCC dependency is gone for good.

Change-Id: I61acca2e1fb91353154567b9bff340cf5ca99119

Android.mk

index 5c228efe706f3568ac2f39f2ba16e1140103ed78..b0ce14a1832c39b494304785616a950d2f4e6daa 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 @@ $(_dhd_ko): $(KERNEL_OUT)/arch/$(KERNEL_ARCH)/boot/$(BOARD_KERNEL_IMAGE_NAME)
        @mkdir -p $(dir $@)
        @cp -R $(DHD_PATH)/* $(dir $@)/
        $(PATH_OVERRIDE) $(KERNEL_MAKE_CMD) $(KERNEL_MAKE_FLAGS) -C $(_dhd_intermediates) M=$(abspath $(_dhd_intermediates)) ARCH=$(TARGET_KERNEL_ARCH) $(KERNEL_CROSS_COMPILE) $(KERNEL_CLANG_TRIPLE) $(KERNEL_CC) KERNEL_SRC=$(abspath $(KERNEL_OUT)) bcmdhd_sdio
-       $(KERNEL_TOOLCHAIN_PATH)strip --strip-unneeded $@;
+       $(TARGET_KERNEL_CLANG_PATH)/bin/llvm-strip --strip-unneeded $@;
 
 include $(BUILD_SYSTEM)/base_rules.mk
 endif