-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (24 loc) · 860 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# SPDX-License-Identifier: GPL-2.0-only
ccflags-y+=-Werror
obj-m += optee.o
obj-y += optee/
optee-objs := tee_core.o \
tee_shm.o \
tee_shm_pool.o \
tee_data_pipe.o
LOCAL_INCLUDES += -I$(M)/include \
-I$(M)/include/linux \
-I$(KERNEL_SRC)/$(M)/include \
-I$(KERNEL_SRC)/$(M)/include/linux
ccflags-y+=$(LOCAL_INCLUDES)
EXTRA_CFLAGS += $(LOCAL_INCLUDES)
all:
@$(MAKE) -C $(KERNEL_SRC) M=$(M) modules
#@$(MAKE) -C $(KERNEL_SRC) M=$(M)/optee --trace modules
modules_install:
@echo "$(MAKE) INSTALL_MOD_STRIP=1 M=$(M) -C $(KERNEL_SRC) modules_install"
@$(MAKE) INSTALL_MOD_STRIP=1 M=$(M) -C $(KERNEL_SRC) modules_install
mkdir -p ${OUT_DIR}/../vendor_lib
cd ${OUT_DIR}/$(M)/; find -name "*.ko" -exec cp {} ${OUT_DIR}/../vendor_lib/ \;
clean:
$(MAKE) -C $(KERNEL_SRC) M=$(M) clean