mtd-utils: export headers and libraries for MTD and UBI
PATCH 1/1 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.
--- meta/recipes-devtools/mtd/mtd-utils_git.bb | 8 ++++++++ 1 file changed, 8 insertions(+)
meta/recipes-devtools/mtd/mtd-utils_git.bb +8 -0
@@ -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"
Signature · 1 line
2.34.1
Quoted 3 lines · Stefano Babic
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.
Does upstream plan to turn these into a shared library if people are using them like this?
Cheers,
Richard
Hi Richard,
Quoted 7 lines · Richard Purdie
Quoted 3 lines · Stefano Babic
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.
Does upstream plan to turn these into a shared library if people are using them like this?
Not yet, I will push changes if this happen. I am not sure if tthis can be done soon: mtd-utils and these libraries are GPL-2 and not LGPL, and they can be used just by GPL2 compliant projects.
Best regards,
Stefano
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================