Forum Discussion
Altera_Forum
Honored Contributor
20 years agoThank you again.
the tip the taps took me a step nearer to the goal.. but it still get a syntax error about '-O', it shows me, that in the syntax list isn't an option with cap O but only a tiny 'o' (this time i did a copy&paste to insert your makefile). After all, i'm still not able build the module (by the way... setting enviromental vars ARCH and CROSS_COMPILE in your makefile doesnt work. It works if i set it in the build command line in the 'Create new make target' menu option.) With these modification and your suggested make command... $(MAKE) -C $(KERNELDIR) M=`pwd` O=$(BUILDDIR) -o $@ ...i get: Nothing to be done for all After deleting $@ and trying again i get the following output: make ARCH=nios2nommu CROSS_COMPILE=nios2-elf- all
make -C /cygdrive/d/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x M=`pwd`
O=/cygdrive/d/MyKernel/build -o all
make: Entering directory `/cygdrive/d/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux
-2.6.x'
no emulation specific options.
LD /cygdrive/d/MyModule/built-in.o
CC /cygdrive/d/MyModule/mymodule.o
/cygdrive/d/MyModule/.mymodule.o.d: done.
Building modules, stage 2.
MODPOST
Signal 11
make: *** Error 139
make: *** Error 2
make: *** Error 2
make: Leaving directory `/cygdrive/d/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-
2.6.x'
make: *** Error 2 In addition the build process adds following files and directories to my project folder: - a mymodule.o file - a buit-in.o - a .built-in.o.cmd file - a .mod.o.cmd file - a '.tmp_versions' directory with a 'mymodule.mod' file Maybe I do every possible mistake, that can be done?