diff options
author | Paul Barker <paul@paulbarker.me.uk> | 2014-12-21 22:08:09 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-12-31 16:35:35 +0100 |
commit | 45785617924bc5d6e16f23a695148c8abc488539 (patch) | |
tree | 13bdc2fa3d349816874772503c5e8cf36a903ea0 /meta-oe/recipes-core | |
parent | 47c7a58ab439dfd452c818af69645a415d3769f7 (diff) | |
download | meta-openembedded-45785617924bc5d6e16f23a695148c8abc488539.tar.gz |
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>
Diffstat (limited to 'meta-oe/recipes-core')
-rw-r--r-- | meta-oe/recipes-core/meta/distro-feed-configs.bb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta-oe/recipes-core/meta/distro-feed-configs.bb b/meta-oe/recipes-core/meta/distro-feed-configs.bb index dde86569e..ea5ca3848 100644 --- a/meta-oe/recipes-core/meta/distro-feed-configs.bb +++ b/meta-oe/recipes-core/meta/distro-feed-configs.bb | |||
@@ -5,10 +5,11 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384 | |||
5 | 5 | ||
6 | DISTRO_FEED_PREFIX ?= "remote" | 6 | DISTRO_FEED_PREFIX ?= "remote" |
7 | DISTRO_FEED_URI ?= "http://my-distribution.example/remote-feed/" | 7 | DISTRO_FEED_URI ?= "http://my-distribution.example/remote-feed/" |
8 | DISTRO_FEED_ARCHS ?= "all ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}" | ||
8 | 9 | ||
9 | do_compile() { | 10 | do_compile() { |
10 | mkdir -p ${S}/${sysconfdir}/opkg | 11 | mkdir -p ${S}/${sysconfdir}/opkg |
11 | for feed in all ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}; do | 12 | for feed in ${DISTRO_FEED_ARCHS}; do |
12 | echo "src/gz ${DISTRO_FEED_PREFIX}-${feed} ${DISTRO_FEED_URI}/${feed}" > ${S}/${sysconfdir}/opkg/${feed}-feed.conf | 13 | echo "src/gz ${DISTRO_FEED_PREFIX}-${feed} ${DISTRO_FEED_URI}/${feed}" > ${S}/${sysconfdir}/opkg/${feed}-feed.conf |
13 | done | 14 | done |
14 | } | 15 | } |