diff options
| author | Stefano Babic <sbabic@denx.de> | 2023-06-02 13:24:26 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-06-13 22:10:32 +0100 |
| commit | 01aacb49eaa4c8823662b986634385b258c405b1 (patch) | |
| tree | 6f1f3871e8bfedd86188b52d955e6519543744ae | |
| parent | 40e08f21efd2c8e97a8b571debe7c0a420bee097 (diff) | |
| download | poky-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>
| -rw-r--r-- | meta/recipes-devtools/mtd/mtd-utils_git.bb | 8 |
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 | ||
| 56 | do_install () { | 56 | do_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 | ||
| 60 | PACKAGES =+ "mtd-utils-misc mtd-utils-tests" | 68 | PACKAGES =+ "mtd-utils-misc mtd-utils-tests" |
