summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--conf/distro/openmoko.conf11
-rw-r--r--packages/openmoko2/openmoko-feed-configs.bb23
2 files changed, 24 insertions, 10 deletions
diff --git a/conf/distro/openmoko.conf b/conf/distro/openmoko.conf
index 80192ea4d1..d7a3b98f6e 100644
--- a/conf/distro/openmoko.conf
+++ b/conf/distro/openmoko.conf
@@ -22,16 +22,7 @@ CVS_TARBALL_STASH = "http://downloads.openmoko.org/sources/"
PREMIRRORS = "(ftp|https?)$://.*/.* http://downloads.openmoko.org/sources/"
-FEED_URIS = "\
- snapshot-all##http://buildhost.openmoko.org/snapshots/2007.08/ipk/all \
- snapshot-armv4t##http://buildhost.openmoko.org/snapshots/2007.08/ipk/armv4t \
- snapshot-neo1973##http://buildhost.openmoko.org/snapshots/2007.08/ipk/neo1973 \
- snapshot-om-gta01##http://buildhost.openmoko.org/snapshots/2007.08/ipk/om-gta01 \
- \
- updates-all##http://buildhost.openmoko.org/OM2007.2/tmp/deploy/glibc/ipk/all \
- updates-armv4t##http://buildhost.openmoko.org/OM2007.2/tmp/deploy/glibc/ipk/armv4t \
- updates-neo1973##http://buildhost.openmoko.org/OM2007.2/tmp/deploy/glibc/ipk/neo1973 \
- updates-om-gta01##http://buildhost.openmoko.org/OM2007.2/tmp/deploy/glibc/ipk/om-gta01 "
+ANGSTROM_FEED_CONFIGS = "openmoko-feed-configs"
# 2.18 seems to break badly on 64-bit systems
PREFERRED_VERSION_binutils ?= "2.17.50.0.12"
diff --git a/packages/openmoko2/openmoko-feed-configs.bb b/packages/openmoko2/openmoko-feed-configs.bb
new file mode 100644
index 0000000000..81d7ad4223
--- /dev/null
+++ b/packages/openmoko2/openmoko-feed-configs.bb
@@ -0,0 +1,23 @@
+DESCRIPTION = "Configuration files for online package repositories aka feeds"
+PR = "r0"
+
+do_compile() {
+ mkdir -p ${S}/${sysconfdir}/opkg
+ for feed in all armv4t neo1973 ${MACHINE_ARCH}; do
+ echo "src/gz daily-${feed} ${OPENMOKO_URI}/${feed}" > ${S}/${sysconfdir}/opkg/${feed}-feed.conf
+ done
+}
+do_install () {
+ install -d ${D}${sysconfdir}/opkg
+ install -m 0644 ${S}/${sysconfdir}/opkg/* ${D}${sysconfdir}/opkg/
+}
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+CONFFILES_${PN} += "${sysconfdir}/opkg/all-feed.conf \
+ ${sysconfdir}/opkg/armv4t-feed.conf \
+ ${sysconfdir}/opkg/neo1973-feed.conf \
+ ${sysconfdir}/opkg/${MACHINE_ARCH}-feed.conf \
+ "
+
+OPENMOKO_URI = "http://buildhost.openmoko.org/daily-feed"