diff options
author | Richard Purdie <richard@openedhand.com> | 2008-02-07 20:22:10 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-02-07 20:22:10 +0000 |
commit | 18aa85bc8f85aaf7054ea8c17f9823bd2ebd8925 (patch) | |
tree | 84791b78164fd8ee5c609f376252d379736223d6 /meta/packages/meta/meta-toolchain.bb | |
parent | 8dac31d67803c59d950a02b5ce3a638731b86cdc (diff) | |
download | poky-18aa85bc8f85aaf7054ea8c17f9823bd2ebd8925.tar.gz |
meta-toolchain: Install -dbg packages into standalone toolchains and sdk
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3712 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/meta/meta-toolchain.bb')
-rw-r--r-- | meta/packages/meta/meta-toolchain.bb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/meta/packages/meta/meta-toolchain.bb b/meta/packages/meta/meta-toolchain.bb index 40d27b56e1..fb213b88b5 100644 --- a/meta/packages/meta/meta-toolchain.bb +++ b/meta/packages/meta/meta-toolchain.bb | |||
@@ -13,7 +13,7 @@ IPKG_HOST = "ipkg-cl -f ${IPKGCONF_SDK} -o ${SDK_OUTPUT}" | |||
13 | IPKG_TARGET = "ipkg-cl -f ${IPKGCONF_TARGET} -o ${SDK_OUTPUT}/temp-target" | 13 | IPKG_TARGET = "ipkg-cl -f ${IPKGCONF_TARGET} -o ${SDK_OUTPUT}/temp-target" |
14 | 14 | ||
15 | TOOLCHAIN_HOST_TASK ?= "task-sdk-host" | 15 | TOOLCHAIN_HOST_TASK ?= "task-sdk-host" |
16 | TOOLCHAIN_TARGET_TASK ?= "task-poky-standalone-sdk-target" | 16 | TOOLCHAIN_TARGET_TASK ?= "task-poky-standalone-sdk-target task-poky-standalone-sdk-target-dbg" |
17 | TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${DISTRO_VERSION}" | 17 | TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${DISTRO_VERSION}" |
18 | 18 | ||
19 | RDEPENDS = "${TOOLCHAIN_TARGET_TASK} ${TOOLCHAIN_HOST_TASK}" | 19 | RDEPENDS = "${TOOLCHAIN_TARGET_TASK} ${TOOLCHAIN_HOST_TASK}" |
@@ -36,14 +36,20 @@ do_populate_sdk() { | |||
36 | ${IPKG_TARGET} install ${TOOLCHAIN_TARGET_TASK} | 36 | ${IPKG_TARGET} install ${TOOLCHAIN_TARGET_TASK} |
37 | 37 | ||
38 | mkdir -p ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/include | 38 | mkdir -p ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/include |
39 | mkdir -p ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib | 39 | mkdir -p ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/.debug/ |
40 | mkdir -p ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/share | 40 | mkdir -p ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/share |
41 | mv ${SDK_OUTPUT}/temp-target/usr/lib/ipkg/status ${SDK_OUTPUT}/${prefix}/package-status | 41 | mv ${SDK_OUTPUT}/temp-target/usr/lib/ipkg/status ${SDK_OUTPUT}/${prefix}/package-status |
42 | rm -rf ${SDK_OUTPUT}/temp-target/usr/lib/ipkg/ | 42 | rm -rf ${SDK_OUTPUT}/temp-target/usr/lib/ipkg/ |
43 | cp -pPR ${SDK_OUTPUT}/temp-target/usr/include/* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/include/ | 43 | cp -pPR ${SDK_OUTPUT}/temp-target/usr/include/* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/include/ |
44 | cp -pPR ${SDK_OUTPUT}/temp-target/usr/lib/* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/ | 44 | cp -pPR ${SDK_OUTPUT}/temp-target/usr/lib/* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/ |
45 | if [ -d ${SDK_OUTPUT}/temp-target/usr/lib/.debug ]; then | ||
46 | cp -pPR ${SDK_OUTPUT}/temp-target/usr/lib/.debug/* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/.debug/ | ||
47 | fi | ||
45 | cp -pPR ${SDK_OUTPUT}/temp-target/usr/share/* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/share/ | 48 | cp -pPR ${SDK_OUTPUT}/temp-target/usr/share/* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/share/ |
46 | cp -pPR ${SDK_OUTPUT}/temp-target/lib/* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/ | 49 | cp -pPR ${SDK_OUTPUT}/temp-target/lib/* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/ |
50 | if [ -d ${SDK_OUTPUT}/temp-target/lib/.debug ]; then | ||
51 | cp -pPR ${SDK_OUTPUT}/temp-target/lib/.debug/* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/.debug/ | ||
52 | fi | ||
47 | rm -rf ${SDK_OUTPUT}/temp-target/ | 53 | rm -rf ${SDK_OUTPUT}/temp-target/ |
48 | 54 | ||
49 | for fn in `ls ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/`; do | 55 | for fn in `ls ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/`; do |