media: 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>
Fri, 20 Oct 2023 23:22:47 +0000 (00:22 +0100)
With this, the GCC dependency is gone for good.

Change-Id: Ia15dfd29b5c71e6e02a2dda43fd897c59f7d6a9e

Android.mk

index 2988d5a4ee25e5d82b3bb5ec84ef34211f0afe2d..e3071634bc7f7c43d6b7e5b9b982d76a15b2bd20 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.
@@ -60,7 +60,7 @@ $(_media_ko): $(KERNEL_OUT)/arch/$(KERNEL_ARCH)/boot/$(BOARD_KERNEL_IMAGE_NAME)
        $(PATH_OVERRIDE) $(KERNEL_MAKE_CMD) $(KERNEL_MAKE_FLAGS) -C $(KERNEL_OUT) M=$(abspath $(_media_intermediates)) ARCH=$(TARGET_KERNEL_ARCH) $(KERNEL_CROSS_COMPILE) $(KERNEL_CLANG_TRIPLE) $(KERNEL_CC) EXTRA_CFLAGS="$(MEDIA_CFLAGS)" $(MEDIA_CONFIGS) modules
        modules=$$(find $(_media_intermediates) -type f -name '*.ko'); \
        for f in $$modules; do \
-               $(KERNEL_TOOLCHAIN_PATH)strip --strip-unneeded $$f; \
+               $(TARGET_KERNEL_CLANG_PATH)/bin/llvm-strip --strip-unneeded $$f; \
                cp $$f $(KERNEL_MODULES_OUT)/lib/modules; \
        done;
        touch $(_media_intermediates)/media.ko