2003-09-26 18:12:23 +02:00
|
|
|
uses CONFIG_SMP
|
|
|
|
|
2003-07-14 20:00:10 +02:00
|
|
|
init config/crt0.base
|
|
|
|
ldscript config/ldscript.lb
|
|
|
|
|
|
|
|
makerule all
|
2003-07-25 23:43:12 +02:00
|
|
|
depends "linuxbios.rom"
|
2003-07-14 20:00:10 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
makerule floppy
|
|
|
|
depends "all"
|
2003-07-30 05:05:20 +02:00
|
|
|
action "mcopy -o linuxbios.rom a:"
|
2003-07-14 20:00:10 +02:00
|
|
|
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"
|
2003-07-25 23:42:02 +02:00
|
|
|
action "./buildrom $< $@ $(PAYLOAD) $(ROM_IMAGE_SIZE) $(ROM_SECTION_SIZE)"
|
2003-07-14 20:00:10 +02:00
|
|
|
#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.*"
|
|
|
|
|
2003-06-17 18:51:06 +02:00
|
|
|
dir lib
|
|
|
|
dir boot
|
2003-09-26 18:12:23 +02:00
|
|
|
if CONFIG_SMP
|
|
|
|
dir smp
|
|
|
|
end
|