blob: 49cb4d25d73f64fe5b34762d8fdc5d35ff453a2e (
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
|
LIC_FILES_CHKSUM = "file://${WORKDIR}/git/rsi/apps/onebox_util.c;beginline=5;endline=17;md5=de9e3b7d092ee142ef090acc79db39c1"
LICENSE = "CLOSED"
PR = "r2"
RDEPENDS_${PN} += "bash"
SRCREV = "v${PV}"
SRC_URI = "git://github.com/SiliconLabs/RS911X-nLink-OSD.git;protocol=https \
file://onebox_util.sh \
"
S = "${WORKDIR}/git/rsi/apps"
FILES_${PN} = "${base_libdir} ${prefix} /opt"
TARGET_CC_ARCH += "${LDFLAGS}"
do_install() {
instdir="${D}/opt/rs9113"
install -m 0755 -d ${D}${prefix}/share/${PN}
sed -n '5,17p' ${S}/onebox_util.c >${D}${prefix}/share/${PN}/LICENSE
install -m 0755 -d ${instdir}
cd "${S}"
for f in $(find . -type f) ; do
if file "$f" | grep ELF ; then
if [ "$f" = "./onebox_util" ] ; then
install -m 0755 $f ${instdir}/onebox_util_rsi
else
install -m 0755 $f ${instdir}
fi
fi
done
install -m 0755 ${WORKDIR}/onebox_util.sh ${instdir}/onebox_util
}
|