Skip to content

Commit

Permalink
linux: fix building linux 6.1 for 32-bit arm machines
Browse files Browse the repository at this point in the history
Only kernels >= 6.6 have dts files for 32-bit ARM devices
reorganized by placing them in vendor+family subdirectories.
Previous kernels keep all arm arch dts files in a single default
directory.
Correctly reassign KERNEL_DEVICETREE for 32-bit ARM devices for all
supported kernels 6.1 to fix building.

Fixes: 0d838c6 ("ARM 32-bit device-tree reorganization")
Signed-off-by: Oleksandr Suvorov <[email protected]>
  • Loading branch information
MrCry0 committed Nov 2, 2023
1 parent ee4dc92 commit 6e2797f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion conf/machine/include/imx-base.inc
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ PREFERRED_VERSION_opencv:mx8-nxp-bsp ??= "4.6.0.imx"
PREFERRED_VERSION_opencv:mx9-nxp-bsp ??= "4.6.0.imx"

# Handle default kernel
IMX_DEFAULT_KERNEL:imx-mainline-bsp = "linux-fslc"
IMX_DEFAULT_KERNEL:imx-mainline-bsp = "linux-fslc-lts"
IMX_DEFAULT_KERNEL:imx-nxp-bsp = "linux-fslc-imx"

PREFERRED_PROVIDER_virtual/kernel ??= "${IMX_DEFAULT_KERNEL}"
Expand Down
2 changes: 2 additions & 0 deletions recipes-kernel/linux/linux-fslc-imx_6.1.bb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ Latest stable Kernel patchlevel is applied and maintained by Community."

require linux-imx.inc

include linux-legacy-arm-dts.inc

KBRANCH = "6.1-2.1.x-imx"
SRC_URI = "git://github.com/Freescale/linux-fslc.git;branch=${KBRANCH};protocol=https"
SRCREV = "3f41fbe42851375d3d5996e4bf9e9809e6c79517"
Expand Down
2 changes: 2 additions & 0 deletions recipes-kernel/linux/linux-fslc-lts_6.1.bb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ upstreaming in any form."

require linux-imx.inc

include linux-legacy-arm-dts.inc

SRC_URI = "git://github.com/Freescale/linux-fslc.git;branch=${KBRANCH};protocol=https"

# PV is defined in the base in linux-imx.inc file and uses the LINUX_VERSION definition
Expand Down
2 changes: 2 additions & 0 deletions recipes-kernel/linux/linux-imx_6.1.bb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ i.MX Family Reference Boards. It includes support for many IPs such as GPU, VPU

require recipes-kernel/linux/linux-imx.inc

include linux-legacy-arm-dts.inc

SRCBRANCH = "lf-6.1.y"
LOCALVERSION = "-6.1.36-2.1.0"
SRCREV = "04b05c5527e9af8d81254638c307df07dc9a5dd3"
Expand Down
7 changes: 7 additions & 0 deletions recipes-kernel/linux/linux-legacy-arm-dts.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# In linux kernels < 6.6 dts files for arm arch are collected in the
# common dts directory arch/arm/boot/dts

KERNEL_DEVICETREE:imx23evk = "imx23-evk.dtb"
KERNEL_DEVICETREE:imx28evk = "imx28-evk.dtb"
KERNEL_DEVICETREE:imx51evk = "imx51-babbage.dtb"
KERNEL_DEVICETREE:imx53qsb = "imx53-qsb.dtb imx53-qsrb.dtb"

0 comments on commit 6e2797f

Please sign in to comment.