# Linux driver build kernel source code path on X86 server KERNAL_DIR ?= /lib/modules/$(shell uname -r)/build ARCH=${shell uname -p} # Fix bug: module verification failed: signature and/or required key missing - tainting kernel CONFIG_MODULE_SIG=n # Linux kernel modules obj-m += ldd1_hello.o obj-m += ldd2_chrdev.o obj-m += ldd3_ioctl.o modules: $(MAKE) -C $(KERNAL_DIR) M=$(shell pwd) modules @make clear clear: @rm -f *.o .*.cmd *.cmd *.mod *.mod.c @rm -rf *~ core .depend .tmp_versions Module.symvers modules.order -f @rm -f .*ko.cmd .*.o.cmd .*.o.d @rm -f *.unsigned clean: @rm -f *.ko