rootfsinstall: assign default values for USEKERNEL for rpi and cubox platforms

This commit is contained in:
Silvan Calarco 2013-12-09 13:29:53 +01:00
parent 8607a86960
commit b3c56bc969

View File

@ -127,10 +127,12 @@ fi
case $TARGETDEVICE in
rpi) BOOTFSTYPE=fat32
BOOTFSSIZE=40M
[ "$USEKERNEL" ] || USEKERNEL=zImage-3.6.11-rpi
KERNELDEST="@BOOT@/kernel.img"
;;
cubox) BOOTFSTYPE=ext3
BOOTFSSIZE=20M
[ "$USEKERNEL" ] || USEKERNEL=uImage-3.6.9-cubox
KERNELDEST="@BOOT@/boot/uImage"
;;
*) BOOTFSTYPE=
@ -189,7 +191,7 @@ sync
if [ "$BOOTFSTYPE" ]; then
echo "Formatting $PARTITION1 ($BOOTFSTYPE) ..."
case "$BOOTFSTYPE" in
vfat) mkfs.vfat -s 1 -F 32 -n "BOOT" $PARTITION1 || {
vfat|fat32) mkfs.vfat -s 1 -F 32 -n "BOOT" $PARTITION1 || {
echo "ERROR: unable to format $PARTITION1; aborting."
exit 1
} ;;