From patchwork Thu Dec 6 23:16:00 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: pkg-infra: add -extract and -patch targets to OVERRIDE support From: Arnout Vandecappelle X-Patchwork-Id: 204336 Message-Id: <1354835760-9357-1-git-send-email-arnout@mind.be> To: buildroot@busybox.net Date: Fri, 7 Dec 2012 00:16:00 +0100 From: "Arnout Vandecappelle (Essensium/Mind)" The legal-info target (and possibly others as well) depends on -extract to make sure the license file is available. However, when _OVERRIDE_SRCDIR is active, the -extract target doesn't exist. To solve this, we add -extract which depends on -rsync. While we're at it, we do the same for -patch. That avoids the same problem in the future if something starts depending on -patch. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) Acked-by: Thomas Petazzoni Acked-by: Luca Ceresoli --- v2: As ThomasP suggested, don't remove -rsync. --- package/pkg-generic.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index 6fcd359..13c1d83 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -390,6 +390,9 @@ $(1)-configure: $(1)-depends \ $(1)-depends: $(1)-rsync $$($(2)_DEPENDENCIES) +$(1)-patch: $(1)-rsync +$(1)-extract: $(1)-rsync + $(1)-rsync: $$($(2)_TARGET_RSYNC) $(1)-source: $$($(2)_TARGET_RSYNC_SOURCE)