http://git.etherboot.org
/
people
/
xl0
/
gpxe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add the possibility to create .o files from arbitrary binary blobs.
[people/xl0/gpxe.git]
/
src
/
Makefile.housekeeping
diff --git
a/src/Makefile.housekeeping
b/src/Makefile.housekeeping
index
2fb41a8
..
4909345
100644
(file)
--- 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 $<) $@
$(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)
# The compression utilities
#
$(NRV2B) : util/nrv2b.c $(MAKEDEPS)