Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Javier Viguera <javier.viguera@digi.com>
To: <openembedded-core@lists.openembedded.org>
Subject: [PATCH] mtd-utils: install libmtd and libubi static libraries
Date: Mon, 2 Jan 2017 17:20:25 +0100	[thread overview]
Message-ID: <20170102162025.10154-1-javier.viguera@digi.com> (raw)

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@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"


             reply	other threads:[~2017-01-02 16:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-02 16:20 Javier Viguera [this message]
2017-01-02 16:44 ` [PATCH] mtd-utils: install libmtd and libubi static libraries Stefano Babic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170102162025.10154-1-javier.viguera@digi.com \
    --to=javier.viguera@digi.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox