mk_mmc.sh: optimize these

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

@ -296,6 +296,7 @@ boot_uenv_txt_template () {
loadinitrd=${conf_fileload} mmc \${bootpart} ${conf_initrdaddr} \${initrd_file}; setenv initrd_size \${filesize} loadinitrd=${conf_fileload} mmc \${bootpart} ${conf_initrdaddr} \${initrd_file}; setenv initrd_size \${filesize}
loadfdt=${conf_fileload} mmc \${bootpart} ${conf_fdtaddr} /dtbs/\${fdtfile} loadfdt=${conf_fileload} mmc \${bootpart} ${conf_fdtaddr} /dtbs/\${fdtfile}
boot_fdt=run loadkernel; run loadinitrd; run loadfdt
__EOF__ __EOF__
@ -320,6 +321,7 @@ boot_uenv_txt_template () {
loadinitrd=${conf_fileload} mmc \${bootpart} ${conf_initrdaddr} \${initrd_file}; setenv initrd_size \${filesize} loadinitrd=${conf_fileload} mmc \${bootpart} ${conf_initrdaddr} \${initrd_file}; setenv initrd_size \${filesize}
loadfdt=${conf_fileload} mmc \${bootpart} ${conf_fdtaddr} /dtbs/\${fdtfile} loadfdt=${conf_fileload} mmc \${bootpart} ${conf_fdtaddr} /dtbs/\${fdtfile}
boot_fdt=run loadkernel; run loadinitrd; run loadfdt
__EOF__ __EOF__
@ -331,22 +333,10 @@ boot_uenv_txt_template () {
sed -i -e 's:#kms_force_mode:kms_force_mode:g' ${TEMPDIR}/bootscripts/*.cmd sed -i -e 's:#kms_force_mode:kms_force_mode:g' ${TEMPDIR}/bootscripts/*.cmd
fi fi
cat >> ${TEMPDIR}/bootscripts/normal.cmd <<-__EOF__
boot_fdt=run loadkernel; run loadinitrd; run loadfdt
__EOF__
if [ "${uboot_fdt_variable_name}" ] ; then if [ "${uboot_fdt_variable_name}" ] ; then
sed -i -e 's:fdtfile:'$uboot_fdt_variable_name':g' ${TEMPDIR}/bootscripts/normal.cmd sed -i -e 's:fdtfile:'$uboot_fdt_variable_name':g' ${TEMPDIR}/bootscripts/*.cmd
sed -i -e 's:fdtfile:'$uboot_fdt_variable_name':g' ${TEMPDIR}/bootscripts/netinstall.cmd
fi fi
cat >> ${TEMPDIR}/bootscripts/netinstall.cmd <<-__EOF__
boot_fdt=run loadkernel; run loadinitrd; run loadfdt
__EOF__
if [ "x${di_serial_mode}" = "xenable" ] ; then if [ "x${di_serial_mode}" = "xenable" ] ; then
cat >> ${TEMPDIR}/bootscripts/netinstall.cmd <<-__EOF__ cat >> ${TEMPDIR}/bootscripts/netinstall.cmd <<-__EOF__

Loading…
Cancel
Save