]> code.ossystems Code Review - openembedded-core.git/commitdiff
makedevs: Add device_table-minimal.txt to the nativesdk sysroot
authorDavid Nyström <david.c.nystrom@gmail.com>
Thu, 26 Sep 2013 10:47:22 +0000 (12:47 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Sep 2013 16:50:27 +0000 (17:50 +0100)
Add an example device_table in the SDK under /usr/share/

Signed-off-by: David Nyström <david.nystrom@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/makedevs/makedevs_1.0.0.bb

index e6860f0c13367e033bb88a824b72b6c2ed3c522e..6e197b6e7490c03fd700af08118d9994abdcdf1b 100644 (file)
@@ -6,6 +6,8 @@ SRC_URI = "file://makedevs.c \
            file://COPYING.patch"
 PR = "r7"
 
+FILES_${PN}_append_class-nativesdk = " ${datadir}"
+
 do_configure() {
        install -m 0644 ${WORKDIR}/makedevs.c ${S}/
 }
@@ -19,4 +21,9 @@ do_install() {
        install -m 0755 ${S}/makedevs ${D}${base_sbindir}/makedevs
 }
 
+do_install_append_class-nativesdk() {
+        install -d ${D}${datadir}
+        install -m 644 ${COREBASE}/meta/files/device_table-minimal.txt ${D}${datadir}/
+}
+
 BBCLASSEXTEND = "native nativesdk"