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