diff options
Diffstat (limited to 'recipes-bsp/firmware-imx/firmware-imx_7.6.bb')
-rw-r--r-- | recipes-bsp/firmware-imx/firmware-imx_7.6.bb | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/recipes-bsp/firmware-imx/firmware-imx_7.6.bb b/recipes-bsp/firmware-imx/firmware-imx_7.6.bb new file mode 100644 index 00000000..4f75ac0d --- /dev/null +++ b/recipes-bsp/firmware-imx/firmware-imx_7.6.bb | |||
@@ -0,0 +1,93 @@ | |||
1 | # Copyright (C) 2012-2016 Freescale Semiconductor | ||
2 | # Copyright 2017-2018 NXP | ||
3 | # Copyright (C) 2018 O.S. Systems Software LTDA. | ||
4 | SUMMARY = "Freescale IMX firmware" | ||
5 | DESCRIPTION = "Freescale IMX firmware such as for the VPU" | ||
6 | SECTION = "base" | ||
7 | LICENSE = "Proprietary" | ||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=ab61cab9599935bfe9f700405ef00f28" | ||
9 | |||
10 | PE = "1" | ||
11 | |||
12 | SRCBRANCH ?= "master" | ||
13 | SRC_URI = "${FSL_MIRROR}/firmware-imx-${PV}.bin;fsl-eula=true \ | ||
14 | git://github.com/NXP/imx-firmware.git;protocol=https;branch=${SRCBRANCH};destsuffix=${S}/git" | ||
15 | |||
16 | #BRCM firmware git | ||
17 | SRCREV = "8ce9046f5058fdd2c5271f86ccfc61bc5a248ae3" | ||
18 | |||
19 | SRC_URI[md5sum] = "3f6a00c3dfc0693c050bf39824865d28" | ||
20 | SRC_URI[sha256sum] = "6c1e4d4f33b216f69eb46a6dff7a3e10d722afb694acd412c5398ccc270f8a9c" | ||
21 | |||
22 | inherit fsl-eula-unpack allarch | ||
23 | |||
24 | do_install() { | ||
25 | install -d ${D}${base_libdir}/firmware/imx | ||
26 | install -d ${D}${base_libdir}/firmware/bcm | ||
27 | install -d ${D}${sysconfdir}/firmware | ||
28 | |||
29 | cp -rfv firmware/* ${D}${base_libdir}/firmware/ | ||
30 | |||
31 | # FIXME: This need to be removed when iMX8 is integrated. | ||
32 | rm -rf ${D}${base_libdir}/firmware/ddr \ | ||
33 | ${D}${base_libdir}/firmware/hdmi \ | ||
34 | ${D}${base_libdir}/firmware/seco | ||
35 | |||
36 | #1BW_BCM43340 | ||
37 | install -d ${D}${base_libdir}/firmware/bcm/1BW_BCM43340 | ||
38 | cp -rfv git/brcm/1BW_BCM43340/*.bin ${D}${base_libdir}/firmware/bcm/1BW_BCM43340 | ||
39 | cp -rfv git/brcm/1BW_BCM43340/*.cal ${D}${base_libdir}/firmware/bcm/1BW_BCM43340 | ||
40 | cp -rfv git/brcm/1BW_BCM43340/*.hcd ${D}${sysconfdir}/firmware/ | ||
41 | |||
42 | #1DX_BCM4343W | ||
43 | install -d ${D}${base_libdir}/firmware/bcm/1DX_BCM4343W | ||
44 | cp -rfv git/brcm/1DX_BCM4343W/*.bin ${D}${base_libdir}/firmware/bcm/1DX_BCM4343W | ||
45 | cp -rfv git/brcm/1DX_BCM4343W/*.cal ${D}${base_libdir}/firmware/bcm/1DX_BCM4343W | ||
46 | cp -rfv git/brcm/1DX_BCM4343W/*.hcd ${D}${sysconfdir}/firmware/ | ||
47 | |||
48 | #SN8000_BCM43362 | ||
49 | install -d ${D}${base_libdir}/firmware/bcm/SN8000_BCM43362 | ||
50 | cp -rfv git/brcm/SN8000_BCM43362/*.bin ${D}${base_libdir}/firmware/bcm/SN8000_BCM43362 | ||
51 | cp -rfv git/brcm/SN8000_BCM43362/*.cal ${D}${base_libdir}/firmware/bcm/SN8000_BCM43362 | ||
52 | cp -rfv git/brcm/1DX_BCM4343W/*.hcd ${D}${sysconfdir}/firmware/ | ||
53 | |||
54 | #ZP_BCM4339 | ||
55 | install -d ${D}${base_libdir}/firmware/bcm/ZP_BCM4339 | ||
56 | cp -rfv git/brcm/ZP_BCM4339/*.bin ${D}${base_libdir}/firmware/bcm/ZP_BCM4339 | ||
57 | cp -rfv git/brcm/ZP_BCM4339/*.cal ${D}${base_libdir}/firmware/bcm/ZP_BCM4339 | ||
58 | cp -rfv git/brcm/ZP_BCM4339/*.hcd ${D}${sysconfdir}/firmware/ | ||
59 | |||
60 | mv ${D}${base_libdir}/firmware/epdc/ ${D}${base_libdir}/firmware/imx/epdc/ | ||
61 | mv ${D}${base_libdir}/firmware/imx/epdc/epdc_ED060XH2C1.fw.nonrestricted ${D}${base_libdir}/firmware/imx/epdc/epdc_ED060XH2C1.fw | ||
62 | |||
63 | find ${D}${base_libdir}/firmware -type f -exec chmod 644 '{}' ';' | ||
64 | find ${D}${base_libdir}/firmware -type f -exec chown root:root '{}' ';' | ||
65 | |||
66 | # Remove files not going to be installed | ||
67 | find ${D}${base_libdir}/firmware/ -name '*.mk' -exec rm '{}' ';' | ||
68 | } | ||
69 | |||
70 | python populate_packages_prepend() { | ||
71 | vpudir = bb.data.expand('${base_libdir}/firmware/vpu', d) | ||
72 | do_split_packages(d, vpudir, '^vpu_fw_([^_]*).*\.bin', | ||
73 | output_pattern='firmware-imx-vpu-%s', | ||
74 | description='Freescale IMX Firmware %s', | ||
75 | extra_depends='', | ||
76 | prepend=True) | ||
77 | |||
78 | sdmadir = bb.data.expand('${base_libdir}/firmware/sdma', d) | ||
79 | do_split_packages(d, sdmadir, '^sdma-([^-]*).*\.bin', | ||
80 | output_pattern='firmware-imx-sdma-%s', | ||
81 | description='Freescale IMX Firmware %s', | ||
82 | extra_depends='', | ||
83 | prepend=True) | ||
84 | } | ||
85 | |||
86 | ALLOW_EMPTY_${PN} = "1" | ||
87 | |||
88 | PACKAGES_DYNAMIC = "${PN}-vpu-* ${PN}-sdma-*" | ||
89 | |||
90 | PACKAGES =+ "${PN}-epdc ${PN}-brcm" | ||
91 | |||
92 | FILES_${PN}-epdc = "${base_libdir}/firmware/imx/epdc/" | ||
93 | FILES_${PN}-brcm = "${base_libdir}/firmware/bcm/*/*.bin ${base_libdir}/firmware/bcm/*/*.cal ${sysconfdir}/firmware/" | ||