mk_mmc.sh: cleanup /vmlinuz-

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/37/head
Robert Nelson 11 years ago
parent d4cbfa4009
commit acee33c179

@ -732,10 +732,7 @@ flash_kernel_base_installer () {
rm -f /target/mounts || true rm -f /target/mounts || true
umount /target/sys umount /target/sys
if [ -f /target/boot/uboot/vmlinuz- ] ; then if [ -f /target/boot/uboot/boot/vmlinuz-current ] ; then
cp /target/boot/uboot/vmlinuz- /target/boot/vmlinuz-
cp /target/boot/uboot/vmlinuz- /target/boot/vmlinuz-\$(uname -r)
else
cp /target/boot/uboot/boot/vmlinuz-current /target/boot/vmlinuz- cp /target/boot/uboot/boot/vmlinuz-current /target/boot/vmlinuz-
cp /target/boot/uboot/boot/vmlinuz-current /target/boot/vmlinuz-\$(uname -r) cp /target/boot/uboot/boot/vmlinuz-current /target/boot/vmlinuz-\$(uname -r)
fi fi
@ -1194,13 +1191,14 @@ populate_boot () {
if [ -f ${TEMPDIR}/kernel/boot/vmlinuz-* ] ; then if [ -f ${TEMPDIR}/kernel/boot/vmlinuz-* ] ; then
LINUX_VER=$(ls ${TEMPDIR}/kernel/boot/vmlinuz-* | awk -F'vmlinuz-' '{print $2}') LINUX_VER=$(ls ${TEMPDIR}/kernel/boot/vmlinuz-* | awk -F'vmlinuz-' '{print $2}')
echo "Copying Kernel images:" echo "Copying Kernel images:"
if [ "x${conf_smart_uboot}" = "xenable" ] ; then
cp -v ${TEMPDIR}/kernel/boot/vmlinuz-* ${TEMPDIR}/disk/boot/vmlinuz-current cp -v ${TEMPDIR}/kernel/boot/vmlinuz-* ${TEMPDIR}/disk/boot/vmlinuz-current
else
if [ ! "x${conf_smart_uboot}" = "xenable" ] ; then
mkimage -A arm -O linux -T kernel -C none -a ${conf_zreladdr} -e ${conf_zreladdr} -n ${LINUX_VER} -d ${TEMPDIR}/kernel/boot/vmlinuz-* ${TEMPDIR}/disk/uImage.net mkimage -A arm -O linux -T kernel -C none -a ${conf_zreladdr} -e ${conf_zreladdr} -n ${LINUX_VER} -d ${TEMPDIR}/kernel/boot/vmlinuz-* ${TEMPDIR}/disk/uImage.net
cp -v ${TEMPDIR}/kernel/boot/vmlinuz-* ${TEMPDIR}/disk/zImage.net cp -v ${TEMPDIR}/kernel/boot/vmlinuz-* ${TEMPDIR}/disk/zImage.net
fi fi
cp -v ${TEMPDIR}/kernel/boot/vmlinuz-* ${TEMPDIR}/disk/vmlinuz-
echo "-----------------------------" echo "-----------------------------"
fi fi

Loading…
Cancel
Save