21 lines
443 B
Makefile
21 lines
443 B
Makefile
export ARCH = arm64
|
|
export CROSS_COMPILE = aarch64-linux-gnu-
|
|
|
|
ARCH=arm64
|
|
CROSS_COMPILE = aarch64-linux-gnu-
|
|
|
|
KERNELDIR ?= /public/linboheng/workspace/ucp4008_nr_integrated_small_cell_new_kernel/kernel/linux-5.10.165
|
|
PWD = $(shell pwd)
|
|
obj-m := ioreg.o
|
|
|
|
# Specify flags for the module compilation.
|
|
ccflags-y = -g -O0
|
|
|
|
build: kernel_modules
|
|
kernel_modules:
|
|
make -C $(KERNELDIR) M=$(PWD) modules
|
|
clean:
|
|
make -C $(KERNELDIR) M=$(PWD) clean
|
|
|
|
|