http://git.etherboot.org
/
people
/
lynusvaz
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d6b8a6
)
[build] Provide mechanism for listing constituent object sizes
author
Michael Brown
<mcb30@etherboot.org>
Sat, 18 Apr 2009 14:55:01 +0000
(15:55 +0100)
committer
Michael Brown
<mcb30@etherboot.org>
Sat, 18 Apr 2009 14:56:29 +0000
(15:56 +0100)
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.
src/Makefile.housekeeping
patch
|
blob
|
history
diff --git
a/src/Makefile.housekeeping
b/src/Makefile.housekeeping
index
24005bd
..
6751291
100644
(file)
--- a/
src/Makefile.housekeeping
+++ b/
src/Makefile.housekeeping
@@
-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
#