diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2015-11-03 01:30:49 +0100 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2015-11-03 01:51:25 +0100 |
commit | baa4e377603b0b659b6c83bf770315d7f3c9949c (patch) | |
tree | 399fbc79f13437566a04eb7d0793d3290de4118d /recipes | |
parent | 238d2f4331b08749bbfcfa21cfd76a2acb4c106e (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...
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/images/files/library/fwd_mmc.scr | 8 |
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} |