summaryrefslogtreecommitdiffstats
path: root/src/Makefile.housekeeping
diff options
context:
space:
mode:
authorJoshua Oreman2009-12-30 02:28:34 +0100
committerMarty Connor2010-01-14 17:28:52 +0100
commitf94845168a4ec6f7cddd35e64638e54bd3f64dab (patch)
tree32ca0805e1d05289ba402367f09807f3a66ce177 /src/Makefile.housekeeping
parent[dhcp] Append new DHCP options versus prepend (diff)
downloadipxe-f94845168a4ec6f7cddd35e64638e54bd3f64dab.tar.gz
ipxe-f94845168a4ec6f7cddd35e64638e54bd3f64dab.tar.xz
ipxe-f94845168a4ec6f7cddd35e64638e54bd3f64dab.zip
[makefile] Allow .sizes target to work with funny-named objects
The bin/xxx.sizes targets examine the list of obj_ symbols in bin/xxx.tmp to determine which objects to measure the size of. These symbols have been normalized to C identifiers, so the result is an error message from `size' when examining a target that includes objects that were originally named with hyphens. Fix by turning obj_foo_bar into $(wildcard bin/foo?bar.o) instead of bin/foo_bar.o. Signed-off-by: Marty Connor <mdc@etherboot.org>
Diffstat (limited to 'src/Makefile.housekeeping')
-rw-r--r--src/Makefile.housekeeping2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
index 63745ff8..1642374c 100644
--- a/src/Makefile.housekeeping
+++ b/src/Makefile.housekeeping
@@ -677,7 +677,7 @@ 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) | \
+ $(Q)$(SIZE) -t $(foreach OBJ,$(call objs_list,$<),$(wildcard $(BIN)/$(subst _,?,$(OBJ)).o)) | \
sort -g
# Get dependency list for the specified target