summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2012-08-12 22:27:07 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-08-14 15:09:21 +0200
commita293d4ab338c84f450261371085cef1cf69bcf96 (patch)
treed46bf138e80ac7f3e9489347ff63dfe5f7027764
parent8b9523938e0671e20739ad5f1951267499ff2d95 (diff)
downloadbuildroot-novena-a293d4ab338c84f450261371085cef1cf69bcf96.tar.gz
buildroot-novena-a293d4ab338c84f450261371085cef1cf69bcf96.zip
support/graph-depends: fix out-of-tree usage
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> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rwxr-xr-xsupport/scripts/graph-depends4
1 files changed, 2 insertions, 2 deletions
diff --git a/support/scripts/graph-depends b/support/scripts/graph-depends
index da050da8a..409c12301 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: