From patchwork Thu Aug 4 14:16:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul Bedarkar X-Patchwork-Id: 655829 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3s4sTm0TQXz9sXx for ; Fri, 5 Aug 2016 00:17:48 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A0A0E8B795; Thu, 4 Aug 2016 14:17:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id v1HDbqIQ2Qoy; Thu, 4 Aug 2016 14:17:45 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 961D28B7B8; Thu, 4 Aug 2016 14:17:45 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 5283C1C1569 for ; Thu, 4 Aug 2016 14:17:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 50BFE8B795 for ; Thu, 4 Aug 2016 14:17:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id s1a-DFZSwGPx for ; Thu, 4 Aug 2016 14:17:43 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailapp01.imgtec.com (mailapp01.imgtec.com [195.59.15.196]) by whitealder.osuosl.org (Postfix) with ESMTP id F214B8B7B2 for ; Thu, 4 Aug 2016 14:17:42 +0000 (UTC) Received: from hhmail02.hh.imgtec.org (unknown [10.100.10.20]) by Forcepoint Email with ESMTPS id EFABFB10E3F71 for ; Thu, 4 Aug 2016 15:17:27 +0100 (IST) Received: from PUMAIL01.pu.imgtec.org (192.168.91.250) by hhmail02.hh.imgtec.org (10.100.10.20) with Microsoft SMTP Server (TLS) id 14.3.294.0; Thu, 4 Aug 2016 15:17:31 +0100 Received: from pudesk287-linux.pu.imgtec.org (192.168.91.23) by PUMAIL01.pu.imgtec.org (192.168.91.250) with Microsoft SMTP Server (TLS) id 14.3.266.1; Thu, 4 Aug 2016 19:47:29 +0530 From: Rahul Bedarkar To: Date: Thu, 4 Aug 2016 19:46:04 +0530 Message-ID: <1470320164-8241-3-git-send-email-rahul.bedarkar@imgtec.com> X-Mailer: git-send-email 2.6.2 In-Reply-To: <1470320164-8241-1-git-send-email-rahul.bedarkar@imgtec.com> References: <1470320164-8241-1-git-send-email-rahul.bedarkar@imgtec.com> MIME-Version: 1.0 X-Originating-IP: [192.168.91.23] Cc: Rahul Bedarkar Subject: [Buildroot] [RFC 2/2] new make target -find-licenses X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Add a make target to run find-licenses script for given package with build dir as source package dir. Signed-off-by: Rahul Bedarkar --- Makefile | 1 + package/pkg-generic.mk | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 027f21c..24fec89 100644 --- a/Makefile +++ b/Makefile @@ -949,6 +949,7 @@ help: @echo ' -dirclean - Remove build directory' @echo ' -reconfigure - Restart the build from the configure step' @echo ' -rebuild - Restart the build from the build step' + @echo ' -find-licenses - Find licenses of from sources' $(foreach p,$(HELP_PACKAGES), \ @echo $(sep) \ @echo '$($(p)_NAME):' $(sep) \ diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index 68ead3d..c4aa84b 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -698,6 +698,9 @@ $(1)-show-version: $(1)-show-depends: @echo $$($(2)_FINAL_ALL_DEPENDENCIES) +$(1)-find-licenses: + $$(TOPDIR)/support/scripts/find-licenses $(1) $$($(2)_BUILDDIR) + $(1)-graph-depends: graph-depends-requirements @$$(INSTALL) -d $$(GRAPHS_DIR) @cd "$$(CONFIG_DIR)"; \ @@ -922,6 +925,7 @@ endif $(1)-dirclean \ $(1)-external-deps \ $(1)-extract \ + $(1)-find-licenses \ $(1)-graph-depends \ $(1)-install \ $(1)-install-host \