blob: 66b98a4c993224e15396f6eaf6b924a569437464 (
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
|
DESCRIPTION = "BeagleBone tester scripts"
HOMEPAGE = "http://beagleboard.org/support"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM="file://gpl.txt;md5=5b122a36d0f6dc55279a0ebc69f3c60b"
# only scripts and data
inherit allarch
PR = "r20"
SRC_URI = "git://github.com/koenkooi/validation-scripts.git;protocol=git \
"
SRCREV = "487a13e2e4faaafa40ba5430600e6aeecf9581a8"
S = "${WORKDIR}/git"
do_install() {
install -d ${D}${localstatedir}/lib/bone-tester/component/data/
install -d ${D}${localstatedir}/lib/bone-tester/init-scripts/
install -d ${D}${localstatedir}/lib/bone-tester/lib
install -d ${D}${base_libdir}/systemd/system/multi-user.target.wants/
install -d ${D}/boot/
install -m 0755 ${S}/bone-tester/init-scripts/uEnv.txt ${D}/boot/uEnv.txt
# systemd configuration
ln -s ../bone-tester.service ${D}${base_libdir}/systemd/system/multi-user.target.wants/bone-tester.service
install -m 0755 ${S}/bone-tester/init-scripts/bone-tester.service ${D}${base_libdir}/systemd/system/bone-tester.service
install -m 0755 ${S}/bone-tester/init-scripts/init.sh ${D}${localstatedir}/lib/bone-tester/init-scripts/init.sh
for i in $(find ${S}/bone-tester/component/ -maxdepth 1 -type f) ; do
install -m 0755 ${i} ${D}${localstatedir}/lib/bone-tester/component/
done
for i in ${S}/bone-tester/component/data/* ; do
install -m 0755 ${i} ${D}${localstatedir}/lib/bone-tester/component/data/
done
for i in ${S}/bone-tester/lib/* ; do
install -m 0755 ${i} ${D}${localstatedir}/lib/bone-tester/lib/
done
install -d ${D}${bindir}
install -m 0755 ${S}/testaudio ${D}${bindir}
}
FILES_${PN} += "${base_libdir}/systemd \
/boot \
"
RDEPENDS_${PN} = "alsa-utils-aplay sox iputils memtester"
RRECOMMENDS_${PN} = "kernel-module-g-zero \
kernel-module-g-mass-storage \
kernel-module-g-file-storage \
kernel-module-smsc95xx"
|