* [Buildroot] [PATCH] support/graph-depends: fix out-of-tree usage
@ 2012-08-12 20:27 Yann E. MORIN
2012-08-14 13:09 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Yann E. MORIN @ 2012-08-12 20:27 UTC (permalink / raw)
To: buildroot
graph-depends calls make to get the list of packages, and the
dependencies of each package.
When called out-of-tree, the Makefile is a wrapper that calls
the real Makefile, so make will spit out a line like:
make -C /path/to/buildroot O=/path/to/build-dir show-targets
which graph-depends wrongly believes is part of the target list.
Be silent when calling make, as we really only want the target
and dependency lists.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
Note we do not silence the Makefile wrapper, because it can be
usefull to see what buildroot dir is being used during the build.
For example, I happen to have a few buildroot clones, and seeing
the one being actually being used allows me to be sure I am not
using the wrong once.
---
support/scripts/graph-depends | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/support/scripts/graph-depends b/support/scripts/graph-depends
index da050da..409c123 100755
--- a/support/scripts/graph-depends
+++ b/support/scripts/graph-depends
@@ -53,7 +53,7 @@ unknownpkgs = []
# list is used as the starting point for full dependency graphs
def get_targets():
sys.stderr.write("Getting targets\n")
- cmd = ["make", "show-targets"]
+ cmd = ["make", "-s", "show-targets"]
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
output = p.communicate()[0].strip()
if p.returncode != 0:
@@ -67,7 +67,7 @@ def get_targets():
# formatted as a Python list.
def get_depends(pkg):
sys.stderr.write("Getting dependencies for %s\n" % pkg)
- cmd = ["make", "%s-show-depends" % pkg]
+ cmd = ["make", "-s", "%s-show-depends" % pkg]
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
output = p.communicate()[0].strip()
if p.returncode != 0:
--
1.7.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread* [Buildroot] [PATCH] support/graph-depends: fix out-of-tree usage
2012-08-12 20:27 [Buildroot] [PATCH] support/graph-depends: fix out-of-tree usage Yann E. MORIN
@ 2012-08-14 13:09 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2012-08-14 13:09 UTC (permalink / raw)
To: buildroot
Le Sun, 12 Aug 2012 22:27:07 +0200,
"Yann E. MORIN" <yann.morin.1998@free.fr> a ?crit :
> graph-depends calls make to get the list of packages, and the
> dependencies of each package.
>
> When called out-of-tree, the Makefile is a wrapper that calls
> the real Makefile, so make will spit out a line like:
> make -C /path/to/buildroot O=/path/to/build-dir show-targets
>
> which graph-depends wrongly believes is part of the target list.
>
> Be silent when calling make, as we really only want the target
> and dependency lists.
>
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Thanks, applied!
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-08-14 13:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-12 20:27 [Buildroot] [PATCH] support/graph-depends: fix out-of-tree usage Yann E. MORIN
2012-08-14 13:09 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox