summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/angstrom/angstrom-feed-configs.bb55
1 files changed, 34 insertions, 21 deletions
diff --git a/packages/angstrom/angstrom-feed-configs.bb b/packages/angstrom/angstrom-feed-configs.bb
index ff8f3c180d..3943d05502 100644
--- a/packages/angstrom/angstrom-feed-configs.bb
+++ b/packages/angstrom/angstrom-feed-configs.bb
@@ -1,7 +1,9 @@
DESCRIPTION = "Configuration files for online package repositories aka feeds"
+RRECOMMENDS_${PN} += "opkg-nogpg"
+
#PV = "${DISTRO_VERSION}"
-PR = "r7"
+PR = "r8"
PACKAGE_ARCH = "${MACHINE_ARCH}"
FEED_BASEPATH ?= "unstable/feed/"
@@ -9,16 +11,25 @@ FEED_BASEPATH ?= "unstable/feed/"
IWMMXT_FEED = "${@base_contains('MACHINE_FEATURES', 'iwmmxt', 'iwmmxt', '',d)}"
do_compile() {
- mkdir -p ${S}/${sysconfdir}/opkg
+ mkdir -p ${S}/${sysconfdir}/opkg
+
+ rm ${S}/${sysconfdir}/opkg/arch.conf || true
+ ipkgarchs="${PACKAGE_ARCHS}"
+ priority=1
+ for arch in $ipkgarchs; do
+ echo "arch $arch $priority" >> ${S}/${sysconfdir}/opkg/arch.conf
+ priority=$(expr $priority + 5)
+ done
+
for feed in base debug perl python gstreamer ; do
- echo "src/gz ${feed} ${ANGSTROM_URI}/${FEED_BASEPATH}${FEED_ARCH}/${feed}" > ${S}/${sysconfdir}/opkg/${feed}-feed.conf
+ echo "src/gz ${feed} ${ANGSTROM_URI}/${FEED_BASEPATH}${FEED_ARCH}/${feed}" > ${S}/${sysconfdir}/opkg/${feed}-feed.conf
done
- echo "src/gz ${MACHINE_ARCH} ${ANGSTROM_URI}/${FEED_BASEPATH}${FEED_ARCH}/machine/${MACHINE_ARCH}" > ${S}/${sysconfdir}/opkg/${MACHINE_ARCH}-feed.conf
+ echo "src/gz ${MACHINE_ARCH} ${ANGSTROM_URI}/${FEED_BASEPATH}${FEED_ARCH}/machine/${MACHINE_ARCH}" > ${S}/${sysconfdir}/opkg/${MACHINE_ARCH}-feed.conf
echo "src/gz no-arch ${ANGSTROM_URI}/${FEED_BASEPATH}/all" > ${S}/${sysconfdir}/opkg/noarch-feed.conf
-
+
# iwmmxt is a special case, add the iwmmxt feed for machine that have 'iwmmxt' in MACHINE_FEATURES
- if [ "${IWMMXT_FEED}" = "iwmmxt" ] ; then
+ if [ "${IWMMXT_FEED}" = "iwmmxt" ] ; then
echo "src/gz iwmmxt ${ANGSTROM_URI}/${FEED_BASEPATH}iwmmxt/base" > ${S}/${sysconfdir}/opkg/iwmmxt-feed.conf
fi
@@ -35,23 +46,25 @@ do_install () {
}
FILES_${PN} = "${sysconfdir}/opkg/base-feed.conf \
- ${sysconfdir}/opkg/debug-feed.conf \
- ${sysconfdir}/opkg/perl-feed.conf \
- ${sysconfdir}/opkg/python-feed.conf \
- ${sysconfdir}/opkg/gstreamer-feed.conf \
- ${sysconfdir}/opkg/${MACHINE_ARCH}-feed.conf \
- ${sysconfdir}/opkg/noarch-feed.conf \
- ${sysconfdir}/opkg/iwmmxt-feed.conf \
- "
+ ${sysconfdir}/opkg/debug-feed.conf \
+ ${sysconfdir}/opkg/perl-feed.conf \
+ ${sysconfdir}/opkg/python-feed.conf \
+ ${sysconfdir}/opkg/gstreamer-feed.conf \
+ ${sysconfdir}/opkg/${MACHINE_ARCH}-feed.conf \
+ ${sysconfdir}/opkg/noarch-feed.conf \
+ ${sysconfdir}/opkg/iwmmxt-feed.conf \
+ ${sysconfdir}/opkg/arch.conf \
+ "
CONFFILES_${PN} += "${sysconfdir}/opkg/base-feed.conf \
- ${sysconfdir}/opkg/debug-feed.conf \
- ${sysconfdir}/opkg/perl-feed.conf \
- ${sysconfdir}/opkg/python-feed.conf \
- ${sysconfdir}/opkg/gstreamer-feed.conf \
- ${sysconfdir}/opkg/${MACHINE_ARCH}-feed.conf \
- ${sysconfdir}/opkg/noarch-feed.conf \
- "
+ ${sysconfdir}/opkg/debug-feed.conf \
+ ${sysconfdir}/opkg/perl-feed.conf \
+ ${sysconfdir}/opkg/python-feed.conf \
+ ${sysconfdir}/opkg/gstreamer-feed.conf \
+ ${sysconfdir}/opkg/${MACHINE_ARCH}-feed.conf \
+ ${sysconfdir}/opkg/noarch-feed.conf \
+ ${sysconfdir}/opkg/arch.conf \
+ "
python populate_packages_prepend () {
etcdir = bb.data.expand('${sysconfdir}/opkg', d)