diff mbox series

[v2,1/3] board/boundarydevices/common/post-image.sh: use genimage.sh

Message ID 20200327171203.619849-2-gary.bisson@boundarydevices.com
State Accepted
Headers show
Series imx: update Boundary Devices boards support | expand

Commit Message

Gary Bisson March 27, 2020, 5:12 p.m. UTC
- To avoid code duplication and to benefit from support script
improvements like empty target dir.
- Note that currently genimage.sh can't be set in defconfig directly for
i.MX8 targets as the POST_SCRIPT_ARGS is used by
imx8-bootloader-prepare.sh

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
---
 board/boundarydevices/common/post-image.sh | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)
diff mbox series

Patch

diff --git a/board/boundarydevices/common/post-image.sh b/board/boundarydevices/common/post-image.sh
index 9cca1b1789..5c70d98e54 100755
--- a/board/boundarydevices/common/post-image.sh
+++ b/board/boundarydevices/common/post-image.sh
@@ -1,16 +1,5 @@ 
 #!/bin/sh
 
-BOARD_DIR="$(dirname $0)"
-GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
-GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
-
-rm -rf "${GENIMAGE_TMP}"
-
-genimage                           \
-	--rootpath "${TARGET_DIR}"     \
-	--tmppath "${GENIMAGE_TMP}"    \
-	--inputpath "${BINARIES_DIR}"  \
-	--outputpath "${BINARIES_DIR}" \
-	--config "${GENIMAGE_CFG}"
+support/scripts/genimage.sh -c $(dirname $0)/genimage.cfg
 
 exit $?