binprep: build the right binary
authorAlan Cox <alan@linux.intel.com>
Thu, 1 Jan 2015 14:33:54 +0000 (14:33 +0000)
committerAlan Cox <alan@linux.intel.com>
Thu, 1 Jan 2015 14:33:54 +0000 (14:33 +0000)
For the moment we keep the old build method for old style binaries
(no _STUBS area), but for banked ones we expect the platform specific
make Image to do something intelligent. Given that the banking is pretty
much platform specific magic it has to be this way.

Kernel/tools/binprep [new file with mode: 0755]

diff --git a/Kernel/tools/binprep b/Kernel/tools/binprep
new file mode 100755 (executable)
index 0000000..974bd4a
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+tools/bihx fuzix.ihx
+if grep -q _STUBS fuzix.map ; then
+       tools/bmunge
+else
+       makebin -s 65536 -p common.ihx >fuzix.tmp
+       tools/binman fuzix.tmp fuzix.map fuzix.bin
+fi