Browse Source

target: config: Newer kernels moved DTB files

They moved in commit 724ba67515320 ("ARM: dts: Move .dts files to vendor
sub-directories"), try to cover for it.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Phil Sutter 3 months ago
parent
commit
fe4bf8bdb4
1 changed files with 20 additions and 1 deletions
  1. 20 1
      target/config/Config.in.kernelfmt

+ 20 - 1
target/config/Config.in.kernelfmt

@@ -84,6 +84,25 @@ config ADK_TARGET_KERNEL_LOADADDR
 	default 0x40008000 if ADK_TARGET_SYSTEM_ORANGE_PI0
 	default 0xc0008000 if ADK_TARGET_SYSTEM_ST_STM32F746G
 
+config ADK_TARGET_KERNEL_VENDORED_DTB
+	bool
+	default y
+	default n if ADK_TARGET_LINUX_KERNEL_VERSION_6_1
+	default n if ADK_TARGET_LINUX_KERNEL_VERSION_5_15
+	default n if ADK_TARGET_LINUX_KERNEL_VERSION_5_10
+	default n if ADK_TARGET_LINUX_KERNEL_VERSION_5_4
+	default n if ADK_TARGET_LINUX_KERNEL_VERSION_4_19
+	default n if ADK_TARGET_LINUX_KERNEL_VERSION_4_14
+	default n if ADK_TARGET_LINUX_KERNEL_VERSION_4_9
+	default n if ADK_TARGET_LINUX_KERNEL_VERSION_4_4
+	default n if ADK_TARGET_LINUX_KERNEL_VERSION_3_16
+	default n if ADK_TARGET_LINUX_KERNEL_VERSION_3_4
+	default n if ADK_TARGET_LINUX_KERNEL_VERSION_2_6_32
+	help
+	  Starting with linux-6.5, DTB files sit in vendor-specific
+	  sub-directories.
+
 config ADK_TARGET_KERNEL_APPEND_DTB
 	string
-	default "armada-xp-synology-ds414" if ADK_TARGET_SYSTEM_SYNOLOGY_DS414
+	default "armada-xp-synology-ds414" if ADK_TARGET_SYSTEM_SYNOLOGY_DS414 && !ADK_TARGET_KERNEL_VENDORED_DTB
+	default "marvell/armada-xp-synology-ds414" if ADK_TARGET_SYSTEM_SYNOLOGY_DS414 && ADK_TARGET_KERNEL_VENDORED_DTB