post-image: Do not hardcode the genimage.cfg path
authorFabio Estevam <festevam@gmail.com>
Fri, 13 May 2016 20:33:25 +0000 (17:33 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 13 May 2016 20:36:09 +0000 (22:36 +0200)
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>
board/freescale/imx6ulevk/post-image.sh
board/via/imx6_vab820/post-image.sh
board/wandboard/post-image.sh

index cb75a47de64dc8af9541f3aa1b0bed78c18acfaf..87573557caa005c1554d1c5f4c0e885fff3eec20 100755 (executable)
@@ -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}"
index 8d502a550e38481937660f6fd278b0920f5dcf9d..00de33b01d067861620b2fc1c54f9d78482e52f6 100755 (executable)
@@ -1,6 +1,7 @@
 #!/bin/bash
 
-GENIMAGE_CFG="board/via/imx6_vab820/genimage.cfg"
+BOARD_DIR="$(dirname $0)"
+GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
 GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
 
 rm -rf "${GENIMAGE_TMP}"
index 95cbfa489705596e4fe26de1f4b526e37c9194df..11f58dbd02e8eeb6cb910993fcdc3846d96e1cf5 100755 (executable)
@@ -1,6 +1,7 @@
 #!/usr/bin/env bash
 
-GENIMAGE_CFG="board/wandboard/genimage.cfg"
+BOARD_DIR="$(dirname $0)"
+GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
 GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
 
 rm -rf "${GENIMAGE_TMP}"