Home hello-4 auf COBRA unter Kernel 2.4 hello-4 auf COBRA unter Kernel 2.4 Die Lösung ist das Including von "Rules.make"
 

2.3.1 Erster Versuch schlägt fehl

Dies scheint aber nicht alles gewesen zu sein, denn der erste Output lautet:

andreas@gericom:~/Development/driver> make
make -C /home/andreas/Development/COBRA_rot/uClinux/uClinux-dist-20040218-cobra-20040324/
SUBDIRS=/home/andreas/Development/driver modules
make[1]: Entering directory `/home/andreas/Development/COBRA_rot/uClinux/uClinux-dist-20040218-cobra-20040324'
. linux-2.4.x/.config; if [ "$CONFIG_MODULES" = "y" ]; then \
        [ -d linux-2.4.x/modules ] || mkdir linux-2.4.x/modules; \
        make ARCH=m68knommu CROSS_COMPILE=m68k-elf- -C linux-2.4.x modules; \
fi
make[2]: Entering directory `/home/andreas/Development/COBRA_rot/uClinux/uClinux-dist-20040218-cobra-20040324/linux-2.4.x'
make -C  /home/andreas/Development/driver CFLAGS="-fno-builtin -nostdinc -D__KERNEL__
-I/home/andreas/Development/COBRA_rot/uClinux/uClinux-dist-20040218-cobra-20040324/linux-2.4.x/include
 -Wall -Wstrict-prototypes -Wno-trigraphs -O1 -g -fno-strict-aliasing -fno-common
-I/usr/local/lib/gcc-lib/m68k-elf/2.95.3/./include -pipe -DNO_MM -DNO_FPU -m5307 -Wa,-S -Wa,-m5307
-D__ELF__ -DMAGIC_ROM_PTR -DUTS_SYSNAME=\"uClinux\" -D__linux__ -O1 -DMODULE" MAKING_MODULES=1 modules
make[3]: Entering directory `/home/andreas/Development/driver'
make[3]: *** Keine Regel, um »modules« zu erstellen.  Schluss.
make[3]: Leaving directory `/home/andreas/Development/driver'
make[2]: *** [_mod_/home/andreas/Development/driver] Fehler 2
make[2]: Leaving directory `/home/andreas/Development/COBRA_rot/uClinux/uClinux-dist-20040218-cobra-20040324/linux-2.4.x'
make[1]: *** [modules] Fehler 2
make[1]: Leaving directory `/home/andreas/Development/COBRA_rot/uClinux/uClinux-dist-20040218-cobra-20040324'
make: *** [default] Fehler 2
andreas@gericom:~/Development/driver>

Unter Kernel 2.4 muß man also Module doch etwas anders über das Makefile einbinden.


Copyright © Andreas Birkert
Letzte Aktualisierung am 20. Dezember 2013
Home hello-4 auf COBRA unter Kernel 2.4 hello-4 auf COBRA unter Kernel 2.4 Die Lösung ist das Including von "Rules.make"