This commit is contained in:
2025-01-01 22:13:51 +02:00
parent dcf7056a24
commit 850591ae2c
7 changed files with 270 additions and 0 deletions

16
lab_6/Makefile Normal file
View 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