diff options
Diffstat (limited to 'recipes-bsp/firmware-imx/firmware-imx.inc')
-rw-r--r-- | recipes-bsp/firmware-imx/firmware-imx.inc | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/recipes-bsp/firmware-imx/firmware-imx.inc b/recipes-bsp/firmware-imx/firmware-imx.inc new file mode 100644 index 00000000..80e5e59e --- /dev/null +++ b/recipes-bsp/firmware-imx/firmware-imx.inc | |||
@@ -0,0 +1,42 @@ | |||
1 | SUMMARY = "Freescale IMX firmware" | ||
2 | DESCRIPTION = "Freescale IMX firmware such as for the VPU" | ||
3 | SECTION = "base" | ||
4 | LICENSE = "Proprietary" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=acdb807ac7275fe32f9f64992e111241" | ||
6 | |||
7 | PE = "1" | ||
8 | |||
9 | SRC_URI = "${FSL_MIRROR}/firmware-imx-${PV}.bin;fsl-eula=true" | ||
10 | |||
11 | inherit fsl-eula-unpack | ||
12 | |||
13 | do_install() { | ||
14 | install -d ${D}/lib/firmware | ||
15 | cp -rfv firmware/* ${D}/lib/firmware/ | ||
16 | find ${D}/lib/firmware -type f -exec chmod 644 '{}' ';' | ||
17 | |||
18 | # Remove files not going to be installed | ||
19 | find ${D}/lib/firmware/ -name Android.mk -exec rm '{}' ';' | ||
20 | } | ||
21 | |||
22 | python populate_packages_prepend() { | ||
23 | vpudir = bb.data.expand('/lib/firmware/vpu', d) | ||
24 | do_split_packages(d, vpudir, '^vpu_fw_([^_]*).*\.bin', | ||
25 | output_pattern='firmware-imx-vpu-%s', | ||
26 | description='Freescale IMX Firmware %s', | ||
27 | extra_depends='', | ||
28 | prepend=True) | ||
29 | |||
30 | sdmadir = bb.data.expand('/lib/firmware/sdma', d) | ||
31 | do_split_packages(d, sdmadir, '^sdma-([^-]*).*\.bin', | ||
32 | output_pattern='firmware-imx-sdma-%s', | ||
33 | description='Freescale IMX Firmware %s', | ||
34 | extra_depends='', | ||
35 | prepend=True) | ||
36 | } | ||
37 | |||
38 | ALLOW_EMPTY_${PN} = "1" | ||
39 | |||
40 | PACKAGES_DYNAMIC = "${PN}-vpu-* ${PN}-sdma-*" | ||
41 | |||
42 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | ||