david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[build] Provide mechanism for listing constituent object sizes

You can now type e.g.

  make bin/rtl8139.rom.sizes

in order to see the (uncompressed) sizes of all of the object files
linked in to bin/rtl8139.rom.  This should make it easier to identify
relevant code bloat.
This commit is contained in:
Michael Brown 2009-04-18 15:55:01 +01:00
parent 3d6b8a67f2
commit ead44dba89
1 changed files with 2 additions and 0 deletions

View File

@ -657,6 +657,8 @@ define objs_list
endef
$(BIN)/%.objs : $(BIN)/%.tmp
$(Q)$(ECHO) $(call objs_list,$<)
$(BIN)/%.sizes : $(BIN)/%.tmp
$(Q)$(SIZE) -t $(foreach OBJ,$(call objs_list,$<),$(BIN)/$(OBJ).o)
# Get dependency list for the specified target
#