2019-07-29 08:12:25 +00:00
|
|
|
ifneq ($(KERNELRELEASE), )
|
|
|
|
obj-m := procapi.o
|
2019-07-31 09:48:44 +00:00
|
|
|
procapi-objs += proc_api.o cJSON.o
|
2019-07-29 08:12:25 +00:00
|
|
|
else
|
|
|
|
#KDIR ?= /opt/fsl-kernel/x86/linux-4.9.140
|
2019-09-02 07:14:09 +00:00
|
|
|
#KDIR ?= /home/hx/raspberrypi/linux
|
|
|
|
KDIR ?= $(HUACHENG_ARM64_KERNEL)
|
2019-07-29 08:12:25 +00:00
|
|
|
#PWD := $(shell pwd)
|
|
|
|
all:
|
|
|
|
make -C $(KDIR) M=$(PWD) modules
|
|
|
|
clean:
|
|
|
|
make -C $(KDIR) M=$(PWD) clean
|
|
|
|
endif
|