#
-# 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.
$(PATH_OVERRIDE) $(KERNEL_MAKE_CMD) $(KERNEL_MAKE_FLAGS) -C $(KERNEL_OUT) M=$(abspath $(_optee_intermediates)) ARCH=$(TARGET_KERNEL_ARCH) $(KERNEL_CROSS_COMPILE) $(KERNEL_CLANG_TRIPLE) $(KERNEL_CC) modules
modules=$$(find $(_optee_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 $(_optee_intermediates)/optee-module.ko