making a generic [lib/distro_defaults.cmd]

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

@ -0,0 +1,4 @@
echo "distro_defaults: boot.scr/uEnv.txt wrapper..."
load ${devtype} ${devnum}:${bootpart} ${scriptaddr} /boot/uEnv.txt
env import -t ${scriptaddr} ${filesize}
run uenvcmd

@ -1107,13 +1107,7 @@ populate_boot () {
fi fi
if [ "x${conf_config_distro_defaults}" = "xenable" ] ; then if [ "x${conf_config_distro_defaults}" = "xenable" ] ; then
cat > ${TEMPDIR}/bootscripts/loader.cmd <<-__EOF__ mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "uEnv.txt" -d ${DIR}/lib/distro_defaults.cmd ${TEMPDIR}/disk/boot/boot.scr
echo "boot.scr -> uEnv.txt wrapper..."
load \${devtype} \${devnum}:\${bootpart} \${scriptaddr} /boot/uEnv.txt
env import -t \${scriptaddr} \${filesize}
run uenvcmd
__EOF__
mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "uEnv.txt" -d ${TEMPDIR}/bootscripts/loader.cmd ${TEMPDIR}/disk/boot/boot.scr
fi fi
if [ "${conf_uboot_bootscript}" ] ; then if [ "${conf_uboot_bootscript}" ] ; then

Loading…
Cancel
Save