diff options
author | Roland Hieber <rhi@pengutronix.de> | 2019-06-05 20:52:06 +0200 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2019-06-05 20:57:48 +0200 |
commit | 47b12b0b711f7a19e1ca399d1fa26a5114e19e4e (patch) | |
tree | 1fc31dbc5cb2249b9331c80cdd31069b0dc68035 | |
parent | cda3068319d9075df6e460dfd05d58c5fb6a4638 (diff) | |
download | DistroKit-47b12b0b711f7a19e1ca399d1fa26a5114e19e4e.tar.gz DistroKit-47b12b0b711f7a19e1ca399d1fa26a5114e19e4e.tar.xz |
pre/barebox: barebox-url: only use <PKG>_VERSION to build the URL
When adding another barebox package to a BSP, e.g. named barebox-foo,
the BAREBOX_FOO variable will contain "barebox-foo-$(VERSION)". This
variable is used to build BAREBOX_DIR, BAREBOX_SOURCE, and
BAREBOX_FOO_URL.
We must to keep the customized package postfix in the build
directory, but in the latter case, the -foo postfix is transferred
into the URL, which will lead to errors while downloading the source.
We actually only need the barebox version to download the source
tarball, so use a static "barebox-" string to build the barebox/url
macro and also the BAREBOX_FOO_SOURCE variable in the package template,
so the same tarball isn't downloaded multiple times with different
names.
Forwarded: https://www.mail-archive.com/ptxdist@pengutronix.de/msg14535.html
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
-rw-r--r-- | rules/pre/barebox.make | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rules/pre/barebox.make b/rules/pre/barebox.make new file mode 100644 index 0000000..8979afa --- /dev/null +++ b/rules/pre/barebox.make @@ -0,0 +1,6 @@ +# backport of PTXdist patch https://www.mail-archive.com/ptxdist@pengutronix.de/msg14535.html +# This file can be removed after the patch has gone upstream +barebox/url = \ + http://www.barebox.org/download/barebox-$($(1)_VERSION).$($(1)_SUFFIX) + +# vim: syntax=make |