diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/archive-configured-source.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/archive-original-source.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/archive-patched-source.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/deploy.bbclass | 1 | ||||
-rw-r--r-- | meta/classes/license.bbclass | 1 | ||||
-rw-r--r-- | meta/classes/package.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/package_deb.bbclass | 1 | ||||
-rw-r--r-- | meta/classes/package_ipk.bbclass | 1 | ||||
-rw-r--r-- | meta/classes/package_rpm.bbclass | 1 | ||||
-rw-r--r-- | meta/classes/sstate.bbclass | 26 | ||||
-rw-r--r-- | meta/classes/staging.bbclass | 1 |
11 files changed, 6 insertions, 34 deletions
diff --git a/meta/classes/archive-configured-source.bbclass b/meta/classes/archive-configured-source.bbclass index 54c234406a..961a53282a 100644 --- a/meta/classes/archive-configured-source.bbclass +++ b/meta/classes/archive-configured-source.bbclass | |||
@@ -45,7 +45,6 @@ ARCHIVE_SSTATE_SCRIPTS_LOGS_INDIR = "${WORKDIR}/script-logs/" | |||
45 | ARCHIVE_SSTATE_DIFFGZ_ENVDATA_INDIR = "${WORKDIR}/diffgz-envdata/" | 45 | ARCHIVE_SSTATE_DIFFGZ_ENVDATA_INDIR = "${WORKDIR}/diffgz-envdata/" |
46 | 46 | ||
47 | SSTATETASKS += "do_archive_scripts_logs" | 47 | SSTATETASKS += "do_archive_scripts_logs" |
48 | do_archive_scripts_logs[sstate-name] = "archive_scripts_logs" | ||
49 | do_archive_scripts_logs[sstate-inputdirs] = "${ARCHIVE_SSTATE_SCRIPTS_LOGS_INDIR}" | 48 | do_archive_scripts_logs[sstate-inputdirs] = "${ARCHIVE_SSTATE_SCRIPTS_LOGS_INDIR}" |
50 | do_archive_scripts_logs[sstate-outputdirs] = "${ARCHIVE_SSTATE_OUTDIR}" | 49 | do_archive_scripts_logs[sstate-outputdirs] = "${ARCHIVE_SSTATE_OUTDIR}" |
51 | 50 | ||
@@ -56,7 +55,6 @@ python do_archive_scripts_logs_setscene () { | |||
56 | addtask do_archive_scripts_logs_setscene | 55 | addtask do_archive_scripts_logs_setscene |
57 | 56 | ||
58 | SSTATETASKS += "do_dumpdata_create_diff_gz" | 57 | SSTATETASKS += "do_dumpdata_create_diff_gz" |
59 | do_dumpdata_create_diff_gz[sstate-name] = "dumpdata_create_diff_gz" | ||
60 | do_dumpdata_create_diff_gz[sstate-inputdirs] = "${ARCHIVE_SSTATE_DIFFGZ_ENVDATA_INDIR}" | 58 | do_dumpdata_create_diff_gz[sstate-inputdirs] = "${ARCHIVE_SSTATE_DIFFGZ_ENVDATA_INDIR}" |
61 | do_dumpdata_create_diff_gz[sstate-outputdirs] = "${ARCHIVE_SSTATE_OUTDIR}" | 59 | do_dumpdata_create_diff_gz[sstate-outputdirs] = "${ARCHIVE_SSTATE_OUTDIR}" |
62 | 60 | ||
diff --git a/meta/classes/archive-original-source.bbclass b/meta/classes/archive-original-source.bbclass index 7e9ed6d111..e271a08146 100644 --- a/meta/classes/archive-original-source.bbclass +++ b/meta/classes/archive-original-source.bbclass | |||
@@ -45,7 +45,6 @@ ARCHIVE_SSTATE_SCRIPTS_LOGS_INDIR = "${WORKDIR}/script-logs/" | |||
45 | ARCHIVE_SSTATE_DIFFGZ_ENVDATA_INDIR = "${WORKDIR}/diffgz-envdata/" | 45 | ARCHIVE_SSTATE_DIFFGZ_ENVDATA_INDIR = "${WORKDIR}/diffgz-envdata/" |
46 | 46 | ||
47 | SSTATETASKS += "do_archive_scripts_logs" | 47 | SSTATETASKS += "do_archive_scripts_logs" |
48 | do_archive_scripts_logs[sstate-name] = "archive_scripts_logs" | ||
49 | do_archive_scripts_logs[sstate-inputdirs] = "${ARCHIVE_SSTATE_SCRIPTS_LOGS_INDIR}" | 48 | do_archive_scripts_logs[sstate-inputdirs] = "${ARCHIVE_SSTATE_SCRIPTS_LOGS_INDIR}" |
50 | do_archive_scripts_logs[sstate-outputdirs] = "${ARCHIVE_SSTATE_OUTDIR}" | 49 | do_archive_scripts_logs[sstate-outputdirs] = "${ARCHIVE_SSTATE_OUTDIR}" |
51 | 50 | ||
@@ -56,7 +55,6 @@ python do_archive_scripts_logs_setscene () { | |||
56 | addtask do_archive_scripts_logs_setscene | 55 | addtask do_archive_scripts_logs_setscene |
57 | 56 | ||
58 | SSTATETASKS += "do_dumpdata_create_diff_gz" | 57 | SSTATETASKS += "do_dumpdata_create_diff_gz" |
59 | do_dumpdata_create_diff_gz[sstate-name] = "dumpdata_create_diff_gz" | ||
60 | do_dumpdata_create_diff_gz[sstate-inputdirs] = "${ARCHIVE_SSTATE_DIFFGZ_ENVDATA_INDIR}" | 58 | do_dumpdata_create_diff_gz[sstate-inputdirs] = "${ARCHIVE_SSTATE_DIFFGZ_ENVDATA_INDIR}" |
61 | do_dumpdata_create_diff_gz[sstate-outputdirs] = "${ARCHIVE_SSTATE_OUTDIR}" | 59 | do_dumpdata_create_diff_gz[sstate-outputdirs] = "${ARCHIVE_SSTATE_OUTDIR}" |
62 | 60 | ||
diff --git a/meta/classes/archive-patched-source.bbclass b/meta/classes/archive-patched-source.bbclass index d8d494a45d..c5f5cca382 100644 --- a/meta/classes/archive-patched-source.bbclass +++ b/meta/classes/archive-patched-source.bbclass | |||
@@ -45,7 +45,6 @@ ARCHIVE_SSTATE_SCRIPTS_LOGS_INDIR = "${WORKDIR}/script-logs/" | |||
45 | ARCHIVE_SSTATE_DIFFGZ_ENVDATA_INDIR = "${WORKDIR}/diffgz-envdata/" | 45 | ARCHIVE_SSTATE_DIFFGZ_ENVDATA_INDIR = "${WORKDIR}/diffgz-envdata/" |
46 | 46 | ||
47 | SSTATETASKS += "do_archive_scripts_logs" | 47 | SSTATETASKS += "do_archive_scripts_logs" |
48 | do_archive_scripts_logs[sstate-name] = "archive_scripts_logs" | ||
49 | do_archive_scripts_logs[sstate-inputdirs] = "${ARCHIVE_SSTATE_SCRIPTS_LOGS_INDIR}" | 48 | do_archive_scripts_logs[sstate-inputdirs] = "${ARCHIVE_SSTATE_SCRIPTS_LOGS_INDIR}" |
50 | do_archive_scripts_logs[sstate-outputdirs] = "${ARCHIVE_SSTATE_OUTDIR}" | 49 | do_archive_scripts_logs[sstate-outputdirs] = "${ARCHIVE_SSTATE_OUTDIR}" |
51 | 50 | ||
@@ -56,7 +55,6 @@ python do_archive_scripts_logs_setscene () { | |||
56 | addtask do_archive_scripts_logs_setscene | 55 | addtask do_archive_scripts_logs_setscene |
57 | 56 | ||
58 | SSTATETASKS += "do_dumpdata_create_diff_gz" | 57 | SSTATETASKS += "do_dumpdata_create_diff_gz" |
59 | do_dumpdata_create_diff_gz[sstate-name] = "dumpdata_create_diff_gz" | ||
60 | do_dumpdata_create_diff_gz[sstate-inputdirs] = "${ARCHIVE_SSTATE_DIFFGZ_ENVDATA_INDIR}" | 58 | do_dumpdata_create_diff_gz[sstate-inputdirs] = "${ARCHIVE_SSTATE_DIFFGZ_ENVDATA_INDIR}" |
61 | do_dumpdata_create_diff_gz[sstate-outputdirs] = "${ARCHIVE_SSTATE_OUTDIR}" | 59 | do_dumpdata_create_diff_gz[sstate-outputdirs] = "${ARCHIVE_SSTATE_OUTDIR}" |
62 | 60 | ||
diff --git a/meta/classes/deploy.bbclass b/meta/classes/deploy.bbclass index c3371421d8..78f5e4a7ba 100644 --- a/meta/classes/deploy.bbclass +++ b/meta/classes/deploy.bbclass | |||
@@ -1,6 +1,5 @@ | |||
1 | DEPLOYDIR = "${WORKDIR}/deploy-${PN}" | 1 | DEPLOYDIR = "${WORKDIR}/deploy-${PN}" |
2 | SSTATETASKS += "do_deploy" | 2 | SSTATETASKS += "do_deploy" |
3 | do_deploy[sstate-name] = "deploy" | ||
4 | do_deploy[sstate-inputdirs] = "${DEPLOYDIR}" | 3 | do_deploy[sstate-inputdirs] = "${DEPLOYDIR}" |
5 | do_deploy[sstate-outputdirs] = "${DEPLOY_DIR_IMAGE}" | 4 | do_deploy[sstate-outputdirs] = "${DEPLOY_DIR_IMAGE}" |
6 | 5 | ||
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass index 8ad55f8031..f075f59340 100644 --- a/meta/classes/license.bbclass +++ b/meta/classes/license.bbclass | |||
@@ -351,7 +351,6 @@ def check_license_flags(d): | |||
351 | return None | 351 | return None |
352 | 352 | ||
353 | SSTATETASKS += "do_populate_lic" | 353 | SSTATETASKS += "do_populate_lic" |
354 | do_populate_lic[sstate-name] = "populate-lic" | ||
355 | do_populate_lic[sstate-inputdirs] = "${LICSSTATEDIR}" | 354 | do_populate_lic[sstate-inputdirs] = "${LICSSTATEDIR}" |
356 | do_populate_lic[sstate-outputdirs] = "${LICENSE_DIRECTORY}/" | 355 | do_populate_lic[sstate-outputdirs] = "${LICENSE_DIRECTORY}/" |
357 | 356 | ||
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 44a852f3f6..eb4cf44ef0 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass | |||
@@ -1931,7 +1931,6 @@ addtask package before do_build after do_install | |||
1931 | 1931 | ||
1932 | PACKAGELOCK = "${STAGING_DIR}/package-output.lock" | 1932 | PACKAGELOCK = "${STAGING_DIR}/package-output.lock" |
1933 | SSTATETASKS += "do_package" | 1933 | SSTATETASKS += "do_package" |
1934 | do_package[sstate-name] = "package" | ||
1935 | do_package[cleandirs] = "${PKGDEST} ${PKGDESTWORK}" | 1934 | do_package[cleandirs] = "${PKGDEST} ${PKGDESTWORK}" |
1936 | do_package[sstate-plaindirs] = "${PKGD} ${PKGDEST} ${PKGDESTWORK}" | 1935 | do_package[sstate-plaindirs] = "${PKGD} ${PKGDEST} ${PKGDESTWORK}" |
1937 | do_package[sstate-lockfile-shared] = "${PACKAGELOCK}" | 1936 | do_package[sstate-lockfile-shared] = "${PACKAGELOCK}" |
@@ -1949,7 +1948,6 @@ do_packagedata () { | |||
1949 | addtask packagedata before do_build after do_package | 1948 | addtask packagedata before do_build after do_package |
1950 | 1949 | ||
1951 | SSTATETASKS += "do_packagedata" | 1950 | SSTATETASKS += "do_packagedata" |
1952 | do_packagedata[sstate-name] = "packagedata" | ||
1953 | do_packagedata[sstate-inputdirs] = "${PKGDESTWORK}" | 1951 | do_packagedata[sstate-inputdirs] = "${PKGDESTWORK}" |
1954 | do_packagedata[sstate-outputdirs] = "${PKGDATA_DIR}" | 1952 | do_packagedata[sstate-outputdirs] = "${PKGDATA_DIR}" |
1955 | do_packagedata[sstate-lockfile-shared] = "${PACKAGELOCK}" | 1953 | do_packagedata[sstate-lockfile-shared] = "${PACKAGELOCK}" |
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass index d18c250ecc..82ff432f71 100644 --- a/meta/classes/package_deb.bbclass +++ b/meta/classes/package_deb.bbclass | |||
@@ -412,7 +412,6 @@ python do_package_deb () { | |||
412 | } | 412 | } |
413 | 413 | ||
414 | SSTATETASKS += "do_package_write_deb" | 414 | SSTATETASKS += "do_package_write_deb" |
415 | do_package_write_deb[sstate-name] = "deploy-deb" | ||
416 | do_package_write_deb[sstate-inputdirs] = "${PKGWRITEDIRDEB}" | 415 | do_package_write_deb[sstate-inputdirs] = "${PKGWRITEDIRDEB}" |
417 | do_package_write_deb[sstate-outputdirs] = "${DEPLOY_DIR_DEB}" | 416 | do_package_write_deb[sstate-outputdirs] = "${DEPLOY_DIR_DEB}" |
418 | 417 | ||
diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass index d0db9454d1..e7b275577a 100644 --- a/meta/classes/package_ipk.bbclass +++ b/meta/classes/package_ipk.bbclass | |||
@@ -415,7 +415,6 @@ python do_package_ipk () { | |||
415 | } | 415 | } |
416 | 416 | ||
417 | SSTATETASKS += "do_package_write_ipk" | 417 | SSTATETASKS += "do_package_write_ipk" |
418 | do_package_write_ipk[sstate-name] = "deploy-ipk" | ||
419 | do_package_write_ipk[sstate-inputdirs] = "${PKGWRITEDIRIPK}" | 418 | do_package_write_ipk[sstate-inputdirs] = "${PKGWRITEDIRIPK}" |
420 | do_package_write_ipk[sstate-outputdirs] = "${DEPLOY_DIR_IPK}" | 419 | do_package_write_ipk[sstate-outputdirs] = "${DEPLOY_DIR_IPK}" |
421 | 420 | ||
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index 346b7abd53..fcde73ebe9 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass | |||
@@ -1172,7 +1172,6 @@ python () { | |||
1172 | } | 1172 | } |
1173 | 1173 | ||
1174 | SSTATETASKS += "do_package_write_rpm" | 1174 | SSTATETASKS += "do_package_write_rpm" |
1175 | do_package_write_rpm[sstate-name] = "deploy-rpm" | ||
1176 | do_package_write_rpm[sstate-inputdirs] = "${PKGWRITEDIRRPM}" | 1175 | do_package_write_rpm[sstate-inputdirs] = "${PKGWRITEDIRRPM}" |
1177 | do_package_write_rpm[sstate-outputdirs] = "${DEPLOY_DIR_RPM}" | 1176 | do_package_write_rpm[sstate-outputdirs] = "${DEPLOY_DIR_RPM}" |
1178 | # Take a shared lock, we can write multiple packages at the same time... | 1177 | # Take a shared lock, we can write multiple packages at the same time... |
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index 9df9ac2429..199a5b3fc4 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass | |||
@@ -69,12 +69,9 @@ python () { | |||
69 | 69 | ||
70 | unique_tasks = set((d.getVar('SSTATETASKS', True) or "").split()) | 70 | unique_tasks = set((d.getVar('SSTATETASKS', True) or "").split()) |
71 | d.setVar('SSTATETASKS', " ".join(unique_tasks)) | 71 | d.setVar('SSTATETASKS', " ".join(unique_tasks)) |
72 | namemap = [] | ||
73 | for task in unique_tasks: | 72 | for task in unique_tasks: |
74 | namemap.append(d.getVarFlag(task, 'sstate-name')) | ||
75 | d.prependVarFlag(task, 'prefuncs', "sstate_task_prefunc ") | 73 | d.prependVarFlag(task, 'prefuncs', "sstate_task_prefunc ") |
76 | d.appendVarFlag(task, 'postfuncs', " sstate_task_postfunc") | 74 | d.appendVarFlag(task, 'postfuncs', " sstate_task_postfunc") |
77 | d.setVar('SSTATETASKNAMES', " ".join(namemap)) | ||
78 | } | 75 | } |
79 | 76 | ||
80 | def sstate_init(name, task, d): | 77 | def sstate_init(name, task, d): |
@@ -94,7 +91,9 @@ def sstate_state_fromvars(d, task = None): | |||
94 | bb.fatal("sstate code running without task context?!") | 91 | bb.fatal("sstate code running without task context?!") |
95 | task = task.replace("_setscene", "") | 92 | task = task.replace("_setscene", "") |
96 | 93 | ||
97 | name = d.getVarFlag("do_" + task, 'sstate-name', True) | 94 | name = task |
95 | if task.startswith("do_"): | ||
96 | name = task[3:] | ||
98 | inputs = (d.getVarFlag("do_" + task, 'sstate-inputdirs', True) or "").split() | 97 | inputs = (d.getVarFlag("do_" + task, 'sstate-inputdirs', True) or "").split() |
99 | outputs = (d.getVarFlag("do_" + task, 'sstate-outputdirs', True) or "").split() | 98 | outputs = (d.getVarFlag("do_" + task, 'sstate-outputdirs', True) or "").split() |
100 | plaindirs = (d.getVarFlag("do_" + task, 'sstate-plaindirs', True) or "").split() | 99 | plaindirs = (d.getVarFlag("do_" + task, 'sstate-plaindirs', True) or "").split() |
@@ -297,7 +296,7 @@ def sstate_clean_cachefile(ss, d): | |||
297 | 296 | ||
298 | def sstate_clean_cachefiles(d): | 297 | def sstate_clean_cachefiles(d): |
299 | for task in (d.getVar('SSTATETASKS', True) or "").split(): | 298 | for task in (d.getVar('SSTATETASKS', True) or "").split(): |
300 | ss = sstate_state_fromvars(d, task[3:]) | 299 | ss = sstate_state_fromvars(d, task) |
301 | sstate_clean_cachefile(ss, d) | 300 | sstate_clean_cachefile(ss, d) |
302 | 301 | ||
303 | def sstate_clean_manifest(manifest, d): | 302 | def sstate_clean_manifest(manifest, d): |
@@ -365,11 +364,9 @@ python sstate_cleanall() { | |||
365 | if not os.path.exists(manifest_dir): | 364 | if not os.path.exists(manifest_dir): |
366 | return | 365 | return |
367 | 366 | ||
368 | namemap = d.getVar('SSTATETASKNAMES', True).split() | ||
369 | tasks = d.getVar('SSTATETASKS', True).split() | 367 | tasks = d.getVar('SSTATETASKS', True).split() |
370 | for name in namemap: | 368 | for name in tasks: |
371 | taskname = tasks[namemap.index(name)] | 369 | shared_state = sstate_state_fromvars(d, name) |
372 | shared_state = sstate_state_fromvars(d, taskname[3:]) | ||
373 | sstate_clean(shared_state, d) | 370 | sstate_clean(shared_state, d) |
374 | } | 371 | } |
375 | 372 | ||
@@ -592,20 +589,11 @@ sstate_unpack_package () { | |||
592 | tar -xmvzf ${SSTATE_PKG} | 589 | tar -xmvzf ${SSTATE_PKG} |
593 | } | 590 | } |
594 | 591 | ||
595 | # Need to inject information about classes not in the global configuration scope | ||
596 | EXTRASSTATEMAPS += "do_deploy:deploy" | ||
597 | |||
598 | BB_HASHCHECK_FUNCTION = "sstate_checkhashes" | 592 | BB_HASHCHECK_FUNCTION = "sstate_checkhashes" |
599 | 593 | ||
600 | def sstate_checkhashes(sq_fn, sq_task, sq_hash, sq_hashfn, d): | 594 | def sstate_checkhashes(sq_fn, sq_task, sq_hash, sq_hashfn, d): |
601 | 595 | ||
602 | ret = [] | 596 | ret = [] |
603 | mapping = {} | ||
604 | for t in d.getVar("SSTATETASKS", True).split(): | ||
605 | mapping[t] = d.getVarFlag(t, "sstate-name", True) | ||
606 | for extra in d.getVar("EXTRASSTATEMAPS", True).split(): | ||
607 | e = extra.split(":") | ||
608 | mapping[e[0]] = e[1] | ||
609 | 597 | ||
610 | def getpathcomponents(task, d): | 598 | def getpathcomponents(task, d): |
611 | # Magic data from BB_HASHFILENAME | 599 | # Magic data from BB_HASHFILENAME |
@@ -614,8 +602,6 @@ def sstate_checkhashes(sq_fn, sq_task, sq_hash, sq_hashfn, d): | |||
614 | extrapath = splithashfn[0] | 602 | extrapath = splithashfn[0] |
615 | 603 | ||
616 | tname = sq_task[task][3:] | 604 | tname = sq_task[task][3:] |
617 | if sq_task[task] in mapping: | ||
618 | tname = mapping[sq_task[task]] | ||
619 | 605 | ||
620 | if tname in ["fetch", "unpack", "patch"] and splithashfn[2]: | 606 | if tname in ["fetch", "unpack", "patch"] and splithashfn[2]: |
621 | spec = splithashfn[2] | 607 | spec = splithashfn[2] |
diff --git a/meta/classes/staging.bbclass b/meta/classes/staging.bbclass index 3985763f4b..d17a53ebef 100644 --- a/meta/classes/staging.bbclass +++ b/meta/classes/staging.bbclass | |||
@@ -97,7 +97,6 @@ python do_populate_sysroot () { | |||
97 | 97 | ||
98 | SSTATETASKS += "do_populate_sysroot" | 98 | SSTATETASKS += "do_populate_sysroot" |
99 | do_populate_sysroot[cleandirs] = "${SYSROOT_DESTDIR}" | 99 | do_populate_sysroot[cleandirs] = "${SYSROOT_DESTDIR}" |
100 | do_populate_sysroot[sstate-name] = "populate-sysroot" | ||
101 | do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}" | 100 | do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}" |
102 | do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_HOST}/" | 101 | do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_HOST}/" |
103 | do_populate_sysroot[stamp-extra-info] = "${MACHINE}" | 102 | do_populate_sysroot[stamp-extra-info] = "${MACHINE}" |