From 18aa85bc8f85aaf7054ea8c17f9823bd2ebd8925 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 7 Feb 2008 20:22:10 +0000 Subject: 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 --- meta/packages/meta/meta-toolchain-sdk.bb | 2 +- meta/packages/meta/meta-toolchain.bb | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'meta/packages') diff --git a/meta/packages/meta/meta-toolchain-sdk.bb b/meta/packages/meta/meta-toolchain-sdk.bb index 4da9391dd..eb8f4fdcd 100644 --- a/meta/packages/meta/meta-toolchain-sdk.bb +++ b/meta/packages/meta/meta-toolchain-sdk.bb @@ -1,3 +1,3 @@ -TOOLCHAIN_TARGET_TASK = "task-poky-standalone-gmae-sdk-target" +TOOLCHAIN_TARGET_TASK = "task-poky-standalone-gmae-sdk-target task-poky-standalone-gmae-sdk-target-dbg" TOOLCHAIN_OUTPUTNAME = "${SDK_NAME}-toolchain-sdk-${DISTRO_VERSION}" require meta-toolchain.bb diff --git a/meta/packages/meta/meta-toolchain.bb b/meta/packages/meta/meta-toolchain.bb index 40d27b56e..fb213b88b 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}" IPKG_TARGET = "ipkg-cl -f ${IPKGCONF_TARGET} -o ${SDK_OUTPUT}/temp-target" TOOLCHAIN_HOST_TASK ?= "task-sdk-host" -TOOLCHAIN_TARGET_TASK ?= "task-poky-standalone-sdk-target" +TOOLCHAIN_TARGET_TASK ?= "task-poky-standalone-sdk-target task-poky-standalone-sdk-target-dbg" TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${DISTRO_VERSION}" RDEPENDS = "${TOOLCHAIN_TARGET_TASK} ${TOOLCHAIN_HOST_TASK}" @@ -36,14 +36,20 @@ do_populate_sdk() { ${IPKG_TARGET} install ${TOOLCHAIN_TARGET_TASK} mkdir -p ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/include - mkdir -p ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib + mkdir -p ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/.debug/ mkdir -p ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/share mv ${SDK_OUTPUT}/temp-target/usr/lib/ipkg/status ${SDK_OUTPUT}/${prefix}/package-status rm -rf ${SDK_OUTPUT}/temp-target/usr/lib/ipkg/ cp -pPR ${SDK_OUTPUT}/temp-target/usr/include/* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/include/ cp -pPR ${SDK_OUTPUT}/temp-target/usr/lib/* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/ + if [ -d ${SDK_OUTPUT}/temp-target/usr/lib/.debug ]; then + cp -pPR ${SDK_OUTPUT}/temp-target/usr/lib/.debug/* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/.debug/ + fi cp -pPR ${SDK_OUTPUT}/temp-target/usr/share/* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/share/ cp -pPR ${SDK_OUTPUT}/temp-target/lib/* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/ + if [ -d ${SDK_OUTPUT}/temp-target/lib/.debug ]; then + cp -pPR ${SDK_OUTPUT}/temp-target/lib/.debug/* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/.debug/ + fi rm -rf ${SDK_OUTPUT}/temp-target/ for fn in `ls ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/`; do -- cgit v1.2.3