summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/mtd
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2023-06-02 13:24:26 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-06-13 22:10:32 +0100
commit01aacb49eaa4c8823662b986634385b258c405b1 (patch)
tree6f1f3871e8bfedd86188b52d955e6519543744ae /meta/recipes-devtools/mtd
parent40e08f21efd2c8e97a8b571debe7c0a420bee097 (diff)
downloadpoky-01aacb49eaa4c8823662b986634385b258c405b1.tar.gz
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>
Diffstat (limited to 'meta/recipes-devtools/mtd')
-rw-r--r--meta/recipes-devtools/mtd/mtd-utils_git.bb8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/recipes-devtools/mtd/mtd-utils_git.bb b/meta/recipes-devtools/mtd/mtd-utils_git.bb
index 2d76991d2f..cdcc766748 100644
--- a/meta/recipes-devtools/mtd/mtd-utils_git.bb
+++ b/meta/recipes-devtools/mtd/mtd-utils_git.bb
@@ -55,6 +55,14 @@ ALTERNATIVE_LINK_NAME[flashcp] = "${sbindir}/flashcp"
55 55
56do_install () { 56do_install () {
57 oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} INCLUDEDIR=${includedir} 57 oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} INCLUDEDIR=${includedir}
58 install -d ${D}${includedir}/mtd
59 install -d ${D}${libdir}
60 install -m 0644 ${S}/include/libubi.h ${D}${includedir}
61 install -m 0644 ${S}/include/libmtd.h ${D}${includedir}
62 install -m 0644 ${S}/include/libscan.h ${D}${includedir}
63 install -m 0644 ${S}/include/libubigen.h ${D}${includedir}
64 oe_libinstall -a libubi ${D}${libdir}/
65 oe_libinstall -a libmtd ${D}${libdir}/
58} 66}
59 67
60PACKAGES =+ "mtd-utils-misc mtd-utils-tests" 68PACKAGES =+ "mtd-utils-misc mtd-utils-tests"