mirror of
https://github.com/armbian/build.git
synced 2025-08-18 21:11:02 +02:00
49 lines
1.4 KiB
Diff
49 lines
1.4 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Werner <werner@armbian.com>
|
|
Date: Fri, 9 May 2025 17:23:19 +0000
|
|
Subject: odroidxu4: fix uboot compilation on Noble
|
|
|
|
Signed-off-by: From: Werner <werner@armbian.com>
|
|
---
|
|
lib/libfdt/setup.py | 2 +-
|
|
tools/Makefile | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/lib/libfdt/setup.py b/lib/libfdt/setup.py
|
|
index 845a0c2b10d..713e7fcdb52 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']
|
|
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
|
|
|