1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 17:19:20 +00:00

mtd-utils: export headers and libraries for MTD and UBI

Mtd-utils has internal libraries (libmtd and libubi) that simplify the
usage and access, and they can be used by applications to access MTD
devices without reinventing the code.

(From OE-Core rev: bc85c9a94d0cec4991b4e0491ca973620fe71201)

Signed-off-by: Stefano Babic <sbabic@denx.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Stefano Babic
2023-06-02 13:24:26 +02:00
committed by Richard Purdie
parent 40e08f21ef
commit 01aacb49ea
@@ -55,6 +55,14 @@ ALTERNATIVE_LINK_NAME[flashcp] = "${sbindir}/flashcp"
do_install () {
oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} INCLUDEDIR=${includedir}
install -d ${D}${includedir}/mtd
install -d ${D}${libdir}
install -m 0644 ${S}/include/libubi.h ${D}${includedir}
install -m 0644 ${S}/include/libmtd.h ${D}${includedir}
install -m 0644 ${S}/include/libscan.h ${D}${includedir}
install -m 0644 ${S}/include/libubigen.h ${D}${includedir}
oe_libinstall -a libubi ${D}${libdir}/
oe_libinstall -a libmtd ${D}${libdir}/
}
PACKAGES =+ "mtd-utils-misc mtd-utils-tests"