diff options
-rw-r--r-- | recipes-bsp/barebox/barebox.inc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/recipes-bsp/barebox/barebox.inc b/recipes-bsp/barebox/barebox.inc index 2f16a9f..377037b 100644 --- a/recipes-bsp/barebox/barebox.inc +++ b/recipes-bsp/barebox/barebox.inc @@ -40,12 +40,14 @@ do_compile () { do_deploy () { install -d ${DEPLOY_DIR_IMAGE} - if [ -e "${S}/barebox-flash-image" ]; then + if [ -e ${S}/barebox-flash-image ]; then install -m 644 -t ${DEPLOY_DIR_IMAGE}/ ${S}/barebox-flash-image fi - if [ -e "${S}/*.img" ]; then - install -m 644 -t ${DEPLOY_DIR_IMAGE}/ ${S}/images/*.img - fi + for IMAGE in ${S}/images/*.img; do + if [ -e ${IMAGE} ]; then + install -m 644 -t ${DEPLOY_DIR_IMAGE}/ ${IMAGE} + fi + done } addtask deploy before do_build after do_compile |