Hi Helmchen & all!
I reduce the above example a little bit, to avoid unnecessary errors:
include Rules.mak
ECLIPSE_WORKSPACE := /cygdrive/c/Entwicklung/NIOS/workspace3
KERNEL_PROJECT := Linux_Kernel_full
KERNEL_PLUGIN:= /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0
BUILDDIR := $(ECLIPSE_WORKSPACE)/$(KERNEL_PROJECT)/build/include
KERNELDIR := $(KERNEL_PLUGIN)/linux-2.6.x
CFLAGS += -O0 -g -I$(BUILDDIR)
all:
make -C $(KERNELDIR) M=`pwd`
But there are still 2 errors:
make -C /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x M=`pwd`
make[1]: Entering directory `/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x'
Makefile:486: .config: No such file or directory
Makefile:531: /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/arch/i386/Makefile: No such file or directory
make[1]: *** No rule to make target `/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/arch/i386/Makefile'.
make[1]: Failed to remake makefile `/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/arch/i386/Makefile'.
/cygdrive/c/Entwicklung/NIOS/workspace3/hello_driver_linux/Makefile:1: Rules.mak: No such file or directory
make[2]: *** No rule to make target `Rules.mak'.
make[2]: Failed to remake makefile `Rules.mak'.
Building modules, stage 2.
/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/scripts/Makefile.modpost:38: .config: No such file or directory
make[2]: *** No rule to make target `.config'.
make[2]: Failed to remake makefile `.config'.
MODPOST
scripts/mod/modpost: not found
make[2]: *** [__modpost] Error 127
make[2]: Target `_modpost' not remade because of errors.
make[1]: *** [modules] Error 2
make[1]: Target `_all' not remade because of errors.
make[1]: Leaving directory `/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x'
make: *** [all] Error 2
~~~~~~~~~~~~~~~~~~~~~~~
Have somebody an idea what is the reason for these errors?
Bye, Lothar.