summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/feed-config/poky-feed-config-opkg_1.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/feed-config/poky-feed-config-opkg_1.0.bb')
-rw-r--r--meta/recipes-core/feed-config/poky-feed-config-opkg_1.0.bb44
1 files changed, 44 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 0000000..fb312f8
--- /dev/null
+++ b/meta/recipes-core/feed-config/poky-feed-config-opkg_1.0.bb
@@ -0,0 +1,44 @@
1SUMMARY = "Poky example feed configuration"
2LICENSE = "MIT"
3LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
4PR = "r2"
5PACKAGE_ARCH = "${MACHINE_ARCH}"
6INHIBIT_DEFAULT_DEPS = "1"
7
8#FEEDNAMEPREFIX ?= "INVALID"
9#FEEDURIPREFIX ?= "INVALID"
10
11do_compile() {
12 mkdir -p ${S}/${sysconfdir}/opkg/
13
14 archconf=${S}/${sysconfdir}/opkg/arch.conf
15
16 rm -f $archconf
17 ipkgarchs="${ALL_MULTILIB_PACKAGE_ARCHS}"
18 priority=1
19 for arch in $ipkgarchs; do
20 echo "arch $arch $priority" >> $archconf
21 priority=$(expr $priority + 5)
22 done
23
24 basefeedconf=${S}/${sysconfdir}/opkg/base-feeds.conf
25
26 rm -f $basefeedconf
27 touch $basefeedconf
28
29 #for arch in $ipkgarchs; do
30 # echo "src/gz ${FEEDNAMEPREFIX}-$arch http://pokylinux.org/${FEEDURIPREFIX}$arch" >> $basefeedconf
31 #done
32}
33
34
35do_install () {
36 install -d ${D}${sysconfdir}/opkg
37 install -m 0644 ${S}/${sysconfdir}/opkg/* ${D}${sysconfdir}/opkg/
38}
39
40FILES_${PN} = "${sysconfdir}/opkg/ "
41
42CONFFILES_${PN} += "${sysconfdir}/opkg/base-feeds.conf \
43 ${sysconfdir}/opkg/arch.conf"
44