[OE-core] [PATCH] mtd-utils: install libmtd and libubi static libraries
Stefano Babic
sbabic at denx.de
Mon Jan 2 16:44:55 UTC 2017
Hi Javier,
On 02/01/2017 17:20, Javier Viguera wrote:
> These two static libraries can be used to program custom applications to
> access MTD devices.
>
> For example an user of those libraries is 'swupdate' package from
> 'meta-swupdate'.
>
> Signed-off-by: Javier Viguera <javier.viguera at digi.com>
> ---
> meta/recipes-devtools/mtd/mtd-utils_git.bb | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/meta/recipes-devtools/mtd/mtd-utils_git.bb b/meta/recipes-devtools/mtd/mtd-utils_git.bb
> index 8a3afaf62b21..e83dfce11772 100644
> --- a/meta/recipes-devtools/mtd/mtd-utils_git.bb
> +++ b/meta/recipes-devtools/mtd/mtd-utils_git.bb
> @@ -31,6 +31,11 @@ EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} ${@bb
>
> do_install () {
> oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} INCLUDEDIR=${includedir}
> + # Install 'libubi' and 'libmtd' static libraries
> + install -d ${D}${includedir}/mtd
> + install -m 0644 include/libmtd.h include/mtd/ubi-media.h ubi-utils/include/libubi.h ${D}${includedir}/mtd/
> + oe_libinstall -a -C lib libmtd ${D}${libdir}
> + oe_libinstall -a -C ubi-utils libubi ${D}${libdir}
> }
>
> PACKAGES =+ "mtd-utils-jffs2 mtd-utils-ubifs mtd-utils-misc"
>
I am happy if this stuff is moved from meta-swupdate to oe-core - I will
remove the .bbappend from meta-swupdate if this go in.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
More information about the Openembedded-core
mailing list