[OpenBIOS] r760 - in cpu/ppc: . build
svn at openbios.org
svn at openbios.org
Wed Jan 2 22:41:48 CET 2008
Author: wmb
Date: 2008-01-02 22:41:48 +0100 (Wed, 02 Jan 2008)
New Revision: 760
Added:
cpu/ppc/build/Makefile.cross
Modified:
cpu/ppc/build/builder.dic
cpu/ppc/kernel.bth
cpu/ppc/savemeta.fth
Log:
PowerPC build - some minor improvements to the PowerPC build scripts,
which still need work.
Added: cpu/ppc/build/Makefile.cross
===================================================================
--- cpu/ppc/build/Makefile.cross (rev 0)
+++ cpu/ppc/build/Makefile.cross 2008-01-02 21:41:48 UTC (rev 760)
@@ -0,0 +1,8 @@
+# This setting of HOSTDIR is for cross-building on an x86 Linux system
+# For it to work, you first need to build the simulator version of ppcforth
+# in cpu/ppc/Linux and then copy the ppcforth file to cpu/x86/Linux
+HOSTDIR:=$(shell pwd)/../../../cpu/x86/Linux/
+
+builder.dic:
+ HOSTDIR=${HOSTDIR} build $@
+
Modified: cpu/ppc/kernel.bth
===================================================================
--- cpu/ppc/kernel.bth 2008-01-02 19:08:27 UTC (rev 759)
+++ cpu/ppc/kernel.bth 2008-01-02 21:41:48 UTC (rev 760)
@@ -79,7 +79,7 @@
fload ${BP}/cpu/ppc/savemeta.fth
-.( --- Saving kernel.dic ---) "" kernel.dic save-meta
+.( --- Saving kernel.dic ---) " kernel.dic" $save-meta
cr
\ LICENSE_BEGIN
Modified: cpu/ppc/savemeta.fth
===================================================================
--- cpu/ppc/savemeta.fth 2008-01-02 19:08:27 UTC (rev 759)
+++ cpu/ppc/savemeta.fth 2008-01-02 21:41:48 UTC (rev 760)
@@ -28,14 +28,14 @@
: swap-size ( -- n ) here-t >swap-map-size-t ;
: user-base ( -- adr ) userarea-t ;
: user-size ( -- n ) user-size-t doubleword-align ;
-: save-meta ( str -- )
+: $save-meta ( str -- )
\ Doubleword alignment is required so that the user area image will
\ not be in the same doubleword as the end of the dictionary, thus
\ causing the copy loop to get the wrong value the first time.
begin here-t 7 and while 0 c,-t repeat
- new-file
+ $new-file
\ Set the text and data sizes in the program header
h# 4800.0020 header h# 0 + l-t! \ Branch past the header
More information about the OpenBIOS
mailing list