diff options
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/classes-recipe/image_types_wic.bbclass | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/meta/classes-recipe/image_types_wic.bbclass b/meta/classes-recipe/image_types_wic.bbclass index 740ed946f8..6180874a4c 100644 --- a/meta/classes-recipe/image_types_wic.bbclass +++ b/meta/classes-recipe/image_types_wic.bbclass | |||
| @@ -57,6 +57,16 @@ def wks_search(files, search_path): | |||
| 57 | if searched: | 57 | if searched: |
| 58 | return searched | 58 | return searched |
| 59 | 59 | ||
| 60 | def wks_checksums(files, search_path): | ||
| 61 | ret = "" | ||
| 62 | for f in files: | ||
| 63 | found, hist = bb.utils.which(search_path, f, history=True) | ||
| 64 | ret = ret + " " + " ".join(h + ":False" for h in hist[:-1]) | ||
| 65 | if found: | ||
| 66 | ret = ret + " " + found + ":True" | ||
| 67 | return ret | ||
| 68 | |||
| 69 | |||
| 60 | WIC_CREATE_EXTRA_ARGS ?= "" | 70 | WIC_CREATE_EXTRA_ARGS ?= "" |
| 61 | 71 | ||
| 62 | IMAGE_CMD:wic () { | 72 | IMAGE_CMD:wic () { |
| @@ -98,7 +108,7 @@ do_image_wic[cleandirs] = "${WORKDIR}/build-wic" | |||
| 98 | 108 | ||
| 99 | # Rebuild when the wks file or vars in WICVARS change | 109 | # Rebuild when the wks file or vars in WICVARS change |
| 100 | USING_WIC = "${@bb.utils.contains_any('IMAGE_FSTYPES', 'wic ' + ' '.join('wic.%s' % c for c in '${CONVERSIONTYPES}'.split()), '1', '', d)}" | 110 | USING_WIC = "${@bb.utils.contains_any('IMAGE_FSTYPES', 'wic ' + ' '.join('wic.%s' % c for c in '${CONVERSIONTYPES}'.split()), '1', '', d)}" |
| 101 | WKS_FILE_CHECKSUM = "${@'${WKS_FULL_PATH}:%s' % os.path.exists('${WKS_FULL_PATH}') if '${USING_WIC}' else ''}" | 111 | WKS_FILE_CHECKSUM = "${@wks_checksums(d.getVar('WKS_FILES').split(), d.getVar('WKS_SEARCH_PATH')) if '${USING_WIC}' else ''}" |
| 102 | do_image_wic[file-checksums] += "${WKS_FILE_CHECKSUM}" | 112 | do_image_wic[file-checksums] += "${WKS_FILE_CHECKSUM}" |
| 103 | do_image_wic[depends] += "${@' '.join('%s-native:do_populate_sysroot' % r for r in ('parted', 'gptfdisk', 'dosfstools', 'mtools'))}" | 113 | do_image_wic[depends] += "${@' '.join('%s-native:do_populate_sysroot' % r for r in ('parted', 'gptfdisk', 'dosfstools', 'mtools'))}" |
| 104 | 114 | ||
