summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Gilles <jgilles@multitech.com>2015-01-23 16:05:21 -0600
committerJesse Gilles <jgilles@multitech.com>2015-01-23 16:05:21 -0600
commitfacb0c3e2e22f1fd3807f87842555b0cf5798550 (patch)
treefa93abcdd0ded4c8fa146fc97056a2ac9575fd6e
parent52da4548543c9d96f7bd5fbdfbf5c5d1ac3b4603 (diff)
downloadmeta-mlinux-facb0c3e2e22f1fd3807f87842555b0cf5798550.tar.gz
meta-mlinux-facb0c3e2e22f1fd3807f87842555b0cf5798550.tar.bz2
meta-mlinux-facb0c3e2e22f1fd3807f87842555b0cf5798550.zip
mlinux-feed-configs: use one feed config file
-rw-r--r--recipes-core/mlinux/mlinux-feed-configs.bb10
1 files changed, 5 insertions, 5 deletions
diff --git a/recipes-core/mlinux/mlinux-feed-configs.bb b/recipes-core/mlinux/mlinux-feed-configs.bb
index 2bd9bfc..4291f24 100644
--- a/recipes-core/mlinux/mlinux-feed-configs.bb
+++ b/recipes-core/mlinux/mlinux-feed-configs.bb
@@ -1,16 +1,16 @@
SUMMARY = "Configuration files for online package repositories aka feeds"
-PR = "r0"
+PR = "r1"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
-DISTRO_FEED_PREFIX ?= "remote"
-DISTRO_FEED_URI ?= "http://my-distribution.example/remote-feed/"
feeds="all ${TUNE_PKGARCH} ${MACHINE_ARCH}"
+feed_file="mlinux-feed.conf"
do_compile() {
mkdir -p ${S}/${sysconfdir}/opkg
+ rm -f ${S}/${sysconfdir}/opkg/${feed_file}
for feed in ${feeds}; do
- echo "src/gz ${DISTRO_FEED_PREFIX}-${feed} ${DISTRO_FEED_URI}/${feed}" > ${S}/${sysconfdir}/opkg/${feed}-feed.conf
+ echo "src/gz ${DISTRO_FEED_PREFIX}-${feed} ${DISTRO_FEED_URI}/${feed}" >> ${S}/${sysconfdir}/opkg/${feed_file}
done
}
do_install () {
@@ -20,4 +20,4 @@ do_install () {
PACKAGE_ARCH = "${MACHINE_ARCH}"
-CONFFILES_${PN} += '${@ " ".join( [ ( "${sysconfdir}/opkg/%s-feed.conf" % feed ) for feed in "${feeds}".split() ] ) }'
+CONFFILES_${PN} += "${sysconfdir}/opkg/${feed_file}"