Ioctl
This commit is contained in:
parent
04b82dab30
commit
0657191cf0
5 changed files with 143 additions and 0 deletions
11
ioctl_chardev/Makefile
Normal file
11
ioctl_chardev/Makefile
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
obj-m = my-ioctl.o
|
||||
|
||||
all: test.elf
|
||||
make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) modules
|
||||
|
||||
clean:
|
||||
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
|
||||
rm test.elf
|
||||
|
||||
test.elf: test.c
|
||||
$(CC) test.c -o test.elf
|
||||
Loading…
Add table
Add a link
Reference in a new issue