From 47b12b0b711f7a19e1ca399d1fa26a5114e19e4e Mon Sep 17 00:00:00 2001 From: Roland Hieber Date: Wed, 5 Jun 2019 20:52:06 +0200 Subject: pre/barebox: barebox-url: only use _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 --- rules/pre/barebox.make | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 rules/pre/barebox.make (limited to 'rules/pre/barebox.make') 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 -- cgit v1.2.3