commit:     e2c77e5cb614b813fcb5a971765868e6e230de54
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 11 05:42:02 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Feb 11 05:44:07 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2c77e5c

dev-embedded/u-boot-tools: resist building bundled dtc ever

Bug: https://bugs.gentoo.org/860300
Closes: https://bugs.gentoo.org/969851
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../u-boot-tools-2025.01-no-bundled-dtc.patch      | 27 ++++++++++++++++++++++
 .../u-boot-tools/u-boot-tools-2025.01-r2.ebuild    |  4 ++++
 2 files changed, 31 insertions(+)

diff --git 
a/dev-embedded/u-boot-tools/files/u-boot-tools-2025.01-no-bundled-dtc.patch 
b/dev-embedded/u-boot-tools/files/u-boot-tools-2025.01-no-bundled-dtc.patch
new file mode 100644
index 000000000000..33cd6731ee19
--- /dev/null
+++ b/dev-embedded/u-boot-tools/files/u-boot-tools-2025.01-no-bundled-dtc.patch
@@ -0,0 +1,27 @@
+Don't attempt to build the bundled dtc as we're not going to use it,
+and it would require dtc[python] too anyway.
+--- a/Makefile
++++ b/Makefile
+@@ -594,7 +594,7 @@ else
+ # Carefully list dependencies so we do not try to build scripts twice
+ # in parallel
+ PHONY += scripts
+-scripts: scripts_basic scripts_dtc include/config/auto.conf
++scripts: scripts_basic include/config/auto.conf
+       $(Q)$(MAKE) $(build)=$(@)
+ 
+ ifeq ($(dot-config),1)
+@@ -2057,11 +2057,11 @@ endif
+ 
+ ifneq ($(dtstree),)
+ 
+-%.dtb: prepare3 scripts_dtc
++%.dtb: prepare3
+       $(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@
+ 
+ PHONY += dtbs dtbs_install
+-dtbs: prepare3 scripts_dtc
++dtbs: prepare3
+       $(Q)$(MAKE) $(build)=$(dtstree)
+ 
+ dtbs_install:

diff --git a/dev-embedded/u-boot-tools/u-boot-tools-2025.01-r2.ebuild 
b/dev-embedded/u-boot-tools/u-boot-tools-2025.01-r2.ebuild
index b2c53b65fcfa..50bb0d3033eb 100644
--- a/dev-embedded/u-boot-tools/u-boot-tools-2025.01-r2.ebuild
+++ b/dev-embedded/u-boot-tools/u-boot-tools-2025.01-r2.ebuild
@@ -32,6 +32,10 @@ BDEPEND="
        virtual/pkgconfig
 "
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-2025.01-no-bundled-dtc.patch
+)
+
 src_prepare() {
        default
        sed -i 's:\bpkg-config\b:${PKG_CONFIG}:g' \

Reply via email to