summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/debian.bbclass2
-rw-r--r--meta/classes/image.bbclass3
-rw-r--r--meta/classes/native.bbclass1
-rw-r--r--meta/classes/package.bbclass25
-rw-r--r--meta/classes/package_deb.bbclass2
-rw-r--r--meta/classes/package_ipk.bbclass2
-rw-r--r--meta/classes/package_rpm.bbclass2
-rw-r--r--meta/classes/package_tar.bbclass2
-rw-r--r--meta/classes/sstate.bbclass6
-rw-r--r--meta/recipes-core/meta/package-index.bb1
-rw-r--r--meta/recipes-devtools/gcc/gcc-package-cross.inc1
-rw-r--r--meta/recipes-devtools/gcc/gcc-package-runtime.inc6
-rw-r--r--meta/recipes-devtools/gcc/libgcc_4.7.bb8
-rw-r--r--meta/recipes-devtools/installer/adt-installer_1.0.bb1
14 files changed, 41 insertions, 21 deletions
diff --git a/meta/classes/debian.bbclass b/meta/classes/debian.bbclass
index 2484003e37..45f01e43cd 100644
--- a/meta/classes/debian.bbclass
+++ b/meta/classes/debian.bbclass
@@ -8,7 +8,7 @@
8# 8#
9# Better expressed as ensure all RDEPENDS package before we package 9# Better expressed as ensure all RDEPENDS package before we package
10# This means we can't have circular RDEPENDS/RRECOMMENDS 10# This means we can't have circular RDEPENDS/RRECOMMENDS
11DEBIANRDEP = "do_package" 11DEBIANRDEP = "do_packagedata"
12do_package_write_ipk[rdeptask] = "${DEBIANRDEP}" 12do_package_write_ipk[rdeptask] = "${DEBIANRDEP}"
13do_package_write_deb[rdeptask] = "${DEBIANRDEP}" 13do_package_write_deb[rdeptask] = "${DEBIANRDEP}"
14do_package_write_tar[rdeptask] = "${DEBIANRDEP}" 14do_package_write_tar[rdeptask] = "${DEBIANRDEP}"
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 0293d2e358..9b4dec8496 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -83,7 +83,7 @@ LDCONFIGDEPEND_libc-uclibc = ""
83 83
84do_rootfs[depends] += "makedevs-native:do_populate_sysroot virtual/fakeroot-native:do_populate_sysroot ${LDCONFIGDEPEND}" 84do_rootfs[depends] += "makedevs-native:do_populate_sysroot virtual/fakeroot-native:do_populate_sysroot ${LDCONFIGDEPEND}"
85do_rootfs[depends] += "virtual/update-alternatives-native:do_populate_sysroot update-rc.d-native:do_populate_sysroot" 85do_rootfs[depends] += "virtual/update-alternatives-native:do_populate_sysroot update-rc.d-native:do_populate_sysroot"
86do_rootfs[recrdeptask] += "do_package" 86do_rootfs[recrdeptask] += "do_packagedata"
87 87
88IMAGE_TYPE_live = '${@base_contains("IMAGE_FSTYPES", "live", "live", "empty", d)}' 88IMAGE_TYPE_live = '${@base_contains("IMAGE_FSTYPES", "live", "live", "empty", d)}'
89inherit image-${IMAGE_TYPE_live} 89inherit image-${IMAGE_TYPE_live}
@@ -480,6 +480,7 @@ do_compile[noexec] = "1"
480do_install[noexec] = "1" 480do_install[noexec] = "1"
481do_populate_sysroot[noexec] = "1" 481do_populate_sysroot[noexec] = "1"
482do_package[noexec] = "1" 482do_package[noexec] = "1"
483do_packagedata[noexec] = "1"
483do_package_write_ipk[noexec] = "1" 484do_package_write_ipk[noexec] = "1"
484do_package_write_deb[noexec] = "1" 485do_package_write_deb[noexec] = "1"
485do_package_write_rpm[noexec] = "1" 486do_package_write_rpm[noexec] = "1"
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass
index c08ca19b78..bfc9e4c7db 100644
--- a/meta/classes/native.bbclass
+++ b/meta/classes/native.bbclass
@@ -151,6 +151,7 @@ python native_virtclass_handler () {
151addhandler native_virtclass_handler 151addhandler native_virtclass_handler
152 152
153do_package[noexec] = "1" 153do_package[noexec] = "1"
154do_packagedata[noexec] = "1"
154do_package_write_ipk[noexec] = "1" 155do_package_write_ipk[noexec] = "1"
155do_package_write_deb[noexec] = "1" 156do_package_write_deb[noexec] = "1"
156do_package_write_rpm[noexec] = "1" 157do_package_write_rpm[noexec] = "1"
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 60d3df7789..e8d7aefd86 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -217,7 +217,7 @@ python () {
217 d.appendVarFlag('do_package', 'depends', deps) 217 d.appendVarFlag('do_package', 'depends', deps)
218 218
219 # shlibs requires any DEPENDS to have already packaged for the *.list files 219 # shlibs requires any DEPENDS to have already packaged for the *.list files
220 d.appendVarFlag('do_package', 'deptask', " do_package") 220 d.appendVarFlag('do_package', 'deptask', " do_packagedata")
221 221
222 elif not bb.data.inherits_class('image', d): 222 elif not bb.data.inherits_class('image', d):
223 d.setVar("PACKAGERDEPTASK", "") 223 d.setVar("PACKAGERDEPTASK", "")
@@ -1900,9 +1900,7 @@ PACKAGELOCK = "${STAGING_DIR}/package-output.lock"
1900SSTATETASKS += "do_package" 1900SSTATETASKS += "do_package"
1901do_package[sstate-name] = "package" 1901do_package[sstate-name] = "package"
1902do_package[cleandirs] = "${PKGDESTWORK}" 1902do_package[cleandirs] = "${PKGDESTWORK}"
1903do_package[sstate-plaindirs] = "${PKGD} ${PKGDEST}" 1903do_package[sstate-plaindirs] = "${PKGD} ${PKGDEST} ${PKGDESTWORK}"
1904do_package[sstate-inputdirs] = "${PKGDESTWORK}"
1905do_package[sstate-outputdirs] = "${PKGDATA_DIR}"
1906do_package[sstate-lockfile-shared] = "${PACKAGELOCK}" 1904do_package[sstate-lockfile-shared] = "${PACKAGELOCK}"
1907do_package_setscene[dirs] = "${STAGING_DIR}" 1905do_package_setscene[dirs] = "${STAGING_DIR}"
1908 1906
@@ -1911,6 +1909,23 @@ python do_package_setscene () {
1911} 1909}
1912addtask do_package_setscene 1910addtask do_package_setscene
1913 1911
1912do_packagedata () {
1913 :
1914}
1915
1916addtask packagedata before do_build after do_package
1917
1918SSTATETASKS += "do_packagedata"
1919do_packagedata[sstate-name] = "packagedata"
1920do_packagedata[sstate-inputdirs] = "${PKGDESTWORK}"
1921do_packagedata[sstate-outputdirs] = "${PKGDATA_DIR}"
1922do_packagedata[sstate-lockfile-shared] = "${PACKAGELOCK}"
1923
1924python do_packagedata_setscene () {
1925 sstate_setscene(d)
1926}
1927addtask do_packagedata_setscene
1928
1914# Dummy task to mark when all packaging is complete 1929# Dummy task to mark when all packaging is complete
1915do_package_write () { 1930do_package_write () {
1916 : 1931 :
@@ -1918,7 +1933,7 @@ do_package_write () {
1918do_package_write[noexec] = "1" 1933do_package_write[noexec] = "1"
1919PACKAGERDEPTASK = "do_package_write" 1934PACKAGERDEPTASK = "do_package_write"
1920do_build[recrdeptask] += "${PACKAGERDEPTASK}" 1935do_build[recrdeptask] += "${PACKAGERDEPTASK}"
1921addtask package_write before do_build after do_package 1936addtask package_write before do_build after do_packagedata
1922 1937
1923# 1938#
1924# Helper functions for the package writing classes 1939# Helper functions for the package writing classes
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass
index eed9b8ac3b..ac8c9f3275 100644
--- a/meta/classes/package_deb.bbclass
+++ b/meta/classes/package_deb.bbclass
@@ -453,7 +453,7 @@ python do_package_write_deb () {
453} 453}
454do_package_write_deb[dirs] = "${PKGWRITEDIRDEB}" 454do_package_write_deb[dirs] = "${PKGWRITEDIRDEB}"
455do_package_write_deb[umask] = "022" 455do_package_write_deb[umask] = "022"
456addtask package_write_deb before do_package_write after do_package 456addtask package_write_deb before do_package_write after do_packagedata do_package
457 457
458 458
459PACKAGEINDEXES += "package_update_index_deb;" 459PACKAGEINDEXES += "package_update_index_deb;"
diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass
index b441e86c0a..ad4ea53ca9 100644
--- a/meta/classes/package_ipk.bbclass
+++ b/meta/classes/package_ipk.bbclass
@@ -477,7 +477,7 @@ python do_package_write_ipk () {
477} 477}
478do_package_write_ipk[dirs] = "${PKGWRITEDIRIPK}" 478do_package_write_ipk[dirs] = "${PKGWRITEDIRIPK}"
479do_package_write_ipk[umask] = "022" 479do_package_write_ipk[umask] = "022"
480addtask package_write_ipk before do_package_write after do_package 480addtask package_write_ipk before do_package_write after do_packagedata do_package
481 481
482PACKAGEINDEXES += "package_update_index_ipk;" 482PACKAGEINDEXES += "package_update_index_ipk;"
483PACKAGEINDEXDEPS += "opkg-utils-native:do_populate_sysroot" 483PACKAGEINDEXDEPS += "opkg-utils-native:do_populate_sysroot"
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index dc8a54e1f8..af51d80627 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -1126,7 +1126,7 @@ python do_package_write_rpm () {
1126 1126
1127do_package_write_rpm[dirs] = "${PKGWRITEDIRRPM}" 1127do_package_write_rpm[dirs] = "${PKGWRITEDIRRPM}"
1128do_package_write_rpm[umask] = "022" 1128do_package_write_rpm[umask] = "022"
1129addtask package_write_rpm before do_package_write after do_package 1129addtask package_write_rpm before do_package_write after do_packagedata do_package
1130 1130
1131PACKAGEINDEXES += "package_update_index_rpm; [ ! -e ${DEPLOY_DIR_RPM} ] || createrepo ${DEPLOY_DIR_RPM};" 1131PACKAGEINDEXES += "package_update_index_rpm; [ ! -e ${DEPLOY_DIR_RPM} ] || createrepo ${DEPLOY_DIR_RPM};"
1132PACKAGEINDEXDEPS += "rpm-native:do_populate_sysroot" 1132PACKAGEINDEXDEPS += "rpm-native:do_populate_sysroot"
diff --git a/meta/classes/package_tar.bbclass b/meta/classes/package_tar.bbclass
index 332fa3f230..e76ce292e4 100644
--- a/meta/classes/package_tar.bbclass
+++ b/meta/classes/package_tar.bbclass
@@ -107,4 +107,4 @@ python do_package_write_tar () {
107 bb.build.exec_func("do_package_tar", d) 107 bb.build.exec_func("do_package_tar", d)
108} 108}
109do_package_write_tar[dirs] = "${D}" 109do_package_write_tar[dirs] = "${D}"
110addtask package_write_tar before do_build after do_package 110addtask package_write_tar before do_build after do_packagedata do_package
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index e92fbae1f6..bc9f7ad739 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -655,13 +655,13 @@ def setscene_depvalid(task, taskdependees, notneeded, d):
655 if dep in notneeded: 655 if dep in notneeded:
656 continue 656 continue
657 # do_package_write_* and do_package doesn't need do_package 657 # do_package_write_* and do_package doesn't need do_package
658 if taskdependees[task][1] == "do_package" and taskdependees[dep][1] in ['do_package', 'do_package_write_deb', 'do_package_write_ipk', 'do_package_write_rpm']: 658 if taskdependees[task][1] == "do_package" and taskdependees[dep][1] in ['do_package', 'do_package_write_deb', 'do_package_write_ipk', 'do_package_write_rpm', 'do_packagedata']:
659 continue 659 continue
660 # do_package_write_* and do_package doesn't need do_populate_sysroot 660 # do_package_write_* and do_package doesn't need do_populate_sysroot
661 if taskdependees[task][1] == "do_populate_sysroot" and taskdependees[dep][1] in ['do_package', 'do_package_write_deb', 'do_package_write_ipk', 'do_package_write_rpm']: 661 if taskdependees[task][1] == "do_populate_sysroot" and taskdependees[dep][1] in ['do_package', 'do_package_write_deb', 'do_package_write_ipk', 'do_package_write_rpm', 'do_packagedata']:
662 continue 662 continue
663 # Native/Cross packages don't exist and are noexec anyway 663 # Native/Cross packages don't exist and are noexec anyway
664 if isNativeCross(taskdependees[dep][0]) and taskdependees[dep][1] in ['do_package_write_deb', 'do_package_write_ipk', 'do_package_write_rpm']: 664 if isNativeCross(taskdependees[dep][0]) and taskdependees[dep][1] in ['do_package_write_deb', 'do_package_write_ipk', 'do_package_write_rpm', 'do_packagedata']:
665 continue 665 continue
666 666
667 # Consider sysroot depending on sysroot tasks 667 # Consider sysroot depending on sysroot tasks
diff --git a/meta/recipes-core/meta/package-index.bb b/meta/recipes-core/meta/package-index.bb
index bf3922f6d1..99ac1a8645 100644
--- a/meta/recipes-core/meta/package-index.bb
+++ b/meta/recipes-core/meta/package-index.bb
@@ -12,6 +12,7 @@ do_configure[noexec] = "1"
12do_compile[noexec] = "1" 12do_compile[noexec] = "1"
13do_install[noexec] = "1" 13do_install[noexec] = "1"
14do_package[noexec] = "1" 14do_package[noexec] = "1"
15do_packagedata[noexec] = "1"
15do_package_write[noexec] = "1" 16do_package_write[noexec] = "1"
16do_package_write_ipk[noexec] = "1" 17do_package_write_ipk[noexec] = "1"
17do_package_write_rpm[noexec] = "1" 18do_package_write_rpm[noexec] = "1"
diff --git a/meta/recipes-devtools/gcc/gcc-package-cross.inc b/meta/recipes-devtools/gcc/gcc-package-cross.inc
index 9718101a3d..3d8167703f 100644
--- a/meta/recipes-devtools/gcc/gcc-package-cross.inc
+++ b/meta/recipes-devtools/gcc/gcc-package-cross.inc
@@ -42,6 +42,7 @@ do_install () {
42} 42}
43 43
44do_package[noexec] = "1" 44do_package[noexec] = "1"
45do_packagedata[noexec] = "1"
45do_package_write_ipk[noexec] = "1" 46do_package_write_ipk[noexec] = "1"
46do_package_write_rpm[noexec] = "1" 47do_package_write_rpm[noexec] = "1"
47do_package_write_deb[noexec] = "1" 48do_package_write_deb[noexec] = "1"
diff --git a/meta/recipes-devtools/gcc/gcc-package-runtime.inc b/meta/recipes-devtools/gcc/gcc-package-runtime.inc
index 75847b6b92..2e2f75ab3a 100644
--- a/meta/recipes-devtools/gcc/gcc-package-runtime.inc
+++ b/meta/recipes-devtools/gcc/gcc-package-runtime.inc
@@ -75,6 +75,6 @@ FILES_libgomp-staticdev = "\
75 ${libdir}/libgomp*.a \ 75 ${libdir}/libgomp*.a \
76 " 76 "
77 77
78do_package_write_ipk[depends] += "virtual/${MLPREFIX}libc:do_package" 78do_package_write_ipk[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
79do_package_write_deb[depends] += "virtual/${MLPREFIX}libc:do_package" 79do_package_write_deb[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
80do_package_write_rpm[depends] += "virtual/${MLPREFIX}libc:do_package" 80do_package_write_rpm[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
diff --git a/meta/recipes-devtools/gcc/libgcc_4.7.bb b/meta/recipes-devtools/gcc/libgcc_4.7.bb
index 5eaa515570..c12aeefa25 100644
--- a/meta/recipes-devtools/gcc/libgcc_4.7.bb
+++ b/meta/recipes-devtools/gcc/libgcc_4.7.bb
@@ -61,10 +61,10 @@ do_install () {
61 rm -rf ${D}${libdir}/${TARGET_SYS}/${BINV}/include 61 rm -rf ${D}${libdir}/${TARGET_SYS}/${BINV}/include
62} 62}
63 63
64do_package[depends] += "virtual/${MLPREFIX}libc:do_package" 64do_package[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
65do_package_write_ipk[depends] += "virtual/${MLPREFIX}libc:do_package" 65do_package_write_ipk[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
66do_package_write_deb[depends] += "virtual/${MLPREFIX}libc:do_package" 66do_package_write_deb[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
67do_package_write_rpm[depends] += "virtual/${MLPREFIX}libc:do_package" 67do_package_write_rpm[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
68 68
69BBCLASSEXTEND = "nativesdk" 69BBCLASSEXTEND = "nativesdk"
70 70
diff --git a/meta/recipes-devtools/installer/adt-installer_1.0.bb b/meta/recipes-devtools/installer/adt-installer_1.0.bb
index 3624dbc5d4..227e866861 100644
--- a/meta/recipes-devtools/installer/adt-installer_1.0.bb
+++ b/meta/recipes-devtools/installer/adt-installer_1.0.bb
@@ -81,6 +81,7 @@ do_populate_adt[nostamp] = "1"
81do_configure[noexec] = "1" 81do_configure[noexec] = "1"
82do_compile[noexec] = "1" 82do_compile[noexec] = "1"
83do_package[noexec] = "1" 83do_package[noexec] = "1"
84do_packagedata[noexec] = "1"
84do_package_write[noexec] = "1" 85do_package_write[noexec] = "1"
85do_package_write_ipk[noexec] = "1" 86do_package_write_ipk[noexec] = "1"
86do_package_write_rpm[noexec] = "1" 87do_package_write_rpm[noexec] = "1"