From: Bruno Martins Date: Fri, 20 Oct 2023 23:22:47 +0000 (+0100) Subject: media: Strip modules using llvm-strip X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3ef39a0cd8b265c79e47ba952fbd372308425352;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_amlogic_kernel-modules_media.git media: Strip modules using llvm-strip With this, the GCC dependency is gone for good. Change-Id: Ia15dfd29b5c71e6e02a2dda43fd897c59f7d6a9e --- diff --git a/Android.mk b/Android.mk index 2988d5a..e307163 100644 --- a/Android.mk +++ b/Android.mk @@ -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