|
@@ -161,6 +161,7 @@ TARGET_DIR := $(BASE_DIR)/target
|
|
# initial definition so that 'make clean' works for most users, even without
|
|
# initial definition so that 'make clean' works for most users, even without
|
|
# .config. HOST_DIR will be overwritten later when .config is included.
|
|
# .config. HOST_DIR will be overwritten later when .config is included.
|
|
HOST_DIR := $(BASE_DIR)/host
|
|
HOST_DIR := $(BASE_DIR)/host
|
|
|
|
+GRAPHS_DIR := $(BASE_DIR)/graphs
|
|
|
|
|
|
LEGAL_INFO_DIR = $(BASE_DIR)/legal-info
|
|
LEGAL_INFO_DIR = $(BASE_DIR)/legal-info
|
|
REDIST_SOURCES_DIR_TARGET = $(LEGAL_INFO_DIR)/sources
|
|
REDIST_SOURCES_DIR_TARGET = $(LEGAL_INFO_DIR)/sources
|
|
@@ -658,14 +659,14 @@ show-targets:
|
|
@echo $(HOST_DEPS) $(TARGETS_HOST_DEPS) $(TARGETS) $(TARGETS_ROOTFS)
|
|
@echo $(HOST_DEPS) $(TARGETS_HOST_DEPS) $(TARGETS) $(TARGETS_ROOTFS)
|
|
|
|
|
|
graph-build: $(O)/build/build-time.log
|
|
graph-build: $(O)/build/build-time.log
|
|
- @install -d $(O)/graphs
|
|
|
|
|
|
+ @install -d $(GRAPHS_DIR)
|
|
$(foreach o,name build duration,./support/scripts/graph-build-time \
|
|
$(foreach o,name build duration,./support/scripts/graph-build-time \
|
|
--type=histogram --order=$(o) --input=$(<) \
|
|
--type=histogram --order=$(o) --input=$(<) \
|
|
- --output=$(O)/graphs/build.hist-$(o).$(BR_GRAPH_OUT) \
|
|
|
|
|
|
+ --output=$(GRAPHS_DIR)/build.hist-$(o).$(BR_GRAPH_OUT) \
|
|
$(if $(BR2_GRAPH_ALT),--alternate-colors)$(sep))
|
|
$(if $(BR2_GRAPH_ALT),--alternate-colors)$(sep))
|
|
$(foreach t,packages steps,./support/scripts/graph-build-time \
|
|
$(foreach t,packages steps,./support/scripts/graph-build-time \
|
|
--type=pie-$(t) --input=$(<) \
|
|
--type=pie-$(t) --input=$(<) \
|
|
- --output=$(O)/graphs/build.pie-$(t).$(BR_GRAPH_OUT) \
|
|
|
|
|
|
+ --output=$(GRAPHS_DIR)/build.pie-$(t).$(BR_GRAPH_OUT) \
|
|
$(if $(BR2_GRAPH_ALT),--alternate-colors)$(sep))
|
|
$(if $(BR2_GRAPH_ALT),--alternate-colors)$(sep))
|
|
|
|
|
|
graph-depends-requirements:
|
|
graph-depends-requirements:
|
|
@@ -673,11 +674,11 @@ graph-depends-requirements:
|
|
{ echo "ERROR: The 'dot' program from Graphviz is needed for graph-depends" >&2; exit 1; }
|
|
{ echo "ERROR: The 'dot' program from Graphviz is needed for graph-depends" >&2; exit 1; }
|
|
|
|
|
|
graph-depends: graph-depends-requirements
|
|
graph-depends: graph-depends-requirements
|
|
- @$(INSTALL) -d $(O)/graphs
|
|
|
|
|
|
+ @$(INSTALL) -d $(GRAPHS_DIR)
|
|
@cd "$(CONFIG_DIR)"; \
|
|
@cd "$(CONFIG_DIR)"; \
|
|
$(TOPDIR)/support/scripts/graph-depends $(BR2_GRAPH_DEPS_OPTS) \
|
|
$(TOPDIR)/support/scripts/graph-depends $(BR2_GRAPH_DEPS_OPTS) \
|
|
- |tee $(BASE_DIR)/graphs/$(@).dot \
|
|
|
|
- |dot $(BR2_GRAPH_DOT_OPTS) -T$(BR_GRAPH_OUT) -o $(BASE_DIR)/graphs/$(@).$(BR_GRAPH_OUT)
|
|
|
|
|
|
+ |tee $(GRAPHS_DIR)/$(@).dot \
|
|
|
|
+ |dot $(BR2_GRAPH_DOT_OPTS) -T$(BR_GRAPH_OUT) -o $(GRAPHS_DIR)/$(@).$(BR_GRAPH_OUT)
|
|
|
|
|
|
else # ifeq ($(BR2_HAVE_DOT_CONFIG),y)
|
|
else # ifeq ($(BR2_HAVE_DOT_CONFIG),y)
|
|
|
|
|
|
@@ -834,7 +835,7 @@ printvars:
|
|
clean:
|
|
clean:
|
|
rm -rf $(TARGET_DIR) $(BINARIES_DIR) $(HOST_DIR) \
|
|
rm -rf $(TARGET_DIR) $(BINARIES_DIR) $(HOST_DIR) \
|
|
$(BUILD_DIR) $(BASE_DIR)/staging \
|
|
$(BUILD_DIR) $(BASE_DIR)/staging \
|
|
- $(LEGAL_INFO_DIR)
|
|
|
|
|
|
+ $(LEGAL_INFO_DIR) $(GRAPHS_DIR)
|
|
|
|
|
|
distclean: clean
|
|
distclean: clean
|
|
ifeq ($(DL_DIR),$(TOPDIR)/dl)
|
|
ifeq ($(DL_DIR),$(TOPDIR)/dl)
|