Skip to content

Commit

Permalink
firmware-imx: introduce IMX_USE_LINUX_FIRMWARE_SDMA to configure sdma…
Browse files Browse the repository at this point in the history
… sources

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
(cherry picked from commit 91cd813)
  • Loading branch information
Livius90 authored and thochstein committed Aug 23, 2024
1 parent ae04eec commit f08206c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions meta-imx-bsp/conf/layer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ PREFERRED_RPROVIDER_u-boot-default-env ??= "${IMX_DEFAULT_BOOTLOADER}"
MACHINE_SOCARCH_FILTER:remove = "alsa-lib gstreamer1.0 imx-codec"

# Use latest SDMA firmware from firmware-imx instead of upstream linux-firmware
IMX_USE_LINUX_FIRMWARE_SDMA = "0"
MACHINE_FIRMWARE:remove:mx6-nxp-bsp = "linux-firmware-imx-sdma-imx6q"
MACHINE_FIRMWARE:remove:mx7d-nxp-bsp = "linux-firmware-imx-sdma-imx7d"
MACHINE_FIRMWARE:remove:mx8-nxp-bsp = "linux-firmware-imx-sdma-imx7d"
Expand Down
12 changes: 9 additions & 3 deletions meta-imx-bsp/recipes-bsp/firmware-imx/firmware-imx_8.24.bb
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,21 @@ PE = "1"

inherit allarch

IMX_USE_LINUX_FIRMWARE_SDMA ?= "1"

do_install() {
install -d ${D}${nonarch_base_libdir}/firmware/imx

# SDMA Firmware section
install -d ${D}${nonarch_base_libdir}/firmware/imx/sdma
install -m 0644 ${S}/firmware/sdma/* ${D}${nonarch_base_libdir}/firmware/imx/sdma
# Comment these lines to use sdma-imx6q/7d.bin from here and not linux-firmware
#rm -f ${D}${nonarch_base_libdir}/firmware/imx/sdma/sdma-imx6q.bin
#rm -f ${D}${nonarch_base_libdir}/firmware/imx/sdma/sdma-imx7d.bin
# Define IMX_USE_LINUX_FIRMWARE_SDMA = "0" in layer.conf, machine.conf, local.conf
# or in .bbappend to use sdma-imx6q/7d.bin from here and not linux-firmware
if [ ${IMX_USE_LINUX_FIRMWARE_SDMA} -gt 0 ]
then
rm -f ${D}${nonarch_base_libdir}/firmware/imx/sdma/sdma-imx6q.bin
rm -f ${D}${nonarch_base_libdir}/firmware/imx/sdma/sdma-imx7d.bin
fi

# EASRC Firmware section
install -d ${D}${nonarch_base_libdir}/firmware/imx/easrc
Expand Down

0 comments on commit f08206c

Please sign in to comment.