Commit d9851069 authored by Thomas Gagneret's avatar Thomas Gagneret Committed by Stefano Babic
Browse files

swupdate class: add a way to add unconditionally files from deploy

Note: this was cherry-picked from:

	 8d492232



changing list_for_cpio.append not available in fido.
Signed-off-by: default avatarThomas Gagneret <tgagneret@witekio.com>
Signed-off-by: Stefano Babic's avatarStefano Babic <sbabic@denx.de>
parent 0f58f56a
......@@ -76,13 +76,20 @@ python do_swuimage () {
if (filename != 'sw-description'):
list_for_cpio += " " + filename
# SWUPDATE_IMAGES refers to images in the DEPLOY directory
# If they are not there, additional file can be added
# by fetching from URLs
deploydir = d.getVar('DEPLOY_DIR_IMAGE', True)
for image in images:
imagename = image + '-' + d.getVar('MACHINE', True)
fstypes = (d.getVarFlag("SWUPDATE_IMAGES_FSTYPES", image, True) or "").split()
for fstype in fstypes:
imagebase = image + '-' + d.getVar('MACHINE', True)
appendmachine = d.getVarFlag("SWUPDATE_IMAGES_NOAPPEND_MACHINE", image, True)
if appendmachine == None:
imagebase = image + '-' + d.getVar('MACHINE', True)
else:
imagebase = image
imagename = imagebase + fstype
src = os.path.join(deploydir, "%s" % imagename)
dst = os.path.join(s, "%s" % imagename)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment