Lab 6
This commit is contained in:
16
lab_6/Makefile
Normal file
16
lab_6/Makefile
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
ifneq ($(KERNELRELEASE),)
|
||||
include Kbuild
|
||||
else
|
||||
# normal makefile
|
||||
KDIR ?= /lib/modules/`uname -r`/build
|
||||
|
||||
default:
|
||||
$(MAKE) -C $(KDIR) M=$$PWD
|
||||
cp hello1.ko hello1.ko.unstripped
|
||||
$(CROSS_COMPILE)strip -g hello1.ko
|
||||
|
||||
clean:
|
||||
$(MAKE) -C $(KDIR) M=$$PWD clean
|
||||
|
||||
endif
|
||||
Reference in New Issue
Block a user