diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-16 23:34:42 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-16 23:34:42 +0000 |
commit | 977b3fe5545c699e438866b834c9af949680aaab (patch) | |
tree | eafeda605a177ac04d2925014613ecc76b180e0f /meta/classes/cross.bbclass | |
parent | 94577a77cee21f5944434e3a958f4d3827241174 (diff) | |
download | poky-977b3fe5545c699e438866b834c9af949680aaab.tar.gz |
cross.bbclass: Add defitions of target_*dir variables and improve sysroot_stage_all to cope with mixed packages as found in cross recipes
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes/cross.bbclass')
-rw-r--r-- | meta/classes/cross.bbclass | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/meta/classes/cross.bbclass b/meta/classes/cross.bbclass index 5ecbb64347..5cabfa8787 100644 --- a/meta/classes/cross.bbclass +++ b/meta/classes/cross.bbclass | |||
@@ -25,6 +25,14 @@ LDFLAGS_build-darwin = "-L${STAGING_LIBDIR_NATIVE}" | |||
25 | 25 | ||
26 | TOOLCHAIN_OPTIONS = "" | 26 | TOOLCHAIN_OPTIONS = "" |
27 | 27 | ||
28 | # Path mangling needed by the cross packaging | ||
29 | # Note that we use := here to ensure that libdir and includedir are | ||
30 | # target paths, not CROSS_DIR paths. | ||
31 | target_libdir := "${libdir}" | ||
32 | target_includedir := "${includedir}" | ||
33 | target_base_libdir := "${base_libdir}" | ||
34 | target_prefix := "${prefix}" | ||
35 | |||
28 | # Overrides for paths | 36 | # Overrides for paths |
29 | prefix = "${CROSS_DIR}" | 37 | prefix = "${CROSS_DIR}" |
30 | base_prefix = "${prefix}" | 38 | base_prefix = "${prefix}" |
@@ -44,6 +52,12 @@ do_install () { | |||
44 | # Override the default sysroot staging copy since this won't look like a target system | 52 | # Override the default sysroot staging copy since this won't look like a target system |
45 | # | 53 | # |
46 | sysroot_stage_all() { | 54 | sysroot_stage_all() { |
47 | sysroot_stage_dir ${D} ${SYSROOT_DESTDIR} | 55 | sysroot_stage_dir ${D} ${SYSROOT_DESTDIR} |
56 | install -d ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_base_libdir}/ | ||
57 | install -d ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_libdir}/ | ||
58 | mv ${SYSROOT_DESTDIR}${target_base_libdir}/* ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_base_libdir}/ || true | ||
59 | mv ${SYSROOT_DESTDIR}${target_libdir}/* ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_libdir}/ || true | ||
48 | } | 60 | } |
49 | 61 | ||
62 | |||
63 | |||