README: refer to toolchain-layer in meta-openembedded
[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 PR = "r13"
12 SRC_URI = "git://github.com/koenkooi/validation-scripts.git;protocol=git \
13           "
14 SRCREV = "dc89e2d6b2ac0238a7aa5a334d7c86d7b8613837"
16 S = "${WORKDIR}/git"
18 do_install() {
19         install -d ${D}${localstatedir}/lib/bone-tester/component/data/
20         install -d ${D}${localstatedir}/lib/bone-tester/init-scripts/
21         install -d ${D}${localstatedir}/lib/bone-tester/lib
22         install -d ${D}${base_libdir}/systemd/system/multi-user.target.wants/
23         install -d ${D}/boot/
24         install -m 0755 ${S}/bone-tester/init-scripts/uEnv.txt ${D}/boot/uEnv.txt
26         # systemd configuration
27         ln -s ../bone-tester.service ${D}${base_libdir}/systemd/system/multi-user.target.wants/bone-tester.service
28         install -m 0755 ${S}/bone-tester/init-scripts/bone-tester.service ${D}${base_libdir}/systemd/system/bone-tester.service
29         install -m 0755 ${S}/bone-tester/init-scripts/init.sh ${D}${localstatedir}/lib/bone-tester/init-scripts/init.sh
31         for i in $(find ${S}/bone-tester/component/ -maxdepth 1 -type f) ; do
32                 install -m 0755 ${i} ${D}${localstatedir}/lib/bone-tester/component/
33         done
34         for i in ${S}/bone-tester/component/data/* ; do
35                 install -m 0755 ${i} ${D}${localstatedir}/lib/bone-tester/component/data/
36         done
37         for i in ${S}/bone-tester/lib/* ; do
38                 install -m 0755 ${i} ${D}${localstatedir}/lib/bone-tester/lib/
39         done
40 }
43 FILES_${PN} += "${base_libdir}/systemd \
44                 /boot \
45                "
47 RDEPENDS_${PN} = "iputils memtester"
48 RRECOMMENDS_${PN} = "kernel-module-g-zero \
49                      kernel-module-g-mass-storage \
50                      kernel-module-g-file-storage \
51                      kernel-module-smsc95xx"