summaryrefslogtreecommitdiff
path: root/test/make260
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2014-07-06 18:04:32 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-07-06 18:04:32 +0200
commita7f89980e5b3f4b9a74c70dbc5ffe8aabd28be28 (patch)
tree41c4deec1fdfbafd7821b4ca7a9772ac0abd92f5 /test/make260
Imported Upstream version 2.9.3upstream/2.9.3
Diffstat (limited to 'test/make260')
-rwxr-xr-xtest/make26017
1 files changed, 17 insertions, 0 deletions
diff --git a/test/make260 b/test/make260
new file mode 100755
index 0000000..7a914b0
--- /dev/null
+++ b/test/make260
@@ -0,0 +1,17 @@
+# build dopanic as a linux 2.6 module
+#
+kdir=/usr/src/linux
+basename=dopanic
+
+# gcc -Wp,-MD,${basename}.o.d -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=pentium3 -I$kdir/include/asm-i386/mach-default -D__KERNEL__ -I$kdir/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=pentium3 -I$kdir/include/asm-i386/mach-default -fomit-frame-pointer -DMODULE -c -o ${basename}.o ${basename}.c
+# gcc -Wp,-MD,${basename}.mod.o.d -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=pentium3 -I$kdir/include/asm-i386/mach-default -D__KERNEL__ -I$kdir/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=pentium3 -I$kdir/include/asm-i386/mach-default -fomit-frame-pointer -DMODULE -c -o ${basename}.mod.o ${basename}.mod.c
+# ld -m elf_i386 -r -o ${basename}.ko ${basename}.o ${basename}.mod.o
+
+mkdir -p $kdir/drivers/char/dopanic
+cp dopanic.c $kdir/drivers/char/dopanic
+cp Kconfig $kdir/drivers/char/dopanic
+cp Makefile-26 $kdir/drivers/char/dopanic/Makefile
+make -C $kdir V=1 SUBDIRS=drivers/char/dopanic modules
+
+ls -l $kdir/drivers/char/dopanic/dopanic.ko
+