diff options
author | Eric Bénard <eric@eukrea.com> | 2011-01-07 17:35:30 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-01-08 13:26:48 +0100 |
commit | fe2eb54612aead53d1bc4335df1b31d6e9c6a218 (patch) | |
tree | 75773b3e30b30a723fdc7d3cc4796aaa0be6f110 | |
parent | ec604a5448c0f208061b24583c162f51218ff42d (diff) | |
download | barebox-fe2eb54612aead53d1bc4335df1b31d6e9c6a218.tar.gz barebox-fe2eb54612aead53d1bc4335df1b31d6e9c6a218.tar.xz |
update: add bareboxenv update possibility
this is useful when building barebox without integrated env.
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | defaultenv/bin/_update_help | 3 | ||||
-rw-r--r-- | defaultenv/bin/update | 5 |
2 files changed, 7 insertions, 1 deletions
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 <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 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 |