aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorGravatar Gary Bisson <gary.bisson@boundarydevices.com>2020-03-27 18:12:01 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2020-03-29 16:29:27 +0200
commit3eac848e87a7342b840ef8fe5b2e84e9c4314f11 (patch)
treeecb1eb62c03913b4caf68ff9119a8c92e73e4197 /board
parent3110dd8a810424d78eb1e11d03a5d951a270b33f (diff)
downloadbuildroot-3eac848e87a7342b840ef8fe5b2e84e9c4314f11.tar.gz
buildroot-3eac848e87a7342b840ef8fe5b2e84e9c4314f11.tar.bz2
board/boundarydevices/common/post-image.sh: use genimage.sh
- 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> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'board')
-rwxr-xr-xboard/boundarydevices/common/post-image.sh13
1 files changed, 1 insertions, 12 deletions
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 $?