backup bootloader, need to think more about this..

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/37/head
Robert Nelson 11 years ago
parent 9a75a86da0
commit 04b20e00f8

@ -798,11 +798,13 @@ generate_soc () {
echo "dd_spl_uboot_seek=${dd_spl_uboot_seek}" >> ${wfile} echo "dd_spl_uboot_seek=${dd_spl_uboot_seek}" >> ${wfile}
echo "dd_spl_uboot_conf=${dd_spl_uboot_conf}" >> ${wfile} echo "dd_spl_uboot_conf=${dd_spl_uboot_conf}" >> ${wfile}
echo "dd_spl_uboot_bs=${dd_spl_uboot_bs}" >> ${wfile} echo "dd_spl_uboot_bs=${dd_spl_uboot_bs}" >> ${wfile}
echo "dd_spl_uboot_backup=${dd_spl_uboot_backup}" >> ${wfile}
echo "" >> ${wfile} echo "" >> ${wfile}
echo "dd_uboot_count=${dd_uboot_count}" >> ${wfile} echo "dd_uboot_count=${dd_uboot_count}" >> ${wfile}
echo "dd_uboot_seek=${dd_uboot_seek}" >> ${wfile} echo "dd_uboot_seek=${dd_uboot_seek}" >> ${wfile}
echo "dd_uboot_conf=${dd_uboot_conf}" >> ${wfile} echo "dd_uboot_conf=${dd_uboot_conf}" >> ${wfile}
echo "dd_uboot_bs=${dd_uboot_bs}" >> ${wfile} echo "dd_uboot_bs=${dd_uboot_bs}" >> ${wfile}
echo "dd_uboot_backup=${dd_uboot_backup}" >> ${wfile}
else else
echo "uboot_CONFIG_CMD_BOOTZ=${uboot_CONFIG_CMD_BOOTZ}" >> ${wfile} echo "uboot_CONFIG_CMD_BOOTZ=${uboot_CONFIG_CMD_BOOTZ}" >> ${wfile}
echo "uboot_CONFIG_SUPPORT_RAW_INITRD=${uboot_CONFIG_SUPPORT_RAW_INITRD}" >> ${wfile} echo "uboot_CONFIG_SUPPORT_RAW_INITRD=${uboot_CONFIG_SUPPORT_RAW_INITRD}" >> ${wfile}
@ -1045,21 +1047,24 @@ populate_boot () {
mkdir -p ${TEMPDIR}/disk/backup || true mkdir -p ${TEMPDIR}/disk/backup || true
mkdir -p ${TEMPDIR}/disk/boot/dtbs/current/ || true mkdir -p ${TEMPDIR}/disk/boot/dtbs/current/ || true
if [ ! "${bootloader_installed}" ] ; then
if [ "${spl_name}" ] ; then if [ "${spl_name}" ] ; then
if [ -f ${TEMPDIR}/dl/${SPL} ] ; then if [ -f ${TEMPDIR}/dl/${SPL} ] ; then
if [ ! "${bootloader_installed}" ] ; then
cp -v ${TEMPDIR}/dl/${SPL} ${TEMPDIR}/disk/${spl_name} cp -v ${TEMPDIR}/dl/${SPL} ${TEMPDIR}/disk/${spl_name}
echo "-----------------------------"
fi fi
cp -v ${TEMPDIR}/dl/${SPL} ${TEMPDIR}/disk/backup/${spl_name}
echo "-----------------------------"
fi fi
fi fi
if [ ! "${bootloader_installed}" ] ; then
if [ "${boot_name}" ] ; then if [ "${boot_name}" ] ; then
if [ -f ${TEMPDIR}/dl/${UBOOT} ] ; then if [ -f ${TEMPDIR}/dl/${UBOOT} ] ; then
if [ ! "${bootloader_installed}" ] ; then
cp -v ${TEMPDIR}/dl/${UBOOT} ${TEMPDIR}/disk/${boot_name} cp -v ${TEMPDIR}/dl/${UBOOT} ${TEMPDIR}/disk/${boot_name}
echo "-----------------------------"
fi fi
cp -v ${TEMPDIR}/dl/${UBOOT} ${TEMPDIR}/disk/backup/${boot_name}
echo "-----------------------------"
fi fi
fi fi

Loading…
Cancel
Save