[oe-commits] Richard Purdie : base.bbclass: Stage etc directory for native packages and add a use_do_install_for_stage special staging hint (from poky)
git version control
git at git.openembedded.org
Wed May 5 14:08:59 UTC 2010
Module: openembedded.git
Branch: rpurdie/work-in-progress
Commit: 6ccaf4b86c84338e8a7c97cca055b7f899ea83ee
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=6ccaf4b86c84338e8a7c97cca055b7f899ea83ee
Author: Richard Purdie <rpurdie at linux.intel.com>
Date: Thu Dec 17 20:42:34 2009 +0000
base.bbclass: Stage etc directory for native packages and add a use_do_install_for_stage special staging hint (from poky)
Signed-off-by: Richard Purdie <rpurdie at linux.intel.com>
---
classes/base.bbclass | 1 -
classes/staging.bbclass | 3 +++
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/classes/base.bbclass b/classes/base.bbclass
index c17eaba..31b551a 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -340,7 +340,6 @@ base_do_compile() {
fi
}
-
addtask install after do_compile
do_install[dirs] = "${D} ${S} ${B}"
# Remove and re-create ${D} so that is it guaranteed to be empty
diff --git a/classes/staging.bbclass b/classes/staging.bbclass
index 32038a5..263ac91 100644
--- a/classes/staging.bbclass
+++ b/classes/staging.bbclass
@@ -68,6 +68,7 @@ sysroot_stage_dirs() {
sysroot_stage_dir $from${base_bindir} $to${STAGING_DIR_HOST}${base_bindir}
sysroot_stage_dir $from${base_sbindir} $to${STAGING_DIR_HOST}${base_sbindir}
sysroot_stage_dir $from${libexecdir} $to${STAGING_DIR_HOST}${libexecdir}
+ sysroot_stage_dir $from${sysconfdir} $to${STAGING_DIR_HOST}${sysconfdir}
if [ "${prefix}/lib" != "${libdir}" ]; then
# python puts its files in here, make sure they are staged as well
autotools_stage_dir $from/${prefix}/lib $to${STAGING_DIR_HOST}${prefix}/lib
@@ -94,6 +95,8 @@ def is_legacy_staging(d):
legacy = True
if stagefunc is None:
legacy = False
+ elif stagefunc.strip() == "use_do_install_for_stage":
+ legacy = False
elif stagefunc.strip() == "autotools_stage_all":
legacy = False
elif stagefunc.strip() == "do_stage_native" and bb.data.getVar('AUTOTOOLS_NATIVE_STAGE_INSTALL', d, 1) == "1":
More information about the Openembedded-commits
mailing list