Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
DESCRIPTION = "opkg configuration files"
SECTION = "base"
LICENSE = "MIT"
-PR = "r1"
+PR = "r2"
SRC_URI = "file://opkg.conf.comments \
file://lists \
file://dest \
+ file://tmp_dir \
file://src "
do_compile () {
cat ${WORKDIR}/lists >>${WORKDIR}/opkg.conf
}
+do_compile_append_shr () {
+ cat ${WORKDIR}/tmp_dir >>${WORKDIR}/opkg.conf
+}
+
do_install () {
install -d ${D}${sysconfdir}/opkg
install -m 0644 ${WORKDIR}/opkg.conf ${D}${sysconfdir}/opkg/opkg.conf
}
+do_install_append_shr () {
+ install -d ${D}/var/lib/opkg/tmp
+}
+
CONFFILES_${PN} = "${sysconfdir}/opkg/opkg.conf"
--- /dev/null
+# We have whole /tmp in volatile tmpfs which is better than wear leveling NAND or uSD
+# But also bad for big upgrades where tmpfs eats whole memory,
+# device starts swapping (possibly using more NAND/uSD than temporary unpack) and then segfaults because of lack of space
+option tmp_dir /var/lib/opkg/tmp