blob: 726a259a8c4b8f7e17c4ae616ccb91ec284db52d [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Architecture-dependent configuration for opkg"
Patrick Williams73bd93f2024-02-20 08:07:48 -06002HOMEPAGE = "https://git.yoctoproject.org/opkg/"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05003LICENSE = "MIT"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05004PACKAGE_ARCH = "${MACHINE_ARCH}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05005
6S = "${WORKDIR}"
7
8do_compile() {
9 mkdir -p ${S}/${sysconfdir}/opkg/
10
11 archconf=${S}/${sysconfdir}/opkg/arch.conf
12
13 rm -f $archconf
14 ipkgarchs="${ALL_MULTILIB_PACKAGE_ARCHS}"
15 priority=1
16 for arch in $ipkgarchs; do
17 echo "arch $arch $priority" >> $archconf
18 priority=$(expr $priority + 5)
19 done
20}
21
22
23do_install () {
24 install -d ${D}${sysconfdir}/opkg
25 install -m 0644 ${S}/${sysconfdir}/opkg/* ${D}${sysconfdir}/opkg/
26}
27
Patrick Williams213cb262021-08-07 19:21:33 -050028FILES:${PN} = "${sysconfdir}/opkg/ "
Patrick Williamsc124f4f2015-09-15 14:41:29 -050029
Patrick Williams213cb262021-08-07 19:21:33 -050030CONFFILES:${PN} += "${sysconfdir}/opkg/arch.conf"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050031
Patrick Williams213cb262021-08-07 19:21:33 -050032RREPLACES:${PN} = "opkg-config-base"
33RCONFLICTS:${PN} = "opkg-config-base"
34RPROVIDES:${PN} = "opkg-config-base"