From ae301071b77f118bb22d805b3238fc93bfd28829 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Sat, 16 Dec 2023 22:51:32 +0000 Subject: [PATCH] optee: Remove Android makefile with old-style build rules These build rules are no longer needed, devices now build the module as a real external kernel module. Change-Id: I11546f3dbfe40e8cbcf0653b0a7274a81a7ad328 --- Android.mk | 49 ------------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 Android.mk diff --git a/Android.mk b/Android.mk deleted file mode 100644 index 49d71dd..0000000 --- a/Android.mk +++ /dev/null @@ -1,49 +0,0 @@ -# -# 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. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -ifneq ($(filter g12a g12b sm1 s4 sc2 t7,$(TARGET_AMLOGIC_SOC)),) -ifneq ($(TARGET_USES_P_MODULES),true) -LOCAL_PATH := $(call my-dir) - -ifeq ($(TARGET_PREBUILT_KERNEL),) -OPTEE_PATH := $(abspath $(call my-dir)) - -include $(CLEAR_VARS) - -LOCAL_MODULE := optee-module -LOCAL_MODULE_SUFFIX := .ko -LOCAL_MODULE_CLASS := ETC -LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/lib/modules - -_optee_intermediates := $(call intermediates-dir-for,$(LOCAL_MODULE_CLASS),$(LOCAL_MODULE)) -_optee_ko := $(_optee_intermediates)/$(LOCAL_MODULE)$(LOCAL_MODULE_SUFFIX) -KERNEL_OUT := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ - -$(_optee_ko): $(KERNEL_OUT)/arch/$(KERNEL_ARCH)/boot/$(BOARD_KERNEL_IMAGE_NAME) - @mkdir -p $(dir $@) - @cp -R $(OPTEE_PATH)/* $(_optee_intermediates)/ - $(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 \ - $(TARGET_KERNEL_CLANG_PATH)/bin/llvm-strip --strip-unneeded $$f; \ - cp $$f $(KERNEL_MODULES_OUT)/lib/modules; \ - done; - touch $(_optee_intermediates)/optee-module.ko - -include $(BUILD_SYSTEM)/base_rules.mk -endif -endif -endif -- 2.20.1