blob: 007ebbca89f8cd048fd05d7ffc0286fd3c12b421 [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}"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00003LICENSE = "GPL-2.0-only"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05004LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
5SECTION = "base"
6SRC_URI = "file://makedevs.c \
7 file://COPYING.patch"
8
9S = "${WORKDIR}"
10
Patrick Williams213cb262021-08-07 19:21:33 -050011FILES:${PN}:append:class-nativesdk = " ${datadir}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050012
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
Patrick Williams213cb262021-08-07 19:21:33 -050022do_install:append:class-nativesdk() {
Patrick Williamsc124f4f2015-09-15 14:41:29 -050023 install -d ${D}${datadir}
24 install -m 644 ${COREBASE}/meta/files/device_table-minimal.txt ${D}${datadir}/
25}
26
27BBCLASSEXTEND = "native nativesdk"