1# Copyright (C) 2021 The Android Open Source Project 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15kmi_sym-objs := kmi_sym_main.o kmi_sym_list.o 16obj-m += kmi_sym.o 17 18GKI_VER ?= 5.10 19GKI_DIR ?= ${ANDROID_BUILD_TOP}/kernel 20KSRC=${GKI_DIR}/out/android12-${GKI_VER}/common 21 22GKI_BID ?= 7618735 23CFLAGS_kmi_sym_main.o = -DGKI_BID=${GKI_BID} 24AFLAGS_kmi_sym_list.o = -DGKI_BID=${GKI_BID} 25 26all: 27 make -C $(KSRC) M=$(PWD) modules 28 cp kmi_sym.ko prebuilts/kmi_sym-a12-${GKI_VER}-${GKI_BID}.ko 29 30clean: 31 make -C $(KSRC) M=$(PWD) clean 32