diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-10-14 15:27:07 +0200 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2009-10-14 16:01:26 +0200 |
commit | 8be279f5a48418db0b4c9142c0c9bd4ae0764e37 (patch) | |
tree | b5cd0ac438848d47520404474dae8f69c79757e0 /recipes/meta/external-toolchain-generic.bb | |
parent | 2512ba21856d0ffd942ddd3a7c834d585a117ff1 (diff) |
angstrom: framework to select internal/external toolchain and brand (csl/generic for now)
Diffstat (limited to 'recipes/meta/external-toolchain-generic.bb')
-rw-r--r-- | recipes/meta/external-toolchain-generic.bb | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/recipes/meta/external-toolchain-generic.bb b/recipes/meta/external-toolchain-generic.bb new file mode 100644 index 0000000000..6e87e88954 --- /dev/null +++ b/recipes/meta/external-toolchain-generic.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_PATH/prefix." + +PROVIDES = "\ + linux-libc-headers \ + virtual/${TARGET_PREFIX}gcc \ + virtual/${TARGET_PREFIX}gcc-initial \ + virtual/${TARGET_PREFIX}gcc-intermediate \ + virtual/${TARGET_PREFIX}binutils \ + virtual/${TARGET_PREFIX}libc-for-gcc \ + virtual/${TARGET_PREFIX}libc-initial \ + virtual/libc \ + virtual/libintl \ + virtual/libiconv \ + " + +RPROVIDES = "glibc glibc-utils libsegfault glibc-thread-db libgcc-dev libgcc libstdc++-dev libstdc++ ldd" +PACKAGES_DYNAMIC = "glibc-gconv-*" +PR = "r2" + +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 -pPRr ${prefix}/pkgdata/* ${STAGING_DIR}/pkgdata/ + cp -pPRr ${prefix}/${TARGET_SYS}/shlibs/* ${STAGING_DIR_TARGET}/shlibs/ + + if [ -d ${prefix}/ipk ]; then + install -d ${DEPLOY_DIR_IPK}/ + cp -pPRr ${prefix}/ipk/* ${DEPLOY_DIR_IPK}/ + fi + + if [ -d ${prefix}/deb ]; then + install -d ${DEPLOY_DIR_DEB}/ + cp -pPRr ${prefix}/deb/* ${DEPLOY_DIR_DEB}/ + fi + +# if [ -d ${prefix}/pstage -a "x${DEPLOY_DIR_PSTAGE}" != "x" ]; then +# install -d ${DEPLOY_DIR_PSTAGE}/ +# cp -pPRr ${prefix}/pstage/* ${DEPLOY_DIR_PSTAGE}/ +# fi +} |