distro-feed-configs: Make list of archs configurable

The list of architectures for which to emit feed configurations is now taken
from the DISTRO_FEED_ARCHS variable. The default value for this variable is the
list of architectures which was previously used. Thus in the default case
nothing is changed, but DISTRO_FEED_ARCHS can now be overridden in local.conf.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Paul Barker 2014-12-21 22:08:09 +00:00 committed by Martin Jansa
parent 47c7a58ab4
commit 4578561792

View File

@ -5,10 +5,11 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384
DISTRO_FEED_PREFIX ?= "remote"
DISTRO_FEED_URI ?= "http://my-distribution.example/remote-feed/"
DISTRO_FEED_ARCHS ?= "all ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}"
do_compile() {
mkdir -p ${S}/${sysconfdir}/opkg
for feed in all ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}; do
for feed in ${DISTRO_FEED_ARCHS}; do
echo "src/gz ${DISTRO_FEED_PREFIX}-${feed} ${DISTRO_FEED_URI}/${feed}" > ${S}/${sysconfdir}/opkg/${feed}-feed.conf
done
}