Skip to content

odroid-xu4: broken uboot build on noble #8167

Closed
@EvilOlaf

Description

@EvilOlaf

What happened?

I chose to dive into uboot breakage using Noble build host so I chose a random one from here: #6862 (comment)

I came up with two adjustments that allowed compilation to run successful. Needs proper implementation and testing.

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Werner <werner@armbian.com>
Date: Fri, 9 May 2025 10:47:15 +0000
Subject: Patching u-boot odroidxu4 files lib/libfdt/setup.py

Signed-off-by: Werner <werner@armbian.com>
---
 lib/libfdt/setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/libfdt/setup.py b/lib/libfdt/setup.py
index 845a0c2b10d..a69eb4f42e0 100644
--- a/lib/libfdt/setup.py
+++ b/lib/libfdt/setup.py
@@ -2,11 +2,11 @@
 
 """
 setup.py file for SWIG libfdt
 """
 
-from distutils.core import setup, Extension
+from setuptools import setup, Extension
 import os
 import sys
 
 # Don't cross-compile - always use the host compiler.
 del os.environ['CROSS_COMPILE']
-- 
Created with Armbian build tools https://github.com/armbian/build
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Werner <werner@armbian.com>
Date: Fri, 9 May 2025 10:55:23 +0000
Subject: Patching u-boot odroidxu4 files tools/Makefile

Signed-off-by: Werner <werner@armbian.com>
---
 tools/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/Makefile b/tools/Makefile
index 2fc4a583d44..b0bbf013435 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -120,11 +120,11 @@ _libfdt.so-sharedobjs += $(LIBFDT_OBJS)
 libfdt:
 
 tools/_libfdt.so: $(patsubst %.o,%.c,$(LIBFDT_OBJS)) tools/libfdt_wrap.c
        LDFLAGS="$(HOSTLDFLAGS)" CFLAGS= ${PYTHON} $(srctree)/lib/libfdt/setup.py \
                "$(_hostc_flags)" $^
-       mv _libfdt.so $@
+       mv _libfdt.*so $@
 
 tools/libfdt_wrap.c: $(srctree)/lib/libfdt/libfdt.swig
        swig -python -o $@ $<
 
 # TODO(sjg@chromium.org): Is this correct on Mac OS?
-- 
Created with Armbian build tools https://github.com/armbian/build

How to reproduce?

try building uboot for xu4 on noble and watch yourself failing miserabely.

Branch

main (main development branch)

On which host OS are you running the build script and observing this problem?

Ubuntu 24.04 Noble

Are you building on Windows WSL2?

  • Yes, my Ubuntu/Debian/OtherOS is running on WSL2

Relevant log URL

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

BugSomething isn't working as it should

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions