blob: 92d5870f42a8bc8e7c9ac8f7566b59a8f3c1e800 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Tool for creating device nodes"
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
4SECTION = "base"
5SRC_URI = "file://makedevs.c \
6 file://COPYING.patch"
7
8S = "${WORKDIR}"
9
10FILES_${PN}_append_class-nativesdk = " ${datadir}"
11
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
21do_install_append_class-nativesdk() {
22 install -d ${D}${datadir}
23 install -m 644 ${COREBASE}/meta/files/device_table-minimal.txt ${D}${datadir}/
24}
25
26BBCLASSEXTEND = "native nativesdk"