diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2007-12-02 23:57:57 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@rpsys.net> | 2007-12-02 23:57:57 +0000 |
commit | f7008986be621580efe1e77aa504fd3e29a1f1a6 (patch) | |
tree | 03ad8b279d05758f0f5b0eea6edbc3b6beb891ab /packages/meta | |
parent | 62d5f872cfb13c9128c53107717e46151b08c2d4 (diff) |
Add external-toolchain.bb, based on code from poky
Diffstat (limited to 'packages/meta')
-rw-r--r-- | packages/meta/external-toolchain.bb | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/packages/meta/external-toolchain.bb b/packages/meta/external-toolchain.bb new file mode 100644 index 0000000000..c483ea26a6 --- /dev/null +++ b/packages/meta/external-toolchain.bb @@ -0,0 +1,50 @@ +DESCRIPTION = "This package allows OE to work with an external toolchain generated \ + by meta-toolchain instead of building its own. It expects that toolchain \ + to be located in SDK_PREFIX/prefix." + +PROVIDES = "\ + linux-libc-headers \ + virtual/${TARGET_PREFIX}gcc \ + virtual/${TARGET_PREFIX}gcc-initial \ + virtual/${TARGET_PREFIX}binutils \ + virtual/${TARGET_PREFIX}libc-for-gcc \ + virtual/libc \ + virtual/libintl \ + virtual/libiconv \ + glibc-thread-db \ + virtual/linux-libc-headers \ + " + +RPROVIDES = "glibc-utils libsegfault glibc-thread-db libgcc-dev libstdc++-dev libstdc++" +PACKAGES_DYNAMIC = "glibc-gconv-*" +PR = "r1" + +inherit sdk + +do_stage() { + if [ ! -e ${prefix}/package-status ]; then + echo "The external toolchain could not be found in ${prefix}!" + exit 1 + fi + + install -d ${STAGING_DIR}/pkgdata/ + install -d ${STAGING_DIR_TARGET}/shlibs/ + + cp -ar ${prefix}/pkgdata/* ${STAGING_DIR}/pkgdata/ + cp -ar ${prefix}/${TARGET_SYS}/shlibs/* ${STAGING_DIR_TARGET}/shlibs/ + + if [ -d ${prefix}/ipk ]; then + install -d ${DEPLOY_DIR_IPK}/ + cp -ar ${prefix}/ipk/* ${DEPLOY_DIR_IPK}/ + fi + + if [ -d ${prefix}/deb ]; then + install -d ${DEPLOY_DIR_DEB}/ + cp -ar ${prefix}/deb/* ${DEPLOY_DIR_DEB}/ + fi + + if [ -d ${prefix}/pstage -a "x${DEPLOY_DIR_PSTAGE}" != "x" ]; then + install -d ${DEPLOY_DIR_PSTAGE}/ + cp -ar ${prefix}/pstage/* ${DEPLOY_DIR_PSTAGE}/ + fi +} |