mk_mmc.sh: prep for using the common location

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

@ -965,12 +965,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:"
cp -v ${TEMPDIR}/kernel/boot/vmlinuz-* ${TEMPDIR}/disk/boot/vmlinuz-current cp -v ${TEMPDIR}/kernel/boot/vmlinuz-* ${TEMPDIR}/disk/boot/vmlinuz-current
if [ ! "x${conf_smart_uboot}" = "xenable" ] ; then 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 if [ "${conf_uboot_CONFIG_CMD_BOOTZ}" ] ; then
cp -v ${TEMPDIR}/kernel/boot/vmlinuz-* ${TEMPDIR}/disk/zImage.net cp -v ${TEMPDIR}/kernel/boot/vmlinuz-* ${TEMPDIR}/disk/zImage.net
else
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
fi
fi fi
echo "-----------------------------" echo "-----------------------------"
@ -979,9 +981,9 @@ populate_boot () {
if [ -f ${TEMPDIR}/initrd.mod.gz ] ; then if [ -f ${TEMPDIR}/initrd.mod.gz ] ; then
#This is 20+ MB in size, just copy one.. #This is 20+ MB in size, just copy one..
echo "Copying Kernel initrds:" echo "Copying Kernel initrds:"
if [ "x${conf_smart_uboot}" = "xenable" ] ; then cp -v ${TEMPDIR}/initrd.mod.gz ${TEMPDIR}/disk/boot/initrd.img-current
cp -v ${TEMPDIR}/initrd.mod.gz ${TEMPDIR}/disk/boot/initrd.img-current
else if [ ! "x${conf_smart_uboot}" = "xenable" ] ; then
if [ ${mkimage_initrd} ] ; then if [ ${mkimage_initrd} ] ; then
mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d ${TEMPDIR}/initrd.mod.gz ${TEMPDIR}/disk/uInitrd.net mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d ${TEMPDIR}/initrd.mod.gz ${TEMPDIR}/disk/uInitrd.net
else else
@ -1230,19 +1232,23 @@ process_dtb_conf () {
conf_bootcmd="bootz" conf_bootcmd="bootz"
conf_normal_kernel_file=zImage conf_normal_kernel_file=zImage
conf_net_kernel_file=zImage.net conf_net_kernel_file=zImage.net
kernel=/boot/vmlinuz-current
else else
conf_bootcmd="bootm" conf_bootcmd="bootm"
conf_normal_kernel_file=uImage conf_normal_kernel_file=uImage
conf_net_kernel_file=uImage.net conf_net_kernel_file=uImage.net
kernel=/boot/uImage
fi fi
if [ "${conf_uboot_CONFIG_SUPPORT_RAW_INITRD}" ] ; then if [ "${conf_uboot_CONFIG_SUPPORT_RAW_INITRD}" ] ; then
conf_normal_initrd_file=initrd.img conf_normal_initrd_file=initrd.img
conf_net_initrd_file=initrd.net conf_net_initrd_file=initrd.net
initrd=/boot/initrd.img-current
else else
mkimage_initrd=1 mkimage_initrd=1
conf_normal_initrd_file=uInitrd conf_normal_initrd_file=uInitrd
conf_net_initrd_file=uInitrd.net conf_net_initrd_file=uInitrd.net
initrd=/boot/uInitrdinitrd.img-current
fi fi
if [ "${conf_uboot_CONFIG_CMD_FS_GENERIC}" ] ; then if [ "${conf_uboot_CONFIG_CMD_FS_GENERIC}" ] ; then

Loading…
Cancel
Save