All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Lechner <david@lechnology.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/3] lego: ev3: Use genimage to rename uImage file
Date: Tue, 23 May 2017 13:04:05 -0500	[thread overview]
Message-ID: <1495562646-4410-3-git-send-email-david@lechnology.com> (raw)
In-Reply-To: <1495562646-4410-1-git-send-email-david@lechnology.com>

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>
---
 board/lego/ev3/genimage.cfg  | 4 ++--
 board/lego/ev3/post-image.sh | 2 --
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/board/lego/ev3/genimage.cfg b/board/lego/ev3/genimage.cfg
index 3568295..0ec580c 100644
--- a/board/lego/ev3/genimage.cfg
+++ b/board/lego/ev3/genimage.cfg
@@ -34,8 +34,8 @@ image flash.bin {
 
 image boot.vfat {
 	vfat {
-		files = {
-			"uImage"
+		file uImage {
+			image = "uImage.da850-lego-ev3"
 		}
 	}
 	size = 16M
diff --git a/board/lego/ev3/post-image.sh b/board/lego/ev3/post-image.sh
index 553d27a..81626dc 100755
--- a/board/lego/ev3/post-image.sh
+++ b/board/lego/ev3/post-image.sh
@@ -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 \
-- 
2.7.4

  parent reply	other threads:[~2017-05-23 18:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-23 18:04 [Buildroot] [PATCH 0/3] LEGO MINDSTORMS EV3 updates David Lechner
2017-05-23 18:04 ` [Buildroot] [PATCH 1/3] lego: ev3: Bump U-Boot version David Lechner
2017-05-23 18:04 ` David Lechner [this message]
2017-05-23 18:04 ` [Buildroot] [PATCH 3/3] lego: ev3: Use ext4 file system David Lechner
2017-05-31 21:03 ` [Buildroot] [PATCH 0/3] LEGO MINDSTORMS EV3 updates Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1495562646-4410-3-git-send-email-david@lechnology.com \
    --to=david@lechnology.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.