2003-09-26 18:12:23 +02:00
|
|
|
uses CONFIG_SMP
|
2005-07-26 20:27:13 +02:00
|
|
|
uses CONFIG_USE_INIT
|
2003-09-26 18:12:23 +02:00
|
|
|
|
2004-05-26 17:43:27 +02:00
|
|
|
init init/crt0.S.lb
|
|
|
|
ldscript init/ldscript.lb
|
2003-07-14 20:00:10 +02:00
|
|
|
|
|
|
|
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
|
|
|
end
|
|
|
|
|
|
|
|
makerule crt0.S
|
|
|
|
depends "$(CRT0)"
|
|
|
|
action "cp $< $@"
|
|
|
|
end
|
|
|
|
|
|
|
|
addaction clean "rm -f romimage payload.*"
|
|
|
|
|
2005-07-26 20:27:13 +02:00
|
|
|
if CONFIG_USE_INIT
|
|
|
|
makerule init.o
|
|
|
|
depends "$(INIT-OBJECTS)"
|
|
|
|
action "$(LD) -melf_i386 -r -o init.pre.o $(INIT-OBJECTS)"
|
|
|
|
action "$(OBJCOPY) --rename-section .text=.init.text --rename-section .data=.init.data --rename-section .rodata=.init.rodata --rename-section .rodata.str1.1=.init.rodata.str1.1 init.pre.o init.o"
|
|
|
|
end
|
|
|
|
|
|
|
|
makerule linuxbios
|
|
|
|
depends "crt0.o init.o linuxbios_ram.rom ldscript.ld"
|
|
|
|
action "$(CC) -nostdlib -nostartfiles -static -o $@ -T ldscript.ld crt0.o init.o"
|
|
|
|
action "$(CROSS_COMPILE)nm -n linuxbios | sort > linuxbios.map"
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
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
|