Hi
If you follow the whole thread you would see that the -o $@ is wrong
Try this
ifneq ($(KERNELRELEASE),)# kbuild part of makefile
obj-m := hello.o
else# Normal Makefile
KERNEL_PLUGIN:= /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0
KERNELDIR := $(KERNEL_PLUGIN)/linux-2.6.x
BUILDDIR := /cygdrive/c/Entwicklung/NIOS/workspace3/hello_driver_linux
all::
$(MAKE) -C $(KERNELDIR) M=`pwd` O=$(BUILDDIR) modules
endif
You should note that BUILDDIR should be the (COMPILED_LINUX_KERNEL)/build directory. Also insert the ARCH and CROSS_COMPILE variables in the IDE make_target make field.