diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2023-04-14 16:54:27 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-14 16:54:27 -0300 |
commit | 5dd6bfebacd3bbae8b824fff20d426cd14249459 (patch) | |
tree | 02eb8e3b78eef178e7c918831efa9ffbe362b66f | |
parent | 19b3aceb1c8fefc437d291ea595b51f473cca689 (diff) | |
parent | faf2e7fdee71aa13e0f8f6b2fffcdfe4f504fc36 (diff) | |
download | meta-freescale-5dd6bfebacd3bbae8b824fff20d426cd14249459.tar.gz |
Merge pull request #1499 from Freescale/fix/duplicated-binaries-for-uuu
classes/image_populate_mfgtool: avoid error copying duplicated files
-rw-r--r-- | classes/image_populate_mfgtool.bbclass | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/classes/image_populate_mfgtool.bbclass b/classes/image_populate_mfgtool.bbclass index 90226e35..d30b47a3 100644 --- a/classes/image_populate_mfgtool.bbclass +++ b/classes/image_populate_mfgtool.bbclass | |||
@@ -50,18 +50,18 @@ MFGTOOL_FILESPATH ??= " \ | |||
50 | " | 50 | " |
51 | 51 | ||
52 | MFGTOOLDIR = "${WORKDIR}/mfgtool-${PN}" | 52 | MFGTOOLDIR = "${WORKDIR}/mfgtool-${PN}" |
53 | do_populate_mfgtool[dirs] = "${MFGTOOLDIR}" | 53 | do_populate_mfgtool[dirs] += "${MFGTOOLDIR}" |
54 | do_populate_mfgtool[cleandirs] = "${MFGTOOLDIR}" | 54 | do_populate_mfgtool[cleandirs] = "${MFGTOOLDIR}" |
55 | 55 | ||
56 | addtask populate_mfgtool after do_image_complete do_unpack before do_deploy | 56 | addtask populate_mfgtool after do_image_complete do_unpack before do_deploy |
57 | do_populate_mfgtool[dirs] ?= "${DEPLOY_DIR_IMAGE} ${WORKDIR}" | ||
58 | do_populate_mfgtool[nostamp] = "1" | 57 | do_populate_mfgtool[nostamp] = "1" |
58 | do_populate_mfgtool[dirs] += "${DEPLOY_DIR_IMAGE} ${WORKDIR}" | ||
59 | do_populate_mfgtool[recrdeptask] += "do_deploy" | 59 | do_populate_mfgtool[recrdeptask] += "do_deploy" |
60 | do_populate_mfgtool[depends] += "uuu-bin:do_populate_sysroot" | 60 | do_populate_mfgtool[depends] += "uuu-bin:do_populate_sysroot" |
61 | 61 | ||
62 | python () { | 62 | python () { |
63 | depends = [] | 63 | depends = [] |
64 | deploy_files = [] | 64 | deploy_files = "" |
65 | scripts = (d.getVar('MFGTOOLCONFIG') or "").split() | 65 | scripts = (d.getVar('MFGTOOLCONFIG') or "").split() |
66 | scripts_and_flags = d.getVarFlags('MFGTOOLCONFIG') or {} | 66 | scripts_and_flags = d.getVarFlags('MFGTOOLCONFIG') or {} |
67 | for flag, flagval in sorted(scripts_and_flags.items()): | 67 | for flag, flagval in sorted(scripts_and_flags.items()): |
@@ -72,12 +72,12 @@ python () { | |||
72 | 72 | ||
73 | if flag in scripts: | 73 | if flag in scripts: |
74 | if num >= 2 and items[1]: | 74 | if num >= 2 and items[1]: |
75 | deploy_files.append(items[1]) | 75 | deploy_files += ' ' + items[1] |
76 | if num >= 1 and items[0]: | 76 | if num >= 1 and items[0]: |
77 | depends.append(items[0]) | 77 | depends.append(items[0]) |
78 | 78 | ||
79 | d.appendVarFlag('do_populate_mfgtool', 'depends', ' ' + ' '.join(depends)) | 79 | d.appendVarFlag('do_populate_mfgtool', 'depends', ' ' + ' '.join(depends)) |
80 | d.setVar('_SCRIPT_DEPLOY_FILES', ' '.join(deploy_files)) | 80 | d.setVar('_SCRIPT_DEPLOY_FILES', ' '.join(sorted(list(set(deploy_files.split()))))) |
81 | } | 81 | } |
82 | 82 | ||
83 | python do_populate_mfgtool() { | 83 | python do_populate_mfgtool() { |