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