<div dir="ltr"><div><div>Paul,<br></div>Thanks for looking into this further. I agree that poky-feed-config-opkg does not work for anything other than a reference. I've resorted to creating my own, but should be maybe even a part of the opkg recipe so as not to disturb rpm/deb. Below is what I am using. arch.conf and base-feeds.conf only really need all, architecture and machine. <br>FEEDURIPREFIX ?= "<a href="ftp://MYMACHINE">ftp://MYMACHINE</a>"<br><br>do_compile() {<br> mkdir -p ${S}/${sysconfdir}/opkg/<br><br> ipkgarchs="all ${MACHINE_ARCH} ${PACKAGE_ARCH}"<br><br> basefeedconf=${S}/${sysconfdir}/opkg/base-feeds.conf<br><br> rm -f $basefeedconf<br> touch $basefeedconf<br><br> for arch in $ipkgarchs; do<br> echo "src/gz $arch ${FEEDURIPREFIX}/$arch" >> $basefeedconf<br> done<br>}<br><br><br>do_install () {<br> install -d ${D}${sysconfdir}/opkg<br> install -m 0644 ${S}/${sysconfdir}/opkg/* ${D}${sysconfdir}/opkg/<br>}<br><br>FILES_${PN} = "${sysconfdir}/opkg/ "<br><br>CONFFILES_${PN} += "${sysconfdir}/opkg/base-feeds.conf"<br><br></div>Michael Gloff<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 13, 2014 at 6:54 AM, Paul Barker <span dir="ltr"><<a href="mailto:paul@paulbarker.me.uk" target="_blank">paul@paulbarker.me.uk</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, Nov 26, 2014 at 04:17:08PM +0100, Martin Jansa wrote:<br>
> On Wed, Nov 26, 2014 at 01:50:38PM +0000, Paul Barker wrote:<br>
> ><br>
> > I'd keep three, but refactor them as I've described above:<br>
> > - opkg: Includes '/etc/opkg/opkg.conf'<br>
> > - opkg-arch-config: Includes '/etc/opkg/arch.conf', machine specific<br>
> > - opkg-feed-config: Includes '/etc/opkg/feeds.conf', distro and<br>
> > possibly machine specific<br>
><br>
> Please also check<br>
> <a href="http://git.openembedded.org/meta-openembedded/tree/meta-oe/recipes-core/meta/distro-feed-configs.bb" target="_blank">http://git.openembedded.org/meta-openembedded/tree/meta-oe/recipes-core/meta/distro-feed-configs.bb</a><br>
><br>
> + filtering the architectures<br>
><br>
> <a href="https://github.com/shr-distribution/meta-smartphone/blob/master/meta-shr-distro/recipes-core/meta/distro-feed-configs.bbappend" target="_blank">https://github.com/shr-distribution/meta-smartphone/blob/master/meta-shr-distro/recipes-core/meta/distro-feed-configs.bbappend</a><br>
><br>
> + stricter filter for individual MACHINEs based on selected DEFAULTTUNE<br>
><br>
> <a href="https://github.com/shr-distribution/meta-smartphone/blob/master/meta-shr-distro/conf/distro/include/defaulttunes.inc" target="_blank">https://github.com/shr-distribution/meta-smartphone/blob/master/meta-shr-distro/conf/distro/include/defaulttunes.inc</a><br>
><br>
<br>
Thanks for the pointer Martin, I forgot to check outside oe-core. Also, sorry<br>
for the late reply, been rather busy recently!<br>
<br>
I suggest we drop poky-feed-config-opkg from oe-core as it isn't really usable<br>
as-is and the Yocto Project manual recommends using distro-feed-config anyway<br>
(<a href="http://www.yoctoproject.org/docs/1.7/mega-manual/mega-manual.html#runtime-package-management-build" target="_blank">http://www.yoctoproject.org/docs/1.7/mega-manual/mega-manual.html#runtime-package-management-build</a>).<br>
<br>
I still think the opkg and opkg-collateral recipes should be refactored as I<br>
proposed in my previous email. I'll try to throw together some RFC patches this<br>
week.<br>
<br>
We could also consider moving distro-feed-config to oe-core if it is the<br>
recommended way to setup opkg feeds. I do think that a unified way of<br>
configuring ipk/deb/rpm feeds would be good to have in the long term, but we can<br>
at least tidy up the opkg configuration for now.<br>
<br>
Thanks,<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Paul Barker<br>
<br>
Email: <a href="mailto:paul@paulbarker.me.uk">paul@paulbarker.me.uk</a><br>
<a href="http://www.paulbarker.me.uk" target="_blank">http://www.paulbarker.me.uk</a><br>
</font></span><br>--<br>
_______________________________________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
<br></blockquote></div></div>