diff options
author | Joshua Lock <josh@linux.intel.com> | 2010-03-04 16:53:00 +0000 |
---|---|---|
committer | Joshua Lock <josh@linux.intel.com> | 2010-03-04 16:53:00 +0000 |
commit | 538087d2036d9dd319e3a22aaa2f62e5a5285c55 (patch) | |
tree | efefcb55d311568eb1ea5ce4693f9d2c04cd09b0 /meta/classes | |
parent | 211f928e083bf6d4971b318d8c4c6f089abe33e3 (diff) | |
download | poky-538087d2036d9dd319e3a22aaa2f62e5a5285c55.tar.gz |
packaged-staging: Fix packagaging of cross packages
packagedstaging_fastpath() was only copying the contents of CROSS_DIR to
PSTAGE_TMPDIR resulting in the folders contents being packaged and then
installed incorrectly at the top level of CROSS_DIR rather than in HOST_ARCH
specific sub directories.
This patch fixes that issue by copying the directory and its contents rather
than just the directory contents.
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/packaged-staging.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/packaged-staging.bbclass b/meta/classes/packaged-staging.bbclass index 3815f6f2e6..fca681864d 100644 --- a/meta/classes/packaged-staging.bbclass +++ b/meta/classes/packaged-staging.bbclass | |||
@@ -321,7 +321,9 @@ packagedstaging_fastpath () { | |||
321 | mkdir -p ${PSTAGE_TMPDIR_STAGE}/sysroots/ | 321 | mkdir -p ${PSTAGE_TMPDIR_STAGE}/sysroots/ |
322 | mkdir -p ${PSTAGE_TMPDIR_STAGE}/cross/ | 322 | mkdir -p ${PSTAGE_TMPDIR_STAGE}/cross/ |
323 | cp -fpPR ${SYSROOT_DESTDIR}/${STAGING_DIR}/* ${PSTAGE_TMPDIR_STAGE}/sysroots/ || /bin/true | 323 | cp -fpPR ${SYSROOT_DESTDIR}/${STAGING_DIR}/* ${PSTAGE_TMPDIR_STAGE}/sysroots/ || /bin/true |
324 | cp -fpPR ${SYSROOT_DESTDIR}/${CROSS_DIR}/* ${PSTAGE_TMPDIR_STAGE}/cross/ || /bin/true | 324 | # CROSS_DIR is just the HOST_ARCH specific stuff and a sub |
325 | # directory of cross so copy it *and* its contents | ||
326 | cp -fpPR ${SYSROOT_DESTDIR}/${CROSS_DIR} ${PSTAGE_TMPDIR_STAGE}/cross/ || /bin/true | ||
325 | fi | 327 | fi |
326 | } | 328 | } |
327 | 329 | ||