diff options
| author | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-20 14:18:45 +0100 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-20 14:18:45 +0100 |
| commit | 79a4501a2ead92cb512eef0bd3dfe133d0e5d799 (patch) | |
| tree | 5f82f1971c81034799bd5ab330e54b281020fc24 /meta/recipes-core/feed-config | |
| parent | 03d9669cbcc35a49120b9cc277723bccd93f4cf3 (diff) | |
| download | poky-79a4501a2ead92cb512eef0bd3dfe133d0e5d799.tar.gz | |
Complete packages -> recipes transition
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-core/feed-config')
| -rw-r--r-- | meta/recipes-core/feed-config/poky-feed-config-opkg_1.0.bb | 43 |
1 files changed, 43 insertions, 0 deletions
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 @@ | |||
| 1 | DESCRIPTION = "Poky example feed configuration" | ||
| 2 | LICENSE = "MIT" | ||
| 3 | |||
| 4 | PR = "r1" | ||
| 5 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 6 | |||
| 7 | #FEEDNAMEPREFIX ?= "INVALID" | ||
| 8 | #FEEDURIPREFIX ?= "INVALID" | ||
| 9 | |||
| 10 | do_compile() { | ||
| 11 | mkdir -p ${S}/${sysconfdir}/opkg/ | ||
| 12 | |||
| 13 | archconf=${S}/${sysconfdir}/opkg/arch.conf | ||
| 14 | |||
| 15 | rm -f $archconf | ||
| 16 | ipkgarchs="${PACKAGE_ARCHS}" | ||
| 17 | priority=1 | ||
| 18 | for arch in $ipkgarchs; do | ||
| 19 | echo "arch $arch $priority" >> $archconf | ||
| 20 | priority=$(expr $priority + 5) | ||
| 21 | done | ||
| 22 | |||
| 23 | basefeedconf=${S}/${sysconfdir}/opkg/base-feeds.conf | ||
| 24 | |||
| 25 | rm -f $basefeedconf | ||
| 26 | touch $basefeedconf | ||
| 27 | |||
| 28 | #for arch in $ipkgarchs; do | ||
| 29 | # echo "src/gz ${FEEDNAMEPREFIX}-$arch http://pokylinux.org/${FEEDURIPREFIX}$arch" >> $basefeedconf | ||
| 30 | #done | ||
| 31 | } | ||
| 32 | |||
| 33 | |||
| 34 | do_install () { | ||
| 35 | install -d ${D}${sysconfdir}/opkg | ||
| 36 | install -m 0644 ${S}/${sysconfdir}/opkg/* ${D}${sysconfdir}/opkg/ | ||
| 37 | } | ||
| 38 | |||
| 39 | FILES_${PN} = "${sysconfdir}/opkg/ " | ||
| 40 | |||
| 41 | CONFFILES_${PN} += "${sysconfdir}/opkg/base-feeds.conf \ | ||
| 42 | ${sysconfdir}/opkg/arch.conf" | ||
| 43 | |||
