summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/packages/meta/cross-linkage_1.0.bb12
1 files changed, 9 insertions, 3 deletions
diff --git a/meta/packages/meta/cross-linkage_1.0.bb b/meta/packages/meta/cross-linkage_1.0.bb
index a2da649acc..9be09aa6f8 100644
--- a/meta/packages/meta/cross-linkage_1.0.bb
+++ b/meta/packages/meta/cross-linkage_1.0.bb
@@ -3,8 +3,8 @@ SECTION = "devel"
3PACKAGES = "" 3PACKAGES = ""
4 4
5INHIBIT_DEFAULT_DEPS = "1" 5INHIBIT_DEFAULT_DEPS = "1"
6PR = "r0"
7EXCLUDE_FROM_WORLD = "1" 6EXCLUDE_FROM_WORLD = "1"
7PR = "r0"
8 8
9SRC_URI = "" 9SRC_URI = ""
10 10
@@ -22,8 +22,14 @@ do_install() {
22 22
23do_stage () { 23do_stage () {
24 install -d ${CROSS_DIR}/${TARGET_SYS}/ 24 install -d ${CROSS_DIR}/${TARGET_SYS}/
25 rm -rf ${CROSS_DIR}/${TARGET_SYS}/include 25 if [ -e ${CROSS_DIR}/${TARGET_SYS}/include ]; then
26 cp -pPRr ${CROSS_DIR}/${TARGET_SYS}/include/* ${STAGING_INCDIR}
27 mv ${CROSS_DIR}/${TARGET_SYS}/include/ ${CROSS_DIR}/${TARGET_SYS}/include-oldbackup
28 fi
26 ln -s ${STAGING_INCDIR}/ ${CROSS_DIR}/${TARGET_SYS}/include 29 ln -s ${STAGING_INCDIR}/ ${CROSS_DIR}/${TARGET_SYS}/include
27 rm -rf ${CROSS_DIR}/${TARGET_SYS}/lib 30 if [ -e ${CROSS_DIR}/${TARGET_SYS}/lib ]; then
31 cp -pPRr ${CROSS_DIR}/${TARGET_SYS}/lib/* ${STAGING_LIBDIR}
32 mv ${CROSS_DIR}/${TARGET_SYS}/lib/ ${CROSS_DIR}/${TARGET_SYS}/lib-oldbackup
33 fi
28 ln -s ${STAGING_LIBDIR} ${CROSS_DIR}/${TARGET_SYS}/lib 34 ln -s ${STAGING_LIBDIR} ${CROSS_DIR}/${TARGET_SYS}/lib
29} 35}