summaryrefslogtreecommitdiff
path: root/recipes-images/images/files/apalis-tk1-mainline/update/apalis-tk1-mainline_bin/fwd_blk.scr
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2018-12-16 10:37:46 +0100
committerMax Krummenacher <max.krummenacher@toradex.com>2019-03-06 13:44:33 +0100
commitc73402f49cc0dd0e76cdea25db14ffebf3452104 (patch)
treec3ed70080b0d02e364a13940014df2cee31ad47f /recipes-images/images/files/apalis-tk1-mainline/update/apalis-tk1-mainline_bin/fwd_blk.scr
parent4a9030893315b99967e83f06c815a5120101f44f (diff)
image-fstype: rework files installation
This adds a new recipe tdx-updater which provides the files needed by tdx-image-fstype.inc rather than copying them in a non OE way in tdx-image-fstype.inc. This required to restructure the layout in files. An additional update directory is inserted. Also in each of the overrides directories a symlink to library is created. This now allows to build legacy update images with a custom machine configuration if one adds the relevant machine override, e.g. for a machine targeting a colibri-imx6 module: MACHINEOVERRIDES .= ":colibri-imx6" Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'recipes-images/images/files/apalis-tk1-mainline/update/apalis-tk1-mainline_bin/fwd_blk.scr')
-rw-r--r--recipes-images/images/files/apalis-tk1-mainline/update/apalis-tk1-mainline_bin/fwd_blk.scr11
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes-images/images/files/apalis-tk1-mainline/update/apalis-tk1-mainline_bin/fwd_blk.scr b/recipes-images/images/files/apalis-tk1-mainline/update/apalis-tk1-mainline_bin/fwd_blk.scr
new file mode 100644
index 0000000..7af72e6
--- /dev/null
+++ b/recipes-images/images/files/apalis-tk1-mainline/update/apalis-tk1-mainline_bin/fwd_blk.scr
@@ -0,0 +1,11 @@
+#the update.sh script renames this. fwd_blk.scr -> ../flash_blk.img
+test -n ${interface} || setenv interface mmc
+test -n ${drive} || setenv drive 1
+test -z "${board_name}" && test "${soc}" = "vf500" && setenv board_name colibri_vf
+test -z "${board_name}" && test "${soc}" = "vf610" && setenv board_name colibri_vf
+test "${board_name}" = "colibri_imx7" && setenv drive 0
+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}