diff options
author | Michael Brown <mcb30@etherboot.org> | 2007-09-06 15:11:09 +0100 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2007-09-06 15:11:09 +0100 |
commit | 66207bb912ef267d730165658b56b145fbb5eb3b (patch) | |
tree | 78579920285d3b175c4cf9f4caab2685410c30f2 /src/Makefile.housekeeping | |
parent | a82e6ec2deae5b3fda5aea1e2e8ebd2bda699602 (diff) | |
download | ipxe-66207bb912ef267d730165658b56b145fbb5eb3b.tar.gz |
Add the possibility to create .o files from arbitrary binary blobs.
Diffstat (limited to 'src/Makefile.housekeeping')
-rw-r--r-- | src/Makefile.housekeeping | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping index 2fb41a8c..4909345d 100644 --- a/src/Makefile.housekeeping +++ b/src/Makefile.housekeeping @@ -409,6 +409,15 @@ allpxes allisos alldsks : all%s : $(foreach DRIVER,$(DRIVERS),$(BIN)/$(DRIVER).% $(BIN)/etherboot.% : $(BIN)/gpxe.% ln -sf $(notdir $<) $@ +# Wrap up binary blobs +# +$(BIN)/%.o : payload/%.img + $(QM)echo " [WRAP] $@" + $(Q)$(LD) -b binary -r -o $@ $< --undefined obj_payload \ + --defsym obj_$*=0 + +BOBJS += $(patsubst payload/%.img,$(BIN)/%.o,$(wildcard payload/*.img)) + # The compression utilities # $(NRV2B) : util/nrv2b.c $(MAKEDEPS) |