diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-19 16:49:00 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-20 11:53:49 +0000 |
commit | bc7162a46cebfec3896f95081bc2f635efa509f2 (patch) | |
tree | 185862333fc0c9980c20fae590dd6f953310960c /meta/classes/package_rpm.bbclass | |
parent | eeb30764e9ac712dd2512aedecb6b5e53eafd9c2 (diff) | |
download | poky-bc7162a46cebfec3896f95081bc2f635efa509f2.tar.gz |
classes/package*: Add support for PACKAGE_WRITE_DEPS
Add a new variable to allow markup of postinstall (and preinst)
script dependnecies on native/cross tools.
If your postinstall can execute at rootfs creation time rather than on
target but depends on a native tool in order to execute, you need to
list that tool in PACKAGE_WRITE_DEPENDS.
(From OE-Core rev: aff8ca95b8303a4a2a5600c0d8ec0a50ad677258)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package_rpm.bbclass')
-rw-r--r-- | meta/classes/package_rpm.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index b9f049e4b2..c978ec55d0 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass | |||
@@ -772,6 +772,7 @@ python do_package_write_rpm () { | |||
772 | do_package_write_rpm[dirs] = "${PKGWRITEDIRRPM}" | 772 | do_package_write_rpm[dirs] = "${PKGWRITEDIRRPM}" |
773 | do_package_write_rpm[cleandirs] = "${PKGWRITEDIRRPM}" | 773 | do_package_write_rpm[cleandirs] = "${PKGWRITEDIRRPM}" |
774 | do_package_write_rpm[umask] = "022" | 774 | do_package_write_rpm[umask] = "022" |
775 | do_package_write_rpm[depends] += "${@oe.utils.build_depends_string(d.getVar('PACKAGE_WRITE_DEPS'), 'do_populate_sysroot')}" | ||
775 | addtask package_write_rpm after do_packagedata do_package | 776 | addtask package_write_rpm after do_packagedata do_package |
776 | 777 | ||
777 | PACKAGEINDEXDEPS += "rpm-native:do_populate_sysroot" | 778 | PACKAGEINDEXDEPS += "rpm-native:do_populate_sysroot" |