mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: barebox@lists.infradead.org
Subject: [PATCH 3/6] defaultenv/update: add oftree support
Date: Sat, 14 Apr 2012 18:02:20 +0200	[thread overview]
Message-ID: <1334419343-1121-3-git-send-email-plagnioj@jcrosoft.com> (raw)
In-Reply-To: <20120414155623.GA30672@game.jcrosoft.org>

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.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 3b7ad23..b41e288 100644
--- a/defaultenv/bin/_update_help
+++ b/defaultenv/bin/_update_help
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-echo "usage: update -t <kernel|rootfs|barebox|bareboxenv|xload> -d <nor|nand> [-m tftp|xmodem] [-f imagename] -c"
+echo "usage: update -t <kernel|rootfs|barebox|bareboxenv|xload|oftree> -d <nor|nand> [-m tftp|xmodem] [-f imagename] -c"
 echo "update tools."
 echo ""
 echo "options"
@@ -12,3 +12,4 @@ echo "type update -t rootfs -d <nor|nand> [-m tftp|xmodem|nfs] [-f imagename] to
 echo "type update -t barebox -d <nor|nand> [-m tftp|xmodem|nfs] [-f imagename] to update barebox into flash"
 echo "type update -t bareboxenv -d <nor|nand> [-m tftp|xmodem|nfs] [-f imagename] to update bareboxenv into flash"
 echo "type update -t xload -d <nor|nand> [-m tftp|xmodem|nfs] [-f imagename] to update xload into flash"
+echo "type update -t oftree -d <nor|nand> [-m tftp|xmodem|nfs] [-f imagename] to update oftree into flash"
diff --git a/defaultenv/bin/update b/defaultenv/bin/update
index 96442b1..1578789 100644
--- a/defaultenv/bin/update
+++ b/defaultenv/bin/update
@@ -36,6 +36,11 @@ elif [ x${type} = xbarebox ]; then
 	if [ -z ${image} ]; then
 		image=barebox.bin
 	fi
+elif [ x${type} = xoftree ]; then
+	image=$oftreeimage
+	if [ -z ${image} ]; then
+		image=oftree.bin
+	fi
 elif [ x${type} = xbareboxenv ]; then
 	image=$bareboxenvimage
 	if [ -z ${image} ]; then
-- 
1.7.9.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2012-04-14 16:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-14 15:56 [PATCH 0/6] some fixes Jean-Christophe PLAGNIOL-VILLARD
2012-04-14 16:02 ` [PATCH 1/6] menu: enable the fancy color support only if HUSH is enabled Jean-Christophe PLAGNIOL-VILLARD
2012-04-14 16:02 ` [PATCH 2/6] at91sam9263ek: update defconfig Jean-Christophe PLAGNIOL-VILLARD
2012-04-14 16:02 ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2012-04-14 16:02 ` [PATCH 4/6] net: use net_alloc_packet to allocate packet Jean-Christophe PLAGNIOL-VILLARD
2012-04-14 16:02 ` [PATCH 5/6] mx53/loco: udpate defconfig with USB host Jean-Christophe PLAGNIOL-VILLARD
2012-04-14 16:02 ` [PATCH 6/6] arm: bootm: zImage: add error message when can not request the memory Jean-Christophe PLAGNIOL-VILLARD
2012-04-15 16:30   ` Sascha Hauer

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=1334419343-1121-3-git-send-email-plagnioj@jcrosoft.com \
    --to=plagnioj@jcrosoft.com \
    --cc=barebox@lists.infradead.org \
    /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