[PATCH 4/7] update: add bareboxenv update possibility

Eric Bénard eric at eukrea.com
Fri Jan 7 11:35:30 EST 2011


this is useful when building barebox without integrated env.

Signed-off-by: Eric Bénard <eric at 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




More information about the barebox mailing list