summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2015-11-03 01:30:49 +0100
committerStefan Agner <stefan.agner@toradex.com>2015-11-03 01:51:25 +0100
commit0f12bcf0c284e98ccac1e8478a0beec9dd78c7ff (patch)
treeefb65bb39b3788edc7807a63fe40bd05ad7ec3b0
parent319c95b5aebe27e26e3c5d7b0eb8250ab1640155 (diff)
update.sh: load fwd_blk from fwd_mmc
To avoid code duplication call fwd_blk from fwd_mmc. This adds one more indirection, but since flash_mmc.img is a compatibility script anyway it is not the common case...
-rw-r--r--recipes/images/files/library/fwd_mmc.scr8
1 files changed, 1 insertions, 7 deletions
diff --git a/recipes/images/files/library/fwd_mmc.scr b/recipes/images/files/library/fwd_mmc.scr
index 4731435..4c8f666 100644
--- a/recipes/images/files/library/fwd_mmc.scr
+++ b/recipes/images/files/library/fwd_mmc.scr
@@ -1,9 +1,3 @@
#the update.sh script renames this. fwd_mmc.scr -> ../flash_mmc.img
#flash_mmc has been renamed to flash_blk, ensure compatibilty when updating from older versions
-test -n ${interface} || setenv interface mmc
-test -n ${drive} || setenv drive 1
-test "${board_name}" = "colibri_t20" && setenv drive 0
-test "${board_name}" = "colibri_vf" && setenv drive 0
-
-test -n ${board_name} || echo "board_name env not set!" && exit
-fatload ${interface} ${drive}:1 ${loadaddr} ${board_name}/flash_blk.img && source ${loadaddr}
+fatload mmc ${drive}:1 ${loadaddr} flash_blk.img && source ${loadaddr}