diff options
author | Jesse Gilles <jgilles@multitech.com> | 2015-01-23 16:05:21 -0600 |
---|---|---|
committer | Jesse Gilles <jgilles@multitech.com> | 2015-01-23 16:05:21 -0600 |
commit | facb0c3e2e22f1fd3807f87842555b0cf5798550 (patch) | |
tree | fa93abcdd0ded4c8fa146fc97056a2ac9575fd6e /recipes-core | |
parent | 52da4548543c9d96f7bd5fbdfbf5c5d1ac3b4603 (diff) | |
download | meta-mlinux-facb0c3e2e22f1fd3807f87842555b0cf5798550.tar.gz meta-mlinux-facb0c3e2e22f1fd3807f87842555b0cf5798550.tar.bz2 meta-mlinux-facb0c3e2e22f1fd3807f87842555b0cf5798550.zip |
mlinux-feed-configs: use one feed config file
Diffstat (limited to 'recipes-core')
-rw-r--r-- | recipes-core/mlinux/mlinux-feed-configs.bb | 10 |
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}" |