summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-12-17 21:18:03 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2010-05-05 14:45:09 +0100
commitbf79d4b747f9628587cdf37e2b100aae96e59dbf (patch)
tree2861549c48c73af260a553a14abebd599b8c2f66 /classes
parent851eb471cc5eb8c2fa0fe0077178dfb79eb38a00 (diff)
cross.bbclass: Add special sysroot_stage_all function for cross packages and change default staging functions to non-legacy mode
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/cross.bbclass17
1 files changed, 14 insertions, 3 deletions
diff --git a/classes/cross.bbclass b/classes/cross.bbclass
index ad8b847213..6037d692b5 100644
--- a/classes/cross.bbclass
+++ b/classes/cross.bbclass
@@ -47,10 +47,21 @@ exec_prefix = "${prefix}"
base_sbindir = "${base_prefix}/bin"
sbindir = "${exec_prefix}/bin"
+do_install () {
+ oe_runmake 'DESTDIR=${D}' install
+}
+
do_stage () {
- oe_runmake install
+ autotools_stage_all
}
-do_install () {
- :
+#
+# Override the default sysroot staging copy since this won't look like a target system
+#
+sysroot_stage_all() {
+ sysroot_stage_dir ${D} ${SYSROOT_DESTDIR}
+ install -d ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_base_libdir}/
+ install -d ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_libdir}/
+ mv ${SYSROOT_DESTDIR}${target_base_libdir}/* ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_base_libdir}/ || true
+ mv ${SYSROOT_DESTDIR}${target_libdir}/* ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_libdir}/ || true
}