aboutsummaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
authorGravatar Fabio Estevam <festevam@gmail.com>2016-05-13 17:33:25 -0300
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-05-13 22:36:09 +0200
commit35a24c6f0f2592cd94b1ac293ce62d9a22f2a8b5 (patch)
tree4e1efabee1def4ff4e93e3fb01a61bfb8bddd0ca /board/freescale
parente7823ae38ec652ef240c6af9ecfd53cea77db89c (diff)
downloadbuildroot-35a24c6f0f2592cd94b1ac293ce62d9a22f2a8b5.tar.gz
buildroot-35a24c6f0f2592cd94b1ac293ce62d9a22f2a8b5.tar.bz2
post-image: Do not hardcode the genimage.cfg path
Instead of hardcoding the genimage.cfg path, let's add a BOARD_DIR variable to improve readability. Signed-off-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'board/freescale')
-rwxr-xr-xboard/freescale/imx6ulevk/post-image.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/freescale/imx6ulevk/post-image.sh b/board/freescale/imx6ulevk/post-image.sh
index cb75a47de6..87573557ca 100755
--- a/board/freescale/imx6ulevk/post-image.sh
+++ b/board/freescale/imx6ulevk/post-image.sh
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
-GENIMAGE_CFG="board/freescale/imx6ulevk/genimage.cfg"
+BOARD_DIR="$(dirname $0)"
+GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
rm -rf "${GENIMAGE_TMP}"