diff options
author | John Lee <john_lee@openmoko.org> | 2008-12-22 15:14:09 +0800 |
---|---|---|
committer | John Lee <john_lee@openmoko.org> | 2009-01-12 13:58:49 +0800 |
commit | a2a083ab240026ca479b4800c09c02b656e1d70e (patch) | |
tree | 9d6e663ffc3662dcbb58bfbf62610c50b8131471 /packages/meta/meta-toolchain.bb | |
parent | 42087db475b12c995755d430de5b59a5e1add199 (diff) |
meta-toolchain.bb: introduce modify_opkg_conf
By modifying the opkg config files in the toolchain, the toolchain can
expend itself by installing packages from the repository. The default
is to use DISTRO_FEED_URI.
Diffstat (limited to 'packages/meta/meta-toolchain.bb')
-rw-r--r-- | packages/meta/meta-toolchain.bb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/packages/meta/meta-toolchain.bb b/packages/meta/meta-toolchain.bb index 2a59ba2208..3ce2a31d9e 100644 --- a/packages/meta/meta-toolchain.bb +++ b/packages/meta/meta-toolchain.bb @@ -34,6 +34,24 @@ TOOLCHAIN_OUTPUTNAME ?= "${DISTRO}-${DISTRO_VERSION}-${FEED_ARCH}-${TARGET_OS}-$ RDEPENDS = "${TOOLCHAIN_TARGET_TASK} ${TOOLCHAIN_HOST_TASK}" +TOOLCHAIN_FEED_URI ?= "${DISTRO_FEED_URI}" + +modify_opkg_conf () { + OUTPUT_OPKGCONF_TARGET="${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/${layout_sysconfdir}/opkg.conf" + OUTPUT_OPKGCONF_HOST="${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/${layout_sysconfdir}/opkg-sdk.conf" + OUTPUT_OPKGCONF_SDK="${SDK_OUTPUT}/${sysconfdir}/opkg-sdk.conf" + rm ${OUTPUT_OPKGCONF_TARGET} + rm ${OUTPUT_OPKGCONF_HOST} + rm ${OUTPUT_OPKGCONF_SDK} + opkgarchs="${PACKAGE_ARCHS}" + priority=1 + for arch in ${opkgarchs}; do + echo "arch ${arch} ${priority}" >> ${OUTPUT_OPKGCONF_TARGET}; + echo "src/gz ${arch} ${TOOLCHAIN_FEED_URI}/${arch}" >> ${OUTPUT_OPKGCONF_TARGET}; + priority=$(expr ${priority} + 5); + done +} + do_populate_sdk() { rm -rf ${SDK_OUTPUT} mkdir -p ${SDK_OUTPUT} @@ -134,6 +152,8 @@ do_populate_sdk() { echo 'Metadata Revision: ${METADATA_REVISION}' >> $versionfile echo 'Timestamp: ${DATETIME}' >> $versionfile + modify_opkg_conf + # Package it up mkdir -p ${SDK_DEPLOY} cd ${SDK_OUTPUT} |