yb_arm/driver/cache/Makefile
2023-07-12 14:14:31 +08:00

26 lines
599 B
Makefile

export ARCH=arm64
export CROSS_COMPILE=aarch64-linux-gnu-
#KERNELDIR = /public/liweihua/workspace/linux-5.15.40
KERNELDIR = /public/liweihua/workspace/linux-5.10.165
OBJ = SM_DDR
PWD = $(shell pwd)
# Kernel modules
ifeq ($(OBJ),SM_DDR)
obj-m=ucp4008cache.o
#ucp4008cache-objs=osp_sm_ddr.o
#ucp4008cache-objs = cache.o osp_sm_ddr.o
ucp4008cache-y:=osp_sm_ddr.o cache.o
endif
# Specify flags for the module compilation.
ccflags-y = -g -O0
#INCLUDE += -l./../../common/
build: kernel_modules
kernel_modules:
make -C $(KERNELDIR) M=$(PWD) modules
clean:
make -C $(KERNELDIR) M=$(PWD) clean