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