summaryrefslogtreecommitdiff
path: root/packages/openmoko2/openmoko-feed-configs.bb
diff options
context:
space:
mode:
Diffstat (limited to 'packages/openmoko2/openmoko-feed-configs.bb')
-rw-r--r--packages/openmoko2/openmoko-feed-configs.bb23
1 files changed, 23 insertions, 0 deletions
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"