Skip to content

Commit

Permalink
barebox: also use image suffix for barebox-flash-image and EFI
Browse files Browse the repository at this point in the history
This makes it possible to have multiple barebox packages in a BSP
without them overwriting each other's image in the deploy stage, even
when they're building an EFI image or only a barebox-flash-image.

Signed-off-by: Roland Hieber <[email protected]>
  • Loading branch information
rohieb committed Nov 10, 2020
1 parent 7004222 commit eee4c71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recipes-bsp/barebox/barebox.inc
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ do_deploy[vardepsexclude] = "DATETIME"
do_deploy () {
install -d ${DEPLOYDIR}
if [ -e ${B}/barebox-flash-image ]; then
install -m 644 -t ${DEPLOYDIR}/ ${B}/barebox-flash-image
install -m 644 -t ${DEPLOYDIR}/barebox-flash-image${BAREBOX_IMAGE_SUFFIX} ${B}/barebox-flash-image
fi
if [ -e ${B}/barebox.efi ]; then
install -m 644 -t ${DEPLOYDIR}/ ${B}/barebox.efi
install -m 644 -t ${DEPLOYDIR}/barebox.efi${BAREBOX_IMAGE_SUFFIX} ${B}/barebox.efi
fi
for IMAGE in ${B}/images/*.img; do
if [ -e ${IMAGE} ]; then
Expand Down

0 comments on commit eee4c71

Please sign in to comment.