All of lore.kernel.org
 help / color / mirror / Atom feed
From: Frank Hunleth <fhunleth@troodon-software.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/2] pkg-download: add optional destination filename
Date: Sun, 19 Apr 2015 12:57:58 -0400	[thread overview]
Message-ID: <1429462679-4769-1-git-send-email-fhunleth@troodon-software.com> (raw)

This adds an optional parameter to the DOWNLOAD macro so that it's
possible to specify a destination filename that's different from one
being downloaded.

Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
---
 package/pkg-download.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/pkg-download.mk b/package/pkg-download.mk
index e274712..1278018 100644
--- a/package/pkg-download.mk
+++ b/package/pkg-download.mk
@@ -244,13 +244,14 @@ endef
 # 3) BR2_BACKUP_SITE if enabled, unless BR2_PRIMARY_SITE_ONLY is set
 #
 # Argument 1 is the source location
+# Argument 2 is an optional destination filename
 #
 # E.G. use like this:
 # $(call DOWNLOAD,$(FOO_SITE))
 ################################################################################
 
 define DOWNLOAD
-	$(call DOWNLOAD_INNER,$(1),$(notdir $(1)))
+	$(call DOWNLOAD_INNER,$(1),$(if $(2),$(2),$(notdir $(1))))
 endef
 
 define DOWNLOAD_INNER
-- 
1.9.1

             reply	other threads:[~2015-04-19 16:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-19 16:57 Frank Hunleth [this message]
2015-04-19 16:57 ` [Buildroot] [PATCH 2/2] pkg-generic: prepend downloaded patches w/ package Frank Hunleth
2015-04-20 22:09   ` Arnout Vandecappelle
2015-04-21 13:03     ` Frank Hunleth
2015-04-21 13:30       ` Thomas Petazzoni
2015-04-21 14:20         ` Frank Hunleth
2015-04-21 14:39           ` Thomas Petazzoni
2015-04-21 16:03             ` Frank Hunleth
2015-04-20 21:50 ` [Buildroot] [PATCH 1/2] pkg-download: add optional destination filename Arnout Vandecappelle
2015-07-14 22:39 ` Thomas Petazzoni
2015-07-15 14:07   ` Frank Hunleth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1429462679-4769-1-git-send-email-fhunleth@troodon-software.com \
    --to=fhunleth@troodon-software.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.