summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2013-12-28 18:39:11 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-12-29 12:13:12 +0100
commite16bf922524bb46f00bfc8f77ccf42e59eff989b (patch)
tree4190f997b0fbcf78ff59a6ce19dabb55c7d02e4a /Makefile
parent7d656636bd4d9df6c4356bdb6c60c8e604be10d0 (diff)
downloadbuildroot-e16bf922524bb46f00bfc8f77ccf42e59eff989b.tar.gz
buildroot-e16bf922524bb46f00bfc8f77ccf42e59eff989b.zip
Makefile: expose target 'graph-build' to generate the build-time graphs
Generate the build-time graphs by calling: make graph-build This generates the graphs in $(O)/graphs/ It is possible to use the alternate color-scheme by setting the variable GRAPH_ALT=1 on the command line: make GRAPH_ALT=1 graph-build Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3190541a11..98ca7980f4 100644
--- a/Makefile
+++ b/Makefile
@@ -631,6 +631,17 @@ legal-info: dirs legal-info-clean legal-info-prepare $(TARGETS_LEGAL_INFO) \
show-targets:
@echo $(TARGETS)
+graph-build: $(O)/build/build-time.log
+ @install -d $(O)/graphs
+ $(foreach o,name build duration,./support/scripts/graph-build-time \
+ --type=histogram --order=$(o) --input=$(<) \
+ --output=$(O)/graphs/build.hist-$(o).pdf \
+ $(if $(GRAPH_ALT),--alternate-colors)$(sep))
+ $(foreach t,packages steps,./support/scripts/graph-build-time \
+ --type=pie-$(t) --input=$(<) \
+ --output=$(O)/graphs/build.pie-$(t).pdf \
+ $(if $(GRAPH_ALT),--alternate-colors)$(sep))
+
else # ifeq ($(BR2_HAVE_DOT_CONFIG),y)
all: menuconfig
@@ -843,6 +854,7 @@ endif
@echo ' manual-pdf - build manual in PDF'
@echo ' manual-text - build manual in text'
@echo ' manual-epub - build manual in ePub'
+ @echo ' graph-build - generate graphs of the build times'
@echo
@echo 'Miscellaneous:'
@echo ' source - download all sources needed for offline-build'
OpenPOWER on IntegriCloud