blob: 0d6c7a01ebf06d87c7978c20c2d1ae9fdc650f0a [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"
Andrew Geissler78b72792022-06-14 06:47:25 -05004LIC_FILES_CHKSUM = "file://makedevs.c;beginline=2;endline=2;md5=c3817b10013a30076c68a90e40a55570"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05005SECTION = "base"
Andrew Geissler78b72792022-06-14 06:47:25 -05006SRC_URI = "file://makedevs.c"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05007
8S = "${WORKDIR}"
9
Patrick Williams213cb262021-08-07 19:21:33 -050010FILES:${PN}:append:class-nativesdk = " ${datadir}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050011
12do_compile() {
13 ${CC} ${CFLAGS} ${LDFLAGS} -o ${S}/makedevs ${S}/makedevs.c
14}
15
16do_install() {
17 install -d ${D}${base_sbindir}
18 install -m 0755 ${S}/makedevs ${D}${base_sbindir}/makedevs
19}
20
Patrick Williams213cb262021-08-07 19:21:33 -050021do_install:append:class-nativesdk() {
Patrick Williamsc124f4f2015-09-15 14:41:29 -050022 install -d ${D}${datadir}
23 install -m 644 ${COREBASE}/meta/files/device_table-minimal.txt ${D}${datadir}/
24}
25
26BBCLASSEXTEND = "native nativesdk"