orospakr@orospakr-laptop:~/code/others/iwlwifi$ make KSRC=/usr/src/linux-source-2.6.22/
Makefile:19:
Makefile:20: WARNING: $SHELL not set to bash.
Makefile:21: If you experience build errors, try
Makefile:22: 'make SHELL=/bin/bash'.
Makefile:23:
make -C /usr/src/linux-source-2.6.22/ O=/usr/src/linux-source-2.6.22/ M=/home/orospakr/code/others/iwlwifi/compatible/ modules
make[1]: Entering directory `/usr/src/linux-source-2.6.22'
ERROR: Kernel configuration is invalid.
include/linux/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.
WARNING: Symbol version dump /usr/src/linux-source-2.6.22/Module.symvers
is missing; modules will have no dependencies and modversions.
CC [M] /home/orospakr/code/others/iwlwifi/compatible/base-3945.o
cc1: error: include/linux/autoconf.h: No such file or directory
In file included from include/linux/kernel.h:11,
from /home/orospakr/code/others/iwlwifi/compatible/base.c:40:
include/linux/linkage.h:4:25: error: asm/linkage.h: No such file or directory
In file included from include/linux/posix_types.h:47,
from include/linux/types.h:14,
from include/linux/kernel.h:13,
from /home/orospakr/code/others/iwlwifi/compatible/base.c:40:
/usr/lib/gcc/i486-linux-gnu/4.1.3/include/asm/posix_types.h:13:22: error: features.h: No such file or directory
/usr/lib/gcc/i486-linux-gnu/4.1.3/include/asm/posix_types.h:14:35: error: no include path in which to search for asm/posix_types.h
In file included from include/linux/kernel.h:13,
from /home/orospakr/code/others/iwlwifi/compatible/base.c:40:
include/linux/types.h:15:23: error: asm/types.h: No such file or directory
In file included from include/linux/kernel.h:13,
from /home/orospakr/code/others/iwlwifi/compatible/base.c:40:
include/linux/types.h:19: error: expected =, ,, ;, asm or __attribute__ before __kernel_dev_t
include/linux/types.h:22: error: expected =, ,, ;, asm or __attribute__ before dev_t