obj += timer.o
.phony: all clean
all:
make V=1 -C /lib/modules/$(shell uname -r)/build M=$(shell
pwd)
modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(shell pwd)
SUBDIRS=$
(shell pwd) clean
Without debug(without V=1), heres the debug
make -C /lib/modules/2.6.35-22-generic/build M=/home/zix/modules
modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.35-22-generic'
Building modules, stage 2.
MODPOST 0 modules
make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-22-generic'
Heres the debug below with V=1.
root@me-AOHAPPY:/home/zix/modules# make
make V=1 -C /lib/modules/2.6.35-22-generic/build M=/home/zix/modules
modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.35-22-generic'
test -e include/generated/autoconf.h -a -e include/config/auto.conf ||
( \
echo; \
echo " ERROR: Kernel configuration is invalid.";
\
echo " include/generated/autoconf.h or include/config/
auto.conf are missing.";\
echo " Run 'make oldconfig && make prepare' on kernel
src to
fix it."; \
echo; \
/bin/false)
mkdir -p /home/zix/modules/.tmp_versions ; rm -f /home/zix/
modules/.tmp_versions/*
make -f scripts/Makefile.build obj=/home/zix/modules
(cat /dev/null; ) > /home/zix/modules/modules.order
make -f /usr/src/linux-headers-2.6.35-22-generic/scripts/
Makefile.modpost
scripts/mod/modpost -m -a -i /usr/src/linux-headers-2.6.35-22-
generic/Module.symvers -I /home/zix/modules/Module.symvers -o /home/
zix/modules/Module.symvers -S -w -s
make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-22-generic'
root@me-AOHAPPY:/home/zix/modules#
I dont want to install kernel source, but thats possible still to
compile modules, isnt it?I am thouroughly confused why its not
compiling my module. Can anybody help, please
thanks a lot,
zix