support for init objects

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1273 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Greg Watson 2003-11-09 23:29:05 +00:00
parent 2f726c3e83
commit c8ea12d672
1 changed files with 4 additions and 4 deletions

View File

@ -65,8 +65,8 @@ makerule linuxbios_payload
end end
makerule linuxbios makerule linuxbios
depends "crt0.o linuxbios_payload ldscript.ld" depends "crt0.o $(INIT-OBJECTS) linuxbios_payload ldscript.ld"
action "$(CC) -nostdlib -nostartfiles -static -o $@ -T ldscript.ld crt0.o" action "$(CC) -nostdlib -nostartfiles -static -o $@ -T ldscript.ld crt0.o $(INIT-OBJECTS)"
action "$(CROSS_COMPILE)nm -n linuxbios | sort > linuxbios.map" action "$(CROSS_COMPILE)nm -n linuxbios | sort > linuxbios.map"
end end
@ -96,9 +96,9 @@ makerule crt0.s
end end
makerule crt0.o makerule crt0.o
depends "crt0.s $(INIT-OBJECTS)" depends "crt0.s"
action "@echo $(CC) ... -o $@ $<" action "@echo $(CC) ... -o $@ $<"
action "@$(CC) -c $(CPU_OPT) -o $@ $< $(INIT-OBJECTS)" action "@$(CC) -c $(CPU_OPT) -o $@ $<"
end end
makerule etags makerule etags