configs/lego_ev3: use genimage to rename uImage file
authorDavid Lechner <david@lechnology.com>
Tue, 23 May 2017 18:04:05 +0000 (13:04 -0500)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 31 May 2017 20:58:25 +0000 (22:58 +0200)
This uses a genimage feature to rename the uImage file instead
of manually creating a symlink in the post-image script.

Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
board/lego/ev3/genimage.cfg
board/lego/ev3/post-image.sh

index 35682953aa4757664fd4810a15b71e4412deef6e..0ec580ca136fa02bfa3c3300ce0fd61b9d28d967 100644 (file)
@@ -34,8 +34,8 @@ image flash.bin {
 
 image boot.vfat {
        vfat {
-               files = {
-                       "uImage"
+               file uImage {
+                       image = "uImage.da850-lego-ev3"
                }
        }
        size = 16M
index 553d27ab047881a2ae0e039fdaefebc23014a6f4..81626dc3710ddba3c0cf2b0ba77f2fa9dc66839d 100755 (executable)
@@ -4,8 +4,6 @@ BOARD_DIR="$(dirname $0)"
 GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
 GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
 
-ln -sf "uImage.da850-lego-ev3" "${BINARIES_DIR}/uImage"
-
 rm -rf "${GENIMAGE_TMP}"
 
 genimage \