diff mbox series

[meta-ti,scarthgap/master] meta-ti-bsp: linux: Remove extra dtc flags for DT Overlays

Message ID 20250627204129.584298-1-afd@ti.com
State New
Headers show
Series [meta-ti,scarthgap/master] meta-ti-bsp: linux: Remove extra dtc flags for DT Overlays | expand

Commit Message

Andrew Davis June 27, 2025, 8:41 p.m. UTC
This hides issues like missing flags that will cause issues for folks who
build or re-build the kernel outside the Yocto environment. It is better
to find these issues and fix them at the source in the Linux makefile,
not mask issues here.

Signed-off-by: Andrew Davis <afd@ti.com>
---
 meta-ti-bsp/conf/machine/include/ti-soc.inc    |  1 -
 meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc | 10 ----------
 2 files changed, 11 deletions(-)
diff mbox series

Patch

diff --git a/meta-ti-bsp/conf/machine/include/ti-soc.inc b/meta-ti-bsp/conf/machine/include/ti-soc.inc
index 5d77e719..ceab2ba7 100644
--- a/meta-ti-bsp/conf/machine/include/ti-soc.inc
+++ b/meta-ti-bsp/conf/machine/include/ti-soc.inc
@@ -5,4 +5,3 @@  require conf/machine/include/soc-family.inc
 
 # TI platforms all use devicetrees with overlays
 MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree"
-KERNEL_DTB_OVERLAY_SUPPORT ?= "1"
diff --git a/meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc b/meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc
index 8c14446a..40ddc4fd 100644
--- a/meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc
+++ b/meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc
@@ -1,13 +1,3 @@ 
-# Add DTC FLAGS -@ when KERNEL_DTB_OVERLAY_SUPPORT is enabled
-
-def get_extra_dtc_args(d):
-    if d.getVar('KERNEL_DTB_OVERLAY_SUPPORT') == "1":
-        return "DTC_FLAGS=-@"
-    else:
-        return ""
-
-EXTRA_DTC_ARGS += "${@get_extra_dtc_args(d)}"
-
 # Tell the kernel class to install the DTBs in the same directory structure as
 # the kernel.
 KERNEL_DTBDEST = "${KERNEL_IMAGEDEST}/dtb"