diff options
author | Greg Watson <jarrah@users.sourceforge.net> | 2003-07-14 18:00:10 +0000 |
---|---|---|
committer | Greg Watson <jarrah@users.sourceforge.net> | 2003-07-14 18:00:10 +0000 |
commit | 109959d6b125ec404bd83413548ec58e659d693b (patch) | |
tree | a0eac0fb3f528549832810dadc130b7cdd3d5525 /src/arch/i386 | |
parent | 68f9b1b1359b2dcd757d5b26aaf0b494333d2199 (diff) | |
download | coreboot-109959d6b125ec404bd83413548ec58e659d693b.tar.xz |
new config rules
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@960 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/arch/i386')
-rw-r--r-- | src/arch/i386/Config.lb | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/arch/i386/Config.lb b/src/arch/i386/Config.lb index 5cf75803f9..1e0631243f 100644 --- a/src/arch/i386/Config.lb +++ b/src/arch/i386/Config.lb @@ -1,3 +1,45 @@ +init config/crt0.base +ldscript config/ldscript.lb + +makerule all + depends "romimage" +end + +makerule floppy + depends "all" + action "mcopy -o romimage a:" +end + +makerule romimage + depends "linuxbios.rom payload.block" + action "cat payload.block linuxbios.rom > romimage" +end + +makerule nrv2b + depends "$(TOP)/util/nrv2b/nrv2b.c" + action "$(HOSTCC) -O2 -DENCODE -DDECODE -DMAIN -DVERBOSE -DNDEBUG -DBITSIZE=32 -DENDIAN=0 $< -o $@" +end + +makerule linuxbios.rom + depends "linuxbios.strip buildrom" + action "./buildrom $< $@ $(PAYLOAD) $(ROM_IMAGE_SIZE) $(ROM_SIZE)" + #action "export size=`ls -l linuxbios.strip | (read p c u g size r ; echo $$size)` ; \\" + #action "echo $$size ; \\" + #action "dd if=linuxbios.strip of=linuxbios.rom bs=1 seek=`expr $(ROM_IMAGE_SIZE) - $$size`" +end + +#makerule payload.block +# depends "$(if $(PAYLOAD),$(PAYLOAD), /dev/null)" +# action "perl -e '@stats=stat(\"$<\"); $$sz=$$stats[7]; print "\xff" x ($(PAYLOAD_SIZE) - $$sz);' | cat $< - > $@" +#end + +makerule crt0.S + depends "$(CRT0)" + action "cp $< $@" +end + +addaction clean "rm -f romimage payload.*" + dir lib dir boot dir smp |