vx32

Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log | Files | Refs

commit df4f91cae483f2f3e04066c85e97636009428f52
parent 01f2a48bfb68f456f7b27c9061f59f069793003d
Author: Jesus Galan Lopez (yiyus) <yiyu.jgl@gmail.com>
Date:   Fri,  3 Sep 2010 02:20:22 +0200

some fixes to mkbootcode (still not working)

Diffstat:
.hgignore | 2++
src/9vx/boot/mkbootcode | 7++++---
2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/.hgignore b/.hgignore @@ -24,6 +24,8 @@ src/vxa/bz2/*dbz2 src/vxa/bz2/*ebz2 src/vxlinux/vxlinux src/9vx/9vx +src/9vx/boot/*.[ch] +src/9vx/boot/*.orig src/9vx/bootcode.S src/9vx/fossil.S src/9vx/venti.S diff --git a/src/9vx/boot/mkbootcode b/src/9vx/boot/mkbootcode @@ -18,18 +18,19 @@ cd /sys/src/9/boot for(f in *.ed) { new=`{echo $f | sed 's/.ed$//'} orig=$new.orig - if(! test -f $orig) + if(! ~ $orig "\.h") new=$new.c if(! test -f $orig) cp $new $orig { + cat $f echo w $new echo q - cat $f } | ed $orig 2>/dev/null } -cd ../pc +cd /sys/src/9/pc +CONF='pcf' mk && cp bootpcf.out ../boot/bootcode.9 CONF='pcf' mk bootpcf.out && cp bootpcf.out ../boot/bootcode.9 cd $cwd