14 lines
352 B
Makefile
Executable File
14 lines
352 B
Makefile
Executable File
ifneq ($(KERNELRELEASE), )
|
|
obj-m := shmdev.o
|
|
shmdev-objs += shm_dev.o shm_proc.o
|
|
#KBUILD_EXTMOD := /home/hx/secogateway/Product/modules/proc_api
|
|
else
|
|
#KDIR ?= /opt/fsl-kernel/x86/linux-4.9.140
|
|
#KDIR ?= /home/hx/raspberrypi/linux
|
|
KDIR ?= $(HUACHENG_ARM64_KERNEL)
|
|
all:
|
|
make -C $(KDIR) M=$(PWD) modules
|
|
clean:
|
|
make -C $(KDIR) M=$(PWD) clean
|
|
endif
|