From fe2eb54612aead53d1bc4335df1b31d6e9c6a218 Mon Sep 17 00:00:00 2001 From: Eric Bénard Date: Fri, 7 Jan 2011 17:35:30 +0100 Subject: update: add bareboxenv update possibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit this is useful when building barebox without integrated env. Signed-off-by: Eric Bénard Signed-off-by: Sascha Hauer --- defaultenv/bin/_update_help | 3 ++- defaultenv/bin/update | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'defaultenv') diff --git a/defaultenv/bin/_update_help b/defaultenv/bin/_update_help index 2f6a2b380e..5e3ca45c79 100644 --- a/defaultenv/bin/_update_help +++ b/defaultenv/bin/_update_help @@ -1,6 +1,6 @@ #!/bin/sh -echo "usage: update -t -d [-m tftp|xmodem] [-f imagename] -c" +echo "usage: update -t -d [-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 [-m tftp|xmodem] [-f imagename] to update kernel into flash" echo "type update -t rootfs -d [-m tftp|xmodem] [-f imagename] to update rootfs into flash" echo "type update -t barebox -d [-m tftp|xmodem] [-f imagename] to update barebox into flash" +echo "type update -t bareboxenv -d [-m tftp|xmodem] [-f imagename] to update bareboxenv into flash" diff --git a/defaultenv/bin/update b/defaultenv/bin/update index 5b35df1315..43d30977d8 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 -- cgit v1.2.3