Skip to content

Commit b2f7a63

Browse files
author
Alex J Lennon
committed
Fix board-scripts recipe for imx8mm-jaguar-inst: add conditional install check
1 parent edd7fc9 commit b2f7a63

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
2+
3+
LICENSE = "GPL-3.0-only"
4+
LIC_FILES_CHKSUM ?= "file://${COMMON_LICENSE_DIR}/GPL-3.0-only;md5=c79ff39f19dfec6d293b95dea7b07891"
5+
6+
SRC_URI:append:imx8mm-jaguar-sentai = " \
7+
file://board-info.sh \
8+
file://test-leds-hb.sh \
9+
file://test-leds-rc.sh \
10+
file://set-fio-passwd.sh \
11+
file://enable-firewall.sh \
12+
file://test-audio-hw.sh \
13+
file://dtmf-182846.wav \
14+
file://board-testing-now-starting-up.wav \
15+
file://tests-all-completed.wav \
16+
file://test-audio-play-and-record.sh \
17+
file://AudioTest-Microphone-One.wav \
18+
file://AudioTest-Microphone-Two.wav \
19+
file://AudioTest-Recording-Will-Now-Play-Back.wav \
20+
file://AudioTest-Recording-Should-Have-Played.wav \
21+
file://production-test.sh \
22+
"
23+
24+
SRC_URI:append:imx8mm-jaguar-inst = " \
25+
file://board-info.sh \
26+
file://set-fio-passwd.sh \
27+
file://enable-firewall.sh \
28+
"
29+
30+
do_install() {
31+
install -d ${D}${sbindir}
32+
if [ -n "$(ls -A ${WORKDIR}/*.sh 2>/dev/null)" ]; then
33+
install -m 0755 ${WORKDIR}/*.sh ${D}${sbindir}
34+
fi
35+
}
36+
37+
do_install:append:imx8mm-jaguar-sentai() {
38+
install -d ${D}${datadir}/${PN}
39+
install -m 0755 ${WORKDIR}/*.wav ${D}${datadir}/${PN}
40+
}
41+
42+
RDEPENDS:${PN}:imx8mm-jaguar-sentai = "dtmf2num"

0 commit comments

Comments
 (0)