ok takze uz jsem se zacal hrabat i v makefile
dle navodu mam napsat toto:
#sudo make all => generate ipg.ko
dostavam ale error:
make: *** empty variable name. Stop.
samotny #sudo make all
make -C /lib/modules/2.6.22-14-generic/build SUBDIRS=/usr/src/network modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.22-14-generic'
CC [M] /usr/src/network/ipg_main.o
In file included from /usr/src/network/ipg_main.c:159:
/usr/src/network/ipg.h:101:26: error: linux/config.h: No such file or directory
In file included from /usr/src/network/ipg_main.c:159:
/usr/src/network/ipg.h:130: error: ‘UTS_RELEASE’ undeclared here (not in a function)
/usr/src/network/ipg_main.c: In function ‘ipg_nic_open’:
/usr/src/network/ipg_main.c:1960: warning: ‘deprecated_irq_flag’ is deprecated (declared at include/linux/interrupt.h:66)
/usr/src/network/ipg_main.c:1962: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/usr/src/network/ipg_main.c: In function ‘init_module’:
/usr/src/network/ipg_main.c:4045: warning: implicit declaration of function ‘pci_module_init’
make[2]: *** [/usr/src/network/ipg_main.o] Error 1
make[1]: *** [_module_/usr/src/network] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic'
make: *** [all] Error 2