From d80978f9b2243d86001b38de0a711ccb6f0cf316 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Mon, 1 Sep 2014 11:01:30 -0500 Subject: [PATCH] making a generic [lib/distro_defaults.cmd] Signed-off-by: Robert Nelson --- lib/distro_defaults.cmd | 4 ++++ mk_mmc.sh | 8 +------- 2 files changed, 5 insertions(+), 7 deletions(-) create mode 100644 lib/distro_defaults.cmd diff --git a/lib/distro_defaults.cmd b/lib/distro_defaults.cmd new file mode 100644 index 0000000..2a8c9fc --- /dev/null +++ b/lib/distro_defaults.cmd @@ -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 diff --git a/mk_mmc.sh b/mk_mmc.sh index 1d305cb..bec1795 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -1107,13 +1107,7 @@ populate_boot () { fi if [ "x${conf_config_distro_defaults}" = "xenable" ] ; then - cat > ${TEMPDIR}/bootscripts/loader.cmd <<-__EOF__ - 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 + 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 fi if [ "${conf_uboot_bootscript}" ] ; then