mtd-utils-1.0.0+git: Install headers for -dev.
authorLeon Woestenberg <leon.woestenberg@gmail.com>
Fri, 29 Feb 2008 22:21:17 +0000 (22:21 +0000)
committerLeon Woestenberg <leon.woestenberg@gmail.com>
Fri, 29 Feb 2008 22:21:17 +0000 (22:21 +0000)
packages/mtd/mtd-utils_1.0.0+git.bb

index d4e67f3..42d92ed 100644 (file)
@@ -3,7 +3,7 @@ SECTION = "base"
 DEPENDS = "zlib lzo"
 HOMEPAGE = "http://www.linux-mtd.infradead.org/"
 LICENSE = "GPLv2"
-PR = "r7"
+PR = "r8"
 
 # This is the default package, thus we lock to a specific git version so 
 # upstream changes will not break builds.
@@ -36,11 +36,16 @@ mtd_utils = "ftl_format flash_erase flash_eraseall nanddump doc_loadbios \
 
 do_install () {
        install -d ${D}${bindir}
+       install -d ${D}${includedir}
        for binary in ${mtd_utils}; do
                install -m 0755 $binary ${D}${bindir}
        done
+       for f in ${S}/include/mtd/*.h; do
+               install -m 0644 $f ${D}${includedir}
+       done
 }
 
 PACKAGES =+ "mkfs-jffs mkfs-jffs2"
 FILES_mkfs-jffs = "${bindir}/mkfs.jffs"
 FILES_mkfs-jffs2 = "${bindir}/mkfs.jffs2"
+