From: "Eric Bénard" <eric@eukrea.com>
To: s.hauer@pengutronix.de
Cc: barebox@lists.infradead.org
Subject: [PATCH 4/7] update: add bareboxenv update possibility
Date: Fri, 7 Jan 2011 17:35:30 +0100 [thread overview]
Message-ID: <1294418133-5256-4-git-send-email-eric@eukrea.com> (raw)
In-Reply-To: <1294418133-5256-1-git-send-email-eric@eukrea.com>
this is useful when building barebox without integrated env.
Signed-off-by: Eric Bénard <eric@eukrea.com>
---
defaultenv/bin/_update_help | 3 ++-
defaultenv/bin/update | 5 +++++
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/defaultenv/bin/_update_help b/defaultenv/bin/_update_help
index 2f6a2b3..5e3ca45 100644
--- a/defaultenv/bin/_update_help
+++ b/defaultenv/bin/_update_help
@@ -1,6 +1,6 @@
#!/bin/sh
-echo "usage: update -t <kernel|rootfs|barebox> -d <nor|nand> [-m tftp|xmodem] [-f imagename] -c"
+echo "usage: update -t <kernel|rootfs|barebox|bareboxenv> -d <nor|nand> [-m tftp|xmodem] [-f imagename] -c"
echo "update tools."
echo ""
echo "options"
@@ -10,3 +10,4 @@ echo "default mode is tftp"
echo "type update -t kernel -d <nor|nand> [-m tftp|xmodem] [-f imagename] to update kernel into flash"
echo "type update -t rootfs -d <nor|nand> [-m tftp|xmodem] [-f imagename] to update rootfs into flash"
echo "type update -t barebox -d <nor|nand> [-m tftp|xmodem] [-f imagename] to update barebox into flash"
+echo "type update -t bareboxenv -d <nor|nand> [-m tftp|xmodem] [-f imagename] to update bareboxenv into flash"
diff --git a/defaultenv/bin/update b/defaultenv/bin/update
index 5b35df1..43d3097 100644
--- a/defaultenv/bin/update
+++ b/defaultenv/bin/update
@@ -35,6 +35,11 @@ elif [ x${type} = xbarebox ]; then
if [ x${image} = x ]; then
image=barebox.bin
fi
+elif [ x${type} = xbareboxenv ]; then
+ image=$bareboxenvimage
+ if [ x${image} = x ]; then
+ image=bareboxenv.bin
+ fi
else
. /env/bin/_update_help
exit 1
--
1.7.3.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2011-01-07 16:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-07 16:35 [PATCH 1/7] _update_help: fix script name Eric Bénard
2011-01-07 16:35 ` [PATCH 2/7] defaultenv/bin/boot: make ubi root's name configurable Eric Bénard
2011-01-07 16:35 ` [PATCH 3/7] defaultenv/bin/update: let /env/config set default values Eric Bénard
2011-01-07 16:35 ` Eric Bénard [this message]
2011-01-07 16:35 ` [PATCH 5/7] eukrea_cpuimx25: add led support Eric Bénard
2011-01-07 16:35 ` [PATCH 6/7] eukrea_cpuimx25: switch to default environement Eric Bénard
2011-01-07 16:35 ` [PATCH 7/7] eukrea_cpuimx25: update defconfig Eric Bénard
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=1294418133-5256-4-git-send-email-eric@eukrea.com \
--to=eric@eukrea.com \
--cc=barebox@lists.infradead.org \
--cc=s.hauer@pengutronix.de \
/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