blob: d25cba7fb2b12f097cccc814e8f96dc64bec199c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
DESCRIPTION = "Configuration files for online package repositories aka feeds"
RRECOMMENDS_${PN} += "opkg-nogpg-nocurl"
#PV = "${DISTRO_VERSION}"
PR = "r11"
PACKAGE_ARCH = "${MACHINE_ARCH}"
FEED_BASEPATH ?= "unstable/feed/"
IWMMXT_FEED = "${@base_contains('MACHINE_FEATURES', 'iwmmxt', 'iwmmxt', '',d)}"
do_compile() {
mkdir -p ${S}/${sysconfdir}/opkg
rm ${S}/${sysconfdir}/opkg/arch.conf || true
ipkgarchs="${PACKAGE_ARCHS}"
priority=1
for arch in $ipkgarchs; do
echo "arch $arch $priority" >> ${S}/${sysconfdir}/opkg/arch.conf
priority=$(expr $priority + 5)
done
for feed in base debug perl python gstreamer ; do
echo "src/gz ${feed} ${ANGSTROM_URI}/${FEED_BASEPATH}${FEED_ARCH}/${feed}" > ${S}/${sysconfdir}/opkg/${feed}-feed.conf
done
echo "src/gz ${MACHINE_ARCH} ${ANGSTROM_URI}/${FEED_BASEPATH}${FEED_ARCH}/machine/${MACHINE_ARCH}" > ${S}/${sysconfdir}/opkg/${MACHINE_ARCH}-feed.conf
echo "#src/gz sdk ${ANGSTROM_URI}/${FEED_BASEPATH}sdk" > ${S}/${sysconfdir}/opkg/sdk-feed.conf
echo "src/gz no-arch ${ANGSTROM_URI}/${FEED_BASEPATH}all" > ${S}/${sysconfdir}/opkg/noarch-feed.conf
# iwmmxt is a special case, add the iwmmxt feed for machine that have 'iwmmxt' in MACHINE_FEATURES
if [ "${IWMMXT_FEED}" = "iwmmxt" ] ; then
echo "src/gz iwmmxt ${ANGSTROM_URI}/${FEED_BASEPATH}iwmmxt/base" > ${S}/${sysconfdir}/opkg/iwmmxt-feed.conf
fi
for localepkg in a af am an ang ar as ast ay az be bg bn br bs byn ca co crh cs csb cy da de dv dz el en eo es et eu fa ff fi fo fr fur fy ga gd gez gl gn gu gv ha haw he hi hr hsb ht hu hy ia id ig io is it iu iw ja ka kk kl km kn ko kok ks ku kw ky la lg li lo locale lt lv mai mg mi mk ml mn mr ms mt mvo my nb ne nl nn no nr nso oc om or pa pap pis pl ps pt qu ro ru rw sa sd se si sid sk sl so sp sq sr ss st sv sw syr ta te tet tg th ti tig tk tl tn tpi tr ts tt ug uk ur uz ve vi wa wal wo xh yi yo zh zu ; do
echo "src/gz locale-${localepkg}-feed ${ANGSTROM_URI}/${FEED_BASEPATH}${FEED_ARCH}/locales/${localepkg}" > ${S}/${sysconfdir}/opkg/locale-${localepkg}-feed.conf
done
}
do_install () {
install -d ${D}${sysconfdir}/opkg
install -m 0644 ${S}/${sysconfdir}/opkg/* ${D}${sysconfdir}/opkg/
}
FILES_${PN} = "${sysconfdir}/opkg/base-feed.conf \
${sysconfdir}/opkg/debug-feed.conf \
${sysconfdir}/opkg/perl-feed.conf \
${sysconfdir}/opkg/python-feed.conf \
${sysconfdir}/opkg/gstreamer-feed.conf \
${sysconfdir}/opkg/${MACHINE_ARCH}-feed.conf \
${sysconfdir}/opkg/noarch-feed.conf \
${sysconfdir}/opkg/iwmmxt-feed.conf \
${sysconfdir}/opkg/sdk-feed.conf \
${sysconfdir}/opkg/arch.conf \
"
CONFFILES_${PN} += "${sysconfdir}/opkg/base-feed.conf \
${sysconfdir}/opkg/debug-feed.conf \
${sysconfdir}/opkg/perl-feed.conf \
${sysconfdir}/opkg/python-feed.conf \
${sysconfdir}/opkg/gstreamer-feed.conf \
${sysconfdir}/opkg/${MACHINE_ARCH}-feed.conf \
${sysconfdir}/opkg/noarch-feed.conf \
${sysconfdir}/opkg/sdk-feed.conf \
${sysconfdir}/opkg/arch.conf \
"
python populate_packages_prepend () {
etcdir = bb.data.expand('${sysconfdir}/opkg', d)
do_split_packages(d, etcdir, '^locale-(.*)\.conf$', 'angstrom-locale-%s-config', 'Angstrom feed config for the %s locale', extra_depends='', allow_links=True)
}
|