blob: d6844b2aa49d2e1c0402a6b17c1d0d5cc3821a00 (
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
57
58
59
60
|
DESCRIPTION = "QCOM Firmware for DragonBoard 410c"
LICENSE = "Proprietary"
LIC_FILES_CHKSUM = "file://LICENSE;md5=4d087ee0965cb059f1b2f9429e166f64"
SRC_URI = "http://builds.96boards.org/releases/dragonboard410c/qualcomm/firmware/linux-board-support-package-r${PV}.zip;qcom-eula=true"
SRC_URI[md5sum] = "e1c7e8957b8f37a91cadc18c1aef5c04"
SRC_URI[sha256sum] = "a76405fae85399343bc421b6101ba765d92b3709f2d4ae8afe85dc300cf72c7e"
DEPENDS += "mtools-native"
COMPATIBLE_MACHINE = "(dragonboard-410c)"
PACKAGE_ARCH = "${MACHINE_ARCH}"
S = "${WORKDIR}/linux-board-support-package-r${PV}"
python do_unpack() {
eula = d.getVar('ACCEPT_EULA_'+d.getVar('MACHINE', True), True)
eula_file = d.getVar('QCOM_EULA_FILE', True)
pkg = d.getVar('PN', True)
if eula == None:
bb.fatal("To use '%s' you need to accept the EULA at '%s'. "
"Please read it and in case you accept it, write: "
"ACCEPT_EULA_dragonboard-410c = \"1\" in your local.conf." % (pkg, eula_file))
elif eula == '0':
bb.fatal("To use '%s' you need to accept the EULA." % pkg)
else:
bb.note("EULA has been accepted for '%s'" % pkg)
try:
bb.build.exec_func('base_do_unpack', d)
except:
raise
}
do_compile() {
:
}
do_install() {
install -d ${D}/lib/firmware/
cp -r ./proprietary-linux/* ${D}/lib/firmware/
MTOOLS_SKIP_CHECK=1 mcopy -i ./bootloaders-linux/NON-HLOS.bin \
::image/modem.* ::image/mba.mbn ::image/wcnss.* ${D}/lib/firmware/
# Venus firmware have been merged in linux-firmware in a different location than
# what we've been using for now. Let's add symlinks for now, until we switch to linux-firmware
install -d ${D}/lib/firmware/qcom/venus-1.8/
for f in ${D}/lib/firmware/venus.*; do
f=$(basename $f)
ln -s /lib/firmware/$f ${D}/lib/firmware/qcom/venus-1.8/$f
done
install -d ${D}${sysconfdir}/
install -m 0644 LICENSE ${D}${sysconfdir}/QCOM-LINUX-BOARD-SUPPORT-LICENSE
}
FILES_${PN} += "/lib/firmware/*"
INSANE_SKIP_${PN} += "arch"
|