blob: 3aaebae3ead5016cc2e1154e42f9cf81e02f86e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
SUMMARY = "DE-Nano Units to initialize usb gadgets"
DESCRIPTION = "Scripts to start usb gadget for usb mass storage, ethernet, and serial interfaces"
AUTHOR = "Dalon Westergreen <dwesterg@gmail.com>"
SECTION = "DE10-Nano"
PR = "r0"
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
inherit systemd
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
PACKAGE_ARCH = "${MACHINE_ARCH}"
SRCREV = "e191339d28d6d26ea5a9a5aedf3c04047cc04963"
PV = "1.0${PR}+git${SRCPV}"
SRC_URI = "file://de10-nano-gadget-init.service \
file://udhcpd.conf \
file://de10-nano-gadget-init.sh \
git://github.com/01org/de10-nano-drivers.git;protocol=https \
"
do_install() {
install -d ${D}${base_libdir}/systemd/system
install -m 0644 ${WORKDIR}/*.service ${D}${base_libdir}/systemd/system
install -d ${D}${sysconfdir}
install -m 0644 ${WORKDIR}/*.conf ${D}${sysconfdir}
install -d ${D}${bindir}
install -m 0755 ${WORKDIR}/*.sh ${D}${bindir}
install -d ${D}${sysconfdir}/systemd/system/getty.target.wants
( cd ${D}${sysconfdir}/systemd/system/getty.target.wants && ln -s /lib/systemd/system/serial-getty@.service serial-getty@ttyGS0.service )
install -d ${D}${datadir}/${PN}
tar -xzvf ${WORKDIR}/git/fat_image.img.tgz -C ${D}${datadir}/${PN}
}
PACKAGES =+ "${PN}-network ${PN}-udhcpd"
ALLOW_EMPTY_${PN} = "1"
FILES_${PN} = "${base_libdir}/systemd/system/de10-nano-gadget-init.service \
${sysconfdir}/systemd/ \
${datadir}/${PN}/ \
${datadir}/${PN}/fat_image.img \
"
FILES_${PN}-network = "${base_libdir}/systemd/system/network-gadget-init.service \
${bindir}/de10-nano-gadget-init.sh \
${datadir}/${PN}"
FILES_${PN}-udhcpd = "${sysconfdir}/udhcpd.conf"
RRECOMMENDS_${PN} = "${PN}-network ${PN}-udhcpd"
RREPLACES_${PN} = "${PN}-storage"
NATIVE_SYSTEMD_SUPPORT = "1"
SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE_${PN} = "de10-nano-gadget-init.service"
|