mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 18:32:13 +02:00
* it's not recommended to change this value, because it breaks upgrade path on target
(all old u-a alternatives are forgot in old OPKGLIBDIR value
* but make it consistent, so if someone really want to change that, then
setting OPKGLIBDIR_distro in distro.conf would be enough
* without this there were at least 4 places to change:
rootfs_ipk: opkglibdir variable (notice that I've removed /opkg from it to correspond
with EXTRA_OECONF option used in opkg recipes
package_ipk: ${target_rootfs}${localstatedir}/lib/opkg/ hardcoded in
package_install_internal_ipk
opkg-collateral: value in lists file
opkg: EXTRA_OECONF for all 3 classes, FILES_libopkg, do_install
* validated with buildhistory that without OPKGLIBDIR explicitly set the
output is the same and that after setting
OPKGLIBDIR_forcevariable := "${libdir}"
everything including empty directory from package_ipk is moved to
libdir
(From OE-Core rev: cf0aa9c4fdae8855803e96b1922d54a2431795d3)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
25 lines
691 B
BlitzBasic
25 lines
691 B
BlitzBasic
DESCRIPTION = "opkg configuration files"
|
|
SECTION = "base"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
|
PR = "r2"
|
|
|
|
SRC_URI = "file://opkg.conf.comments \
|
|
file://dest \
|
|
file://src "
|
|
|
|
OPKGLIBDIR = "${localstatedir}/lib"
|
|
do_compile () {
|
|
cat ${WORKDIR}/opkg.conf.comments >${WORKDIR}/opkg.conf
|
|
cat ${WORKDIR}/src >>${WORKDIR}/opkg.conf
|
|
cat ${WORKDIR}/dest >>${WORKDIR}/opkg.conf
|
|
echo "lists_dir ext ${OPKGLIBDIR}/opkg" >>${WORKDIR}/opkg.conf
|
|
}
|
|
|
|
do_install () {
|
|
install -d ${D}${sysconfdir}/opkg
|
|
install -m 0644 ${WORKDIR}/opkg.conf ${D}${sysconfdir}/opkg/opkg.conf
|
|
}
|
|
|
|
CONFFILES_${PN} = "${sysconfdir}/opkg/opkg.conf"
|