27 lines
562 B
Makefile
27 lines
562 B
Makefile
obj-m += xpo_xor_module.o
|
|
|
|
all: build
|
|
|
|
build:
|
|
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
|
|
|
|
clean:
|
|
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
|
|
|
|
load:
|
|
sudo insmod xpo_xor_module.ko
|
|
|
|
unload:
|
|
sudo rmmod xpo_xor_module
|
|
|
|
read:
|
|
sudo cat /dev/xpo_xor_module
|
|
|
|
write1:
|
|
sudo echo "NikolaJeVelik" > /dev/xpo_xor_module
|
|
|
|
write2:
|
|
sudo echo "1234567890NikolaJeVelokMozKiHodiNaFaksInJeVMariboruInSedajDelaNalogoSajmujedolgcajtinbirajepocelkajdrugega" > /dev/xpo_xor_module
|
|
|
|
zip:
|
|
zip naloga.zip Makefile xpo_xor_module.c xpo_xor_module.h
|