Add "make bloatcheck" to run Matt Mackall's bloat-o-meter. Copy an old

busybox_unstripped to busybox_old, build a new version, and "make bloatcheck"
to see a detailed breakdown of the size difference.
This commit is contained in:
Rob Landley
2006-05-07 19:26:53 +00:00
parent 9fb272a222
commit f8a8084267
2 changed files with 65 additions and 0 deletions

View File

@@ -132,6 +132,8 @@ help:
@echo ' uninstall'
@echo
@echo 'Development:'
@echo ' bloatcheck - show size difference between busybox_unstripped'
@echo ' and busybox_old
@echo ' check - run the test suite for all applets'
@echo ' checkhelp - check for missing help-entries in Config.in'
@echo ' randconfig - generate a random configuration'
@@ -358,6 +360,9 @@ checkhelp:
.PHONY: sizes
sizes: busybox_unstripped
$(NM) --size-sort $(<)
.PHONY: bloatcheck
bloatcheck: busybox_old busybox_unstripped
@scripts/bloat-o-meter busybox_old busybox_unstripped
.PHONY: objsizes
objsizes: busybox_unstripped