mirror of
https://github.com/linux-sunxi/meta-sunxi.git
synced 2025-08-28 14:52:20 +02:00
u-boot: fix binman/libfdt/pylibfdt build issue
Binman host tool in u-boot depends on libfdt library and pylibfdt module. All the needed libraries and python modules are a part of u-boot. This patch adds libfdt and pylibfdt to u-boot build: - add required dependencies swig-native and python3-native - fix python setup-tools issue: pass proper shared lib linker Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
This commit is contained in:
12
recipes-bsp/u-boot/files/u-boot-pylibfdt-native-build.patch
Normal file
12
recipes-bsp/u-boot/files/u-boot-pylibfdt-native-build.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
diff --git a/tools/Makefile b/tools/Makefile
|
||||
index 5db2a54..54bd224 100644
|
||||
--- a/tools/Makefile
|
||||
+++ b/tools/Makefile
|
||||
@@ -134,6 +134,7 @@ tools/_libfdt.so: $(LIBFDT_SRCS) $(LIBFDT_SWIG)
|
||||
$(Q)unset CC; \
|
||||
unset CROSS_COMPILE; \
|
||||
LDFLAGS="$(HOSTLDFLAGS)" CFLAGS= VERSION="u-boot-$(UBOOTVERSION)" \
|
||||
+ CC="$(HOSTCC)" LDSHARED="$(HOSTLDSHARED)" \
|
||||
CPPFLAGS="$(_hostc_flags)" OBJDIR=tools \
|
||||
SOURCES="$(LIBFDT_SRCS) tools/libfdt.i" \
|
||||
SWIG_OPTS="-I$(srctree)/lib/libfdt -I$(srctree)/lib" \
|
Reference in New Issue
Block a user