summaryrefslogtreecommitdiffstats
path: root/defaultenv
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-04-14 18:02:20 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-04-15 18:29:52 +0200
commit1336fc9c438ae83e4baaf6661c5a531632caf47d (patch)
treef4dbdfb59e92e383565cac3998c6bf7f2eccb7ca /defaultenv
parent3b02688a589f365f45e95c9d731c6aed5e8a6faa (diff)
downloadbarebox-1336fc9c438ae83e4baaf6661c5a531632caf47d.tar.gz
defaultenv/update: add oftree support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'defaultenv')
-rw-r--r--defaultenv/bin/_update_help3
-rw-r--r--defaultenv/bin/update5
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