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}" |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame^] | 3 | LICENSE = "GPL-2.0-only" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 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 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 11 | FILES:${PN}:append:class-nativesdk = " ${datadir}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 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 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 22 | do_install:append:class-nativesdk() { |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 23 | install -d ${D}${datadir} |
| 24 | install -m 644 ${COREBASE}/meta/files/device_table-minimal.txt ${D}${datadir}/ |
| 25 | } |
| 26 | |
| 27 | BBCLASSEXTEND = "native nativesdk" |