* [Buildroot] [PATCH 1/2] manual: add requirements for graph generation
@ 2014-06-17 9:33 Fabio Porcedda
2014-06-17 9:33 ` [Buildroot] [PATCH 2/2] Makefile: test if "dot" exists in "<pkg>-graph-depends" Fabio Porcedda
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Fabio Porcedda @ 2014-06-17 9:33 UTC (permalink / raw)
To: buildroot
Add "graphviz" and "python-matplotlib" as requirements for graph
generation.
Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Reported-by: Dallas Clement <dallas.a.clement@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
---
Notes:
v2:
- specify that "graphviz" is needed only for graph-depends (Yann)
docs/manual/prerequisite.txt | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/docs/manual/prerequisite.txt b/docs/manual/prerequisite.txt
index c5d5442..30970d2 100644
--- a/docs/manual/prerequisite.txt
+++ b/docs/manual/prerequisite.txt
@@ -77,3 +77,7 @@ development context (further details: refer to xref:download-infra[]).
** +w3m+
** +python+ with the +argparse+ module (automatically present in 2.7+ and 3.2+)
** +dblatex+ (required for the pdf manual only)
+
+* Graph generation tools:
+** +graphviz+ to use 'graph-depends' and '<pkg>-graph-depends'
+** +python-matplotlib+ to use 'graph-build'
--
2.0.0
^ permalink raw reply related [flat|nested] 6+ messages in thread* [Buildroot] [PATCH 2/2] Makefile: test if "dot" exists in "<pkg>-graph-depends"
2014-06-17 9:33 [Buildroot] [PATCH 1/2] manual: add requirements for graph generation Fabio Porcedda
@ 2014-06-17 9:33 ` Fabio Porcedda
2014-06-20 21:28 ` Yann E. MORIN
2014-06-22 17:25 ` Thomas Petazzoni
2014-06-20 21:21 ` [Buildroot] [PATCH 1/2] manual: add requirements for graph generation Yann E. MORIN
2014-06-22 17:15 ` Thomas Petazzoni
2 siblings, 2 replies; 6+ messages in thread
From: Fabio Porcedda @ 2014-06-17 9:33 UTC (permalink / raw)
To: buildroot
To be able to check the "dot" command availability in
"<pkg>-graph-depends" move the check to the "graph-depends-requirements" rule.
Also don't use a subshell for the exit command to be sure that the error
will be returned by the shell.
Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
---
Notes:
v2:
- Remove the check for graph-build (Yann and Thomas)
- Remove the previuous code for checking the "dot"
command avaiability (Yann)
- Don't use a subshell (Yann)
Makefile | 6 ++++--
package/pkg-generic.mk | 2 +-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 86acbbf..a27502b 100644
--- a/Makefile
+++ b/Makefile
@@ -669,9 +669,11 @@ graph-build: $(O)/build/build-time.log
--output=$(O)/graphs/build.pie-$(t).$(BR_GRAPH_OUT) \
$(if $(BR2_GRAPH_ALT),--alternate-colors)$(sep))
-graph-depends:
+graph-depends-requirements:
@dot -? >/dev/null 2>&1 || \
- (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
@$(INSTALL) -d $(O)/graphs
@cd "$(CONFIG_DIR)"; \
$(TOPDIR)/support/scripts/graph-depends $(BR2_GRAPH_DEPS_OPTS) \
diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index 457d873..4a011cc 100644
--- a/package/pkg-generic.mk
+++ b/package/pkg-generic.mk
@@ -556,7 +556,7 @@ endif
$(1)-show-depends:
@echo $$($(2)_FINAL_DEPENDENCIES)
-$(1)-graph-depends:
+$(1)-graph-depends: graph-depends-requirements
@$$(INSTALL) -d $$(O)/graphs
@cd "$$(CONFIG_DIR)"; \
$$(TOPDIR)/support/scripts/graph-depends -p $(1) $$(BR2_GRAPH_DEPS_OPTS) \
--
2.0.0
^ permalink raw reply related [flat|nested] 6+ messages in thread* [Buildroot] [PATCH 2/2] Makefile: test if "dot" exists in "<pkg>-graph-depends"
2014-06-17 9:33 ` [Buildroot] [PATCH 2/2] Makefile: test if "dot" exists in "<pkg>-graph-depends" Fabio Porcedda
@ 2014-06-20 21:28 ` Yann E. MORIN
2014-06-22 17:25 ` Thomas Petazzoni
1 sibling, 0 replies; 6+ messages in thread
From: Yann E. MORIN @ 2014-06-20 21:28 UTC (permalink / raw)
To: buildroot
Fabio, All,
On 2014-06-17 11:33 +0200, Fabio Porcedda spake thusly:
> To be able to check the "dot" command availability in
> "<pkg>-graph-depends" move the check to the "graph-depends-requirements" rule.
> Also don't use a subshell for the exit command to be sure that the error
> will be returned by the shell.
>
> Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> Cc: Yann E. MORIN <yann.morin.1998@free.fr>
Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Regards,
Yann E. MORIN.
> ---
>
> Notes:
> v2:
> - Remove the check for graph-build (Yann and Thomas)
> - Remove the previuous code for checking the "dot"
> command avaiability (Yann)
> - Don't use a subshell (Yann)
>
> Makefile | 6 ++++--
> package/pkg-generic.mk | 2 +-
> 2 files changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index 86acbbf..a27502b 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -669,9 +669,11 @@ graph-build: $(O)/build/build-time.log
> --output=$(O)/graphs/build.pie-$(t).$(BR_GRAPH_OUT) \
> $(if $(BR2_GRAPH_ALT),--alternate-colors)$(sep))
>
> -graph-depends:
> +graph-depends-requirements:
> @dot -? >/dev/null 2>&1 || \
> - (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
> @$(INSTALL) -d $(O)/graphs
> @cd "$(CONFIG_DIR)"; \
> $(TOPDIR)/support/scripts/graph-depends $(BR2_GRAPH_DEPS_OPTS) \
> diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
> index 457d873..4a011cc 100644
> --- a/package/pkg-generic.mk
> +++ b/package/pkg-generic.mk
> @@ -556,7 +556,7 @@ endif
> $(1)-show-depends:
> @echo $$($(2)_FINAL_DEPENDENCIES)
>
> -$(1)-graph-depends:
> +$(1)-graph-depends: graph-depends-requirements
> @$$(INSTALL) -d $$(O)/graphs
> @cd "$$(CONFIG_DIR)"; \
> $$(TOPDIR)/support/scripts/graph-depends -p $(1) $$(BR2_GRAPH_DEPS_OPTS) \
> --
> 2.0.0
>
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 6+ messages in thread* [Buildroot] [PATCH 2/2] Makefile: test if "dot" exists in "<pkg>-graph-depends"
2014-06-17 9:33 ` [Buildroot] [PATCH 2/2] Makefile: test if "dot" exists in "<pkg>-graph-depends" Fabio Porcedda
2014-06-20 21:28 ` Yann E. MORIN
@ 2014-06-22 17:25 ` Thomas Petazzoni
1 sibling, 0 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2014-06-22 17:25 UTC (permalink / raw)
To: buildroot
Dear Fabio Porcedda,
On Tue, 17 Jun 2014 11:33:54 +0200, Fabio Porcedda wrote:
> To be able to check the "dot" command availability in
> "<pkg>-graph-depends" move the check to the "graph-depends-requirements" rule.
> Also don't use a subshell for the exit command to be sure that the error
> will be returned by the shell.
>
> Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> Cc: Yann E. MORIN <yann.morin.1998@free.fr>
Applied, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 1/2] manual: add requirements for graph generation
2014-06-17 9:33 [Buildroot] [PATCH 1/2] manual: add requirements for graph generation Fabio Porcedda
2014-06-17 9:33 ` [Buildroot] [PATCH 2/2] Makefile: test if "dot" exists in "<pkg>-graph-depends" Fabio Porcedda
@ 2014-06-20 21:21 ` Yann E. MORIN
2014-06-22 17:15 ` Thomas Petazzoni
2 siblings, 0 replies; 6+ messages in thread
From: Yann E. MORIN @ 2014-06-20 21:21 UTC (permalink / raw)
To: buildroot
Fabio, All,
On 2014-06-17 11:33 +0200, Fabio Porcedda spake thusly:
> Add "graphviz" and "python-matplotlib" as requirements for graph
> generation.
>
> Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
> Reported-by: Dallas Clement <dallas.a.clement@gmail.com>
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> Cc: Yann E. MORIN <yann.morin.1998@free.fr>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Regards,
Yann E. MORIN.
> ---
>
> Notes:
> v2:
> - specify that "graphviz" is needed only for graph-depends (Yann)
>
> docs/manual/prerequisite.txt | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/docs/manual/prerequisite.txt b/docs/manual/prerequisite.txt
> index c5d5442..30970d2 100644
> --- a/docs/manual/prerequisite.txt
> +++ b/docs/manual/prerequisite.txt
> @@ -77,3 +77,7 @@ development context (further details: refer to xref:download-infra[]).
> ** +w3m+
> ** +python+ with the +argparse+ module (automatically present in 2.7+ and 3.2+)
> ** +dblatex+ (required for the pdf manual only)
> +
> +* Graph generation tools:
> +** +graphviz+ to use 'graph-depends' and '<pkg>-graph-depends'
> +** +python-matplotlib+ to use 'graph-build'
> --
> 2.0.0
>
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 1/2] manual: add requirements for graph generation
2014-06-17 9:33 [Buildroot] [PATCH 1/2] manual: add requirements for graph generation Fabio Porcedda
2014-06-17 9:33 ` [Buildroot] [PATCH 2/2] Makefile: test if "dot" exists in "<pkg>-graph-depends" Fabio Porcedda
2014-06-20 21:21 ` [Buildroot] [PATCH 1/2] manual: add requirements for graph generation Yann E. MORIN
@ 2014-06-22 17:15 ` Thomas Petazzoni
2 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2014-06-22 17:15 UTC (permalink / raw)
To: buildroot
Dear Fabio Porcedda,
On Tue, 17 Jun 2014 11:33:53 +0200, Fabio Porcedda wrote:
> Add "graphviz" and "python-matplotlib" as requirements for graph
> generation.
>
> Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
> Reported-by: Dallas Clement <dallas.a.clement@gmail.com>
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> Cc: Yann E. MORIN <yann.morin.1998@free.fr>
Applied, thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-06-22 17:25 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-17 9:33 [Buildroot] [PATCH 1/2] manual: add requirements for graph generation Fabio Porcedda
2014-06-17 9:33 ` [Buildroot] [PATCH 2/2] Makefile: test if "dot" exists in "<pkg>-graph-depends" Fabio Porcedda
2014-06-20 21:28 ` Yann E. MORIN
2014-06-22 17:25 ` Thomas Petazzoni
2014-06-20 21:21 ` [Buildroot] [PATCH 1/2] manual: add requirements for graph generation Yann E. MORIN
2014-06-22 17:15 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox