From patchwork Sun Mar 3 10:16:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 1050839 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=free.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="qL1P7B/f"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44BzbM3WlCz9s47 for ; Sun, 3 Mar 2019 21:16:47 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 355CA20791; Sun, 3 Mar 2019 10:16:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OqSOLNXb1TQP; Sun, 3 Mar 2019 10:16:43 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 599B6207A2; Sun, 3 Mar 2019 10:16:43 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id EF1B31BF5E6 for ; Sun, 3 Mar 2019 10:16:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id EBFB087592 for ; Sun, 3 Mar 2019 10:16:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C0CDrYlHMm1g for ; Sun, 3 Mar 2019 10:16:41 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by hemlock.osuosl.org (Postfix) with ESMTPS id 3DDB986CDC for ; Sun, 3 Mar 2019 10:16:41 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id w17so2278296wrn.12 for ; Sun, 03 Mar 2019 02:16:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=Qi66UejYbPKj76VIDV+lwhe7BKXwsR0OftnevwNktAQ=; b=qL1P7B/fOBbKTmqC2QbYUBha2R4tlmUfRpmx8p/Q4fMcv8IzZrBBMIY5V/JL91j0Da cyRBGHFi8vCRPZCZ+LBFCIiC4lrLEpEf1+J4pmyVT1OwcWgYEWRXiGBM8NZ3oB314qhg 3ck8M+mf6fDbqky96E/9GaCL/y1shEJ1UiEKXCf2ipPDixp2XC7NgeTK0VEDkGEt/NRA SPxX2qrayfGQqsT+jUFTU3c1CNka9zoIK85HzPnOm7JDJa+64aPgIxf4HL00gdEZ81cY OoMUXf7JkFjj6wn1RUmFl85AylpnfvNjY5gH9kKFhObOD1dQkEF8SAvjfCCialSuaH0H 8E2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=Qi66UejYbPKj76VIDV+lwhe7BKXwsR0OftnevwNktAQ=; b=GCtrA0ENgtrVnTlxiCf1roLijIdfkK78Km0eGt/J4CCW7KJ0yvo/JX7yiWuX+H53B+ kOFUSoPmE9Nj37gRp+clmY36UI9Um2c0n3J92TRBye+4KUlZrS/h9ph984MEVQdG1Px3 e8zKF7Uj70RABl9m1RMR2bukvVxKxEKnhMKmmBMmn1c0+rwzmGx9DENS5e6H190XaCrQ HQxUpLDi+9N0wmx4OCMLkSHdSAPLZNJmSV4R93FjaxyekvVUmgKC7nzTSZY9sJ1nS/if d/ZliZfo/p0aI7q41V85YRRpwp3zNzkgZ2+NFDOKSbgxr0t5mVb3hHvWxDqO4VUK8Ti2 AAmQ== X-Gm-Message-State: APjAAAWMl9rv4WPAk83Hp/iNCeBJaNI9OUUENx6qwM7NaC5Hll0MoXjg YY7Jo74kh7tRvv+RIcXph75ywjRQ X-Google-Smtp-Source: APXvYqwcFX36Zctf+Ac/FQkj1JqspzbSxvBxbuuRYoRQoJlNV3elMeXK6V4Vtabj3EwiDNjMjD8lYg== X-Received: by 2002:adf:ee01:: with SMTP id y1mr8834229wrn.268.1551608199549; Sun, 03 Mar 2019 02:16:39 -0800 (PST) Received: from scaer.home ([2a01:cb19:829a:2800:68e8:7a61:9bb9:12a]) by smtp.gmail.com with ESMTPSA id d9sm3031500wrn.72.2019.03.03.02.16.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Mar 2019 02:16:39 -0800 (PST) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Sun, 3 Mar 2019 11:16:30 +0100 Message-Id: <6e0fb4d5b76d1188367a039f5b9102086d4ac8f8.1551608168.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 2.14.1 In-Reply-To: References: Subject: [Buildroot] [PATCH 2/8 v2] support/graph-depends: add option to exclude mandatory deps X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Yann E. MORIN" , Thomas Petazzoni MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Some times, multiple dependency graphs for a set of packages (mostly the application-level packages for the project) are included in reports (e.g. delivery notes). Repeating the mandatory dependencies on all those graphs is useless and clutters the important dependencies. When we had only two such mandatory dependencies (toolchain, skeleton), it was manageable to list them as manual exclusions: -x toolchain -x skeleton But we now have quite a few such dependencies, and it becomes a bit more cumbersome to manage, not counting the ones we may add in the future. Add an option to exclude all those mandatory dependencies, to generate neat graphs. Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni --- support/scripts/graph-depends | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/support/scripts/graph-depends b/support/scripts/graph-depends index 5a6f6930e9..5c5de7dd0b 100755 --- a/support/scripts/graph-depends +++ b/support/scripts/graph-depends @@ -311,6 +311,8 @@ def parse_args(): "'host' to stop on host packages.") parser.add_argument("--exclude", "-x", metavar="PACKAGE", dest="exclude_list", action="append", help="Like --stop-on, but do not add PACKAGE to the graph.") + parser.add_argument("--exclude-mandatory", "-X", action="store_true", + help="Like if -x was passed for all mandatory dependencies.") parser.add_argument("--colors", "-c", metavar="COLOR_LIST", dest="colors", default="lightblue,grey,gainsboro", help="Comma-separated list of the three colors to use" + @@ -364,6 +366,9 @@ def main(): else: exclude_list = args.exclude_list + if args.exclude_mandatory: + exclude_list += MANDATORY_DEPS + if args.direct: get_depends_func = brpkgutil.get_depends arrow_dir = "forward"