From 79a4501a2ead92cb512eef0bd3dfe133d0e5d799 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 20 Sep 2010 14:18:45 +0100 Subject: Complete packages -> recipes transition Signed-off-by: Richard Purdie --- .../feed-config/poky-feed-config-opkg_1.0.bb | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 meta/recipes-core/feed-config/poky-feed-config-opkg_1.0.bb (limited to 'meta/recipes-core/feed-config') diff --git a/meta/recipes-core/feed-config/poky-feed-config-opkg_1.0.bb b/meta/recipes-core/feed-config/poky-feed-config-opkg_1.0.bb new file mode 100644 index 0000000000..f36b38a7e5 --- /dev/null +++ b/meta/recipes-core/feed-config/poky-feed-config-opkg_1.0.bb @@ -0,0 +1,43 @@ +DESCRIPTION = "Poky example feed configuration" +LICENSE = "MIT" + +PR = "r1" +PACKAGE_ARCH = "${MACHINE_ARCH}" + +#FEEDNAMEPREFIX ?= "INVALID" +#FEEDURIPREFIX ?= "INVALID" + +do_compile() { + mkdir -p ${S}/${sysconfdir}/opkg/ + + archconf=${S}/${sysconfdir}/opkg/arch.conf + + rm -f $archconf + ipkgarchs="${PACKAGE_ARCHS}" + priority=1 + for arch in $ipkgarchs; do + echo "arch $arch $priority" >> $archconf + priority=$(expr $priority + 5) + done + + basefeedconf=${S}/${sysconfdir}/opkg/base-feeds.conf + + rm -f $basefeedconf + touch $basefeedconf + + #for arch in $ipkgarchs; do + # echo "src/gz ${FEEDNAMEPREFIX}-$arch http://pokylinux.org/${FEEDURIPREFIX}$arch" >> $basefeedconf + #done +} + + +do_install () { + install -d ${D}${sysconfdir}/opkg + install -m 0644 ${S}/${sysconfdir}/opkg/* ${D}${sysconfdir}/opkg/ +} + +FILES_${PN} = "${sysconfdir}/opkg/ " + +CONFFILES_${PN} += "${sysconfdir}/opkg/base-feeds.conf \ + ${sysconfdir}/opkg/arch.conf" + -- cgit 1.2.3-korg