Hello there!
First post, so bare with me
Im trying to build the classic "hello world" for my kernel.
My makefile looks like this:
Code:
ifeq ($KERNELRELASE),)
KERNELDIR = ~/sources/linux-3.2.6
PWD:= $(shell pwd)
default:
[TAB] $(MAKE) ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- -C $(KERNELDIR) M=$(PWD) modules
else
obj-m := hello_world.o
endif
When trying to make this i get the error:
make[1]: Entering directory `/home/stud/sources/linux-3.2.6'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/home/stud/sources/linux-3.2.6'
make: *** [default] Error 2
Anyone care to help out ? Exercise is due tomorrow :/