path: root/rules/pre/barebox.make
diff options
authorRoland Hieber <>2019-06-05 20:52:06 +0200
committerRobert Schwebel <>2019-06-05 20:57:48 +0200
commit47b12b0b711f7a19e1ca399d1fa26a5114e19e4e (patch)
tree1fc31dbc5cb2249b9331c80cdd31069b0dc68035 /rules/pre/barebox.make
parentcda3068319d9075df6e460dfd05d58c5fb6a4638 (diff)
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: Signed-off-by: Roland Hieber <>
Diffstat (limited to 'rules/pre/barebox.make')
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
+# This file can be removed after the patch has gone upstream
+barebox/url = \
+# vim: syntax=make