mirror of
https://github.com/ipxe/ipxe
synced 2025-12-13 15:31:42 +03:00
Add the possibility to create .o files from arbitrary binary blobs.
This commit is contained in:
@@ -409,6 +409,15 @@ allpxes allisos alldsks : all%s : $(foreach DRIVER,$(DRIVERS),$(BIN)/$(DRIVER).%
|
|||||||
$(BIN)/etherboot.% : $(BIN)/gpxe.%
|
$(BIN)/etherboot.% : $(BIN)/gpxe.%
|
||||||
ln -sf $(notdir $<) $@
|
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
|
# The compression utilities
|
||||||
#
|
#
|
||||||
$(NRV2B) : util/nrv2b.c $(MAKEDEPS)
|
$(NRV2B) : util/nrv2b.c $(MAKEDEPS)
|
||||||
|
|||||||
1
src/payload/hello.img
Normal file
1
src/payload/hello.img
Normal file
@@ -0,0 +1 @@
|
|||||||
|
hello world!
|
||||||
Reference in New Issue
Block a user