Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

make kernel module

obj-m += hello-1.o

all:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

clean:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
Source by tldp.org #
 
PREVIOUS NEXT
Tagged: #kernel #module
ADD COMMENT
Topic
Name
9+3 =