beaglebone-tester: A component-based test framework for BeagleBone
[glsdk/meta-ti-glsdk.git] / recipes-ti / beagleboard / beaglebone-tester.bb
1 DESCRIPTION = "BeagleBone tester scripts"
2 HOMEPAGE = "http://beagleboard.org/support"
4 LICENSE = "GPLv2"
5 LIC_FILES_CHKSUM="file://gpl.txt;md5=5b122a36d0f6dc55279a0ebc69f3c60b"
7 # only scripts and data
8 inherit allarch
10 SRC_URI = "git://github.com/joelagnel/validation-scripts.git;protocol=git \
11            file://0001-Initscript-check-for-run_hardware_tests-in-systemd-u.patch \
12           "
13 SRCREV = "1b0b8d45cf0718a1768503e8f7616aff6fc3ca03"
15 S = "${WORKDIR}/git"
17 do_install() {
18         install -d ${D}${localstatedir}/lib/bone-tester/component/data/
19         install -d ${D}${localstatedir}/lib/bone-tester/init-scripts/
20         install -d ${D}${localstatedir}/lib/bone-tester/lib
21         install -d ${D}${base_libdir}/systemd/system/multi-user.target.wants/
22         install -d ${D}/boot/
23         install -m 0755 ${S}/bone-tester/init-scripts/uEnv.txt ${D}/boot/uEnv.txt
25         # systemd configuration
26         ln -s ../bone-tester.service ${D}${base_libdir}/systemd/system/multi-user.target.wants/bone-tester.service
27         install -m 0755 ${S}/bone-tester/init-scripts/bone-tester.service ${D}${base_libdir}/systemd/system/bone-tester.service
28         install -m 0755 ${S}/bone-tester/init-scripts/init.sh ${D}${localstatedir}/lib/bone-tester/init-scripts/init.sh
30         for i in $(find ${S}/bone-tester/component/ -maxdepth 1 -type f) ; do
31                 install -m 0755 ${i} ${D}${localstatedir}/lib/bone-tester/component/
32         done
33         for i in ${S}/bone-tester/component/data/* ; do
34                 install -m 0755 ${i} ${D}${localstatedir}/lib/bone-tester/component/data/
35         done
36         for i in ${S}/bone-tester/lib/* ; do
37                 install -m 0755 ${i} ${D}${localstatedir}/lib/bone-tester/lib/
38         done
39 }
42 FILES_${PN} += "${base_libdir}/systemd \
43                 /boot \
44                "
46 RDEPENDS_${PN} = "iputils"
47 RRECOMMENDS_${PN} = "kernel-module-g-zero \
48                      kernel-module-g-file-storage \
49                      kernel-module-smsc95xx"