diff options
author | Enrico Jorns <ejo@pengutronix.de> | 2020-03-19 00:48:29 +0100 |
---|---|---|
committer | Enrico Jorns <ejo@pengutronix.de> | 2020-06-11 01:32:42 +0200 |
commit | 6a6bccd6c7a47e3ba8d18136dee2622e797f6e31 (patch) | |
tree | 8dfd1b4fa338486d3653b8a8e71bf793f3058919 | |
parent | 531e0075a6a2e13b99e0270615d98777bf544f9a (diff) | |
download | meta-ptx-6a6bccd6c7a47e3ba8d18136dee2622e797f6e31.tar.gz meta-ptx-6a6bccd6c7a47e3ba8d18136dee2622e797f6e31.tar.xz |
barebox: use ${B} to reference build artifacts instead of ${S}
The semantic meaning of S is 'source dir' while we want to pick up build
artifacts and thus should use B 'build dir' instead.
Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
-rw-r--r-- | recipes-bsp/barebox/barebox.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/recipes-bsp/barebox/barebox.inc b/recipes-bsp/barebox/barebox.inc index 8844b0d..1268953 100644 --- a/recipes-bsp/barebox/barebox.inc +++ b/recipes-bsp/barebox/barebox.inc @@ -86,13 +86,13 @@ BAREBOX_IMAGE_SUFFIX = "" do_deploy[vardepsexclude] = "DATETIME" do_deploy () { install -d ${DEPLOYDIR} - if [ -e ${S}/barebox-flash-image ]; then - install -m 644 -t ${DEPLOYDIR}/ ${S}/barebox-flash-image + if [ -e ${B}/barebox-flash-image ]; then + install -m 644 -t ${DEPLOYDIR}/ ${B}/barebox-flash-image fi - if [ -e ${S}/barebox.efi ]; then - install -m 644 -t ${DEPLOYDIR}/ ${S}/barebox.efi + if [ -e ${B}/barebox.efi ]; then + install -m 644 -t ${DEPLOYDIR}/ ${B}/barebox.efi fi - for IMAGE in ${S}/images/*.img; do + for IMAGE in ${B}/images/*.img; do if [ -e ${IMAGE} ]; then BAREBOX_IMG_BASENAME=$(basename ${IMAGE} .img)${BAREBOX_IMAGE_SUFFIX} install -m 644 -T ${IMAGE} ${DEPLOYDIR}/${BAREBOX_IMG_BASENAME}-${DATETIME}.img |