diff options
author | Phil Blundell <philb@gnu.org> | 2004-07-22 21:24:44 +0000 |
---|---|---|
committer | Phil Blundell <philb@gnu.org> | 2004-07-22 21:24:44 +0000 |
commit | 86918c81388cfcbf11aed837e492fb184c72497e (patch) | |
tree | 02bae1bed8512abd624b4384194d9a9986325a38 | |
parent | d30def82ed60950cb8280d3655597683d1ceb058 (diff) |
nostamp for do_populate_sdk
BKrev: 4100309cTpdrjeM8tA1crlFiDkaCfg
-rw-r--r-- | meta/meta-sdk.oe | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/meta-sdk.oe b/meta/meta-sdk.oe index e69de29bb2..94ffd75efa 100644 --- a/meta/meta-sdk.oe +++ b/meta/meta-sdk.oe @@ -0,0 +1,33 @@ +DEPENDS = "ipkg-native ipkg-utils-native binutils-cross-sdk gcc-cross-sdk gdb-cross-sdk" + +inherit sdk + +SDK_DIR = "${TMPDIR}/sdk" +SDK_OUTPUT = "${SDK_DIR}/image" + +IPKG_HOST = "ipkg-cl -f ${SDK_DIR}/ipkg-host.conf -o ${SDK_OUTPUT}" +IPKG_TARGET = "ipkg-cl -f ${SDK_DIR}/ipkg-host.conf -o ${SDK_OUTPUT}/${prefix}" + +do_populate_sdk() { + touch ${DEPLOY_DIR_IPK}/Packages + ipkg-make-index -r ${DEPLOY_DIR_IPK}/Packages -p ${DEPLOY_DIR_IPK}/Packages -l ${DEPLOY_DIR_IPK}/Packages.filelist -m ${DEPLOY_DIR_IPK} + + rm -rf ${SDK_OUTPUT} + mkdir -p ${SDK_OUTPUT} + + cat <<EOF >>${SDK_DIR}/ipkg-host.conf +src oe file:${DEPLOY_DIR_IPK} +arch ${BUILD_ARCH} 1 +EOF + cat <<EOF >>${SDK_DIR}/ipkg-target.conf +src oe file:${DEPLOY_DIR_IPK} +arch ${TARGET_ARCH} 1 +EOF + ${IPKG_HOST} update + ${IPKG_HOST} --nodeps install binutils-cross-sdk gcc-cross-sdk gdb-cross-sdk + ${IPKG_TARGET} update + ${IPKG_TARGET} install glibc-dev +} + +do_populate_sdk[nostamp] = 1 +addtask populate_sdk before do_build after do_install |