From: Dagg Stompler <daggs@gmx.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 3/4] odroidc2: prepare post-image.sh for multi config support
Date: Sat, 9 Dec 2017 09:52:18 +0200 [thread overview]
Message-ID: <20171209075219.23240-3-daggs@gmx.com> (raw)
In-Reply-To: <20171209075219.23240-1-daggs@gmx.com>
prepare post-image.sh for support addition of multiple buildroot configs
Signed-off-by: Dagg Stompler <daggs@gmx.com>
---
board/hardkernel/odroidc2/post-image.sh | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/board/hardkernel/odroidc2/post-image.sh b/board/hardkernel/odroidc2/post-image.sh
index aaf12c1e79..a53f87ec11 100755
--- a/board/hardkernel/odroidc2/post-image.sh
+++ b/board/hardkernel/odroidc2/post-image.sh
@@ -1,8 +1,11 @@
#!/bin/sh
BOARD_DIR="$(dirname $0)"
-GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
+IM_FILE=""
+
+GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
+IM_FILE="${BINARIES_DIR}/u-boot.bin"
cp ${BOARD_DIR}/boot.ini ${BINARIES_DIR}/
@@ -15,5 +18,5 @@ genimage \
--outputpath "${BINARIES_DIR}" \
--config "${GENIMAGE_CFG}"
-dd if=${BINARIES_DIR}/u-boot.bin of=${BINARIES_DIR}/sdcard.img bs=1 count=442 conv=sync,notrunc
-dd if=${BINARIES_DIR}/u-boot.bin of=${BINARIES_DIR}/sdcard.img bs=512 skip=1 seek=1 conv=fsync,notrunc
+dd if=${IM_FILE} of=${BINARIES_DIR}/sdcard.img bs=1 count=442 conv=sync,notrunc
+dd if=${IM_FILE} of=${BINARIES_DIR}/sdcard.img bs=512 skip=1 seek=1 conv=fsync,notrunc
--
2.15.1
next prev parent reply other threads:[~2017-12-09 7:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-09 7:52 [Buildroot] [PATCH v2 1/4] meson-tools: new Package Dagg Stompler
2017-12-09 7:52 ` [Buildroot] [PATCH v2 2/4] odroidc2-ATF: " Dagg Stompler
2017-12-09 7:52 ` Dagg Stompler [this message]
2017-12-09 7:52 ` [Buildroot] [PATCH v2 4/4] odroidc2: add support for mainline kernel and u-boot Dagg Stompler
2017-12-09 11:42 ` daggs
2017-12-09 12:59 ` Sergey Matyukevich
2017-12-09 14:16 ` daggs
2017-12-09 16:34 ` Sergey Matyukevich
2017-12-10 7:54 ` daggs
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=20171209075219.23240-3-daggs@gmx.com \
--to=daggs@gmx.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox