Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame^] | 1 | SUMMARY = "Tool for creating device nodes" |
| 2 | LICENSE = "GPLv2" |
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" |
| 4 | SECTION = "base" |
| 5 | SRC_URI = "file://makedevs.c \ |
| 6 | file://COPYING.patch" |
| 7 | |
| 8 | S = "${WORKDIR}" |
| 9 | |
| 10 | FILES_${PN}_append_class-nativesdk = " ${datadir}" |
| 11 | |
| 12 | do_compile() { |
| 13 | ${CC} ${CFLAGS} ${LDFLAGS} -o ${S}/makedevs ${S}/makedevs.c |
| 14 | } |
| 15 | |
| 16 | do_install() { |
| 17 | install -d ${D}${base_sbindir} |
| 18 | install -m 0755 ${S}/makedevs ${D}${base_sbindir}/makedevs |
| 19 | } |
| 20 | |
| 21 | do_install_append_class-nativesdk() { |
| 22 | install -d ${D}${datadir} |
| 23 | install -m 644 ${COREBASE}/meta/files/device_table-minimal.txt ${D}${datadir}/ |
| 24 | } |
| 25 | |
| 26 | BBCLASSEXTEND = "native nativesdk" |