26 lines
540 B
Makefile
26 lines
540 B
Makefile
export ARCH=arm64
|
|
export CROSS_COMPILE=aarch64-linux-gnu-
|
|
#KERNELDIR = /public/liweihua/workspace/linux-5.0.21
|
|
KERNELDIR = /public/liweihua/workspace/linux-5.10.165
|
|
|
|
OBJ = ARM_STC
|
|
|
|
PWD = $(shell pwd)
|
|
# Kernel modules
|
|
ifeq ($(OBJ),ARM_STC)
|
|
obj-m = stc.o
|
|
#mycache-objs = osp_sm_ddr.o cache.o
|
|
stc-y := stc-dev.o
|
|
endif
|
|
|
|
# Specify flags for the module compilation.
|
|
ccflags-y = -g -O2
|
|
#INCLUDE += -l./../../common/
|
|
build: kernel_modules
|
|
kernel_modules:
|
|
make -C $(KERNELDIR) M=$(PWD) modules
|
|
clean:
|
|
make -C $(KERNELDIR) M=$(PWD) clean
|
|
|
|
|