1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 00:20:08 +00:00
Files
poky/meta/recipes-devtools/opkg/opkg-arch-config_1.0.bb
T
Richard Purdie bb6ddc3691 Convert to new override syntax
This is the result of automated script conversion:

scripts/contrib/convert-overrides.py <oe-core directory>

converting the metadata to use ":" as the override character instead of "_".

(From OE-Core rev: 42344347be29f0997cc2f7636d9603b1fe1875ae)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-08-02 15:44:10 +01:00

36 lines
786 B
BlitzBasic

SUMMARY = "Architecture-dependent configuration for opkg"
HOMEPAGE = "http://code.google.com/p/opkg/"
LICENSE = "MIT"
PACKAGE_ARCH = "${MACHINE_ARCH}"
PR = "r1"
S = "${WORKDIR}"
do_compile() {
mkdir -p ${S}/${sysconfdir}/opkg/
archconf=${S}/${sysconfdir}/opkg/arch.conf
rm -f $archconf
ipkgarchs="${ALL_MULTILIB_PACKAGE_ARCHS}"
priority=1
for arch in $ipkgarchs; do
echo "arch $arch $priority" >> $archconf
priority=$(expr $priority + 5)
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/arch.conf"
RREPLACES:${PN} = "opkg-config-base"
RCONFLICTS:${PN} = "opkg-config-base"
RPROVIDES:${PN} = "opkg-config-base"