9
0
Fork 0

defaultenv/update: add oftree support

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD 2012-04-14 18:02:20 +02:00 committed by Sascha Hauer
parent 3b02688a58
commit 1336fc9c43
2 changed files with 7 additions and 1 deletions

View File

@ -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"

View File

@ -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