Hi Rual!
Now I have try to follow strictly the threat
makefile for simple linux device driver (
http://www.niosforum.com/forum/index.php?showtopic=2411)
My result is this makefile:
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/Linux_Kernel_full/build
all::
$(MAKE) -C $(KERNELDIR) M=`pwd` O=$(BUILDDIR) modules
endif
Compiler output is:
make -k all
make: nothing to be done for `all'.
And no build output was generated.
Could it be that something is going wrong with pathes.
I have three pathes belonging to the driver I want to build:
1) Path to kernel sources, provided by microtronix. It's:
/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0
2) Path to kernel I have compiled. It's:
/cygdrive/c/Entwicklung/NIOS/workspace3/Linux_Kernel_full
3) Path to driver sources:
/cygdrive/c/Entwicklung/NIOS/workspace3/hello_driver_linux
Bye, Lothar.