[OE-core] [PATCH] u-boot: add workaround patch for missing python dev
Matthew McClintock
msm-oss at mcclintock.net
Thu Jul 6 18:21:15 UTC 2017
Per the comments in the included patch:
tools: disable _libfdt.so (swig present, python-dev missing breakage)
This is probing for tools and enabling if swig is found, however Python
libraries might be absent per the comment. This is just a host tool so
let's just disable it entirely for the now.
Signed-off-by: Matthew McClintock <msm-oss at mcclintock.net>
---
...le-_libfdt.so-swig-present-python-dev-mis.patch | 33 ++++++++++++++++++++++
meta/recipes-bsp/u-boot/u-boot_2017.05.bb | 2 ++
2 files changed, 35 insertions(+)
create mode 100644 meta/recipes-bsp/u-boot/files/0001-tools-disable-_libfdt.so-swig-present-python-dev-mis.patch
diff --git a/meta/recipes-bsp/u-boot/files/0001-tools-disable-_libfdt.so-swig-present-python-dev-mis.patch b/meta/recipes-bsp/u-boot/files/0001-tools-disable-_libfdt.so-swig-present-python-dev-mis.patch
new file mode 100644
index 0000000000..ac4b7b3032
--- /dev/null
+++ b/meta/recipes-bsp/u-boot/files/0001-tools-disable-_libfdt.so-swig-present-python-dev-mis.patch
@@ -0,0 +1,33 @@
+From 562ef1104558387d73365b50b86488f2d9aff653 Mon Sep 17 00:00:00 2001
+From: Matthew McClintock <msm-oss at mcclintock.net>
+Date: Thu, 6 Jul 2017 13:05:32 -0500
+Subject: [PATCH] tools: disable _libfdt.so (swig present, python-dev missing
+ breakage)
+
+This is probing for tools and enabling if swig is found, however Python
+libraries might be absent per the comment. This is just a host tool so
+let's just disable it entirely for the now.
+
+Signed-off-by: Matthew McClintock <msm-oss at mcclintock.net>
+---
+ tools/Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/tools/Makefile b/tools/Makefile
+index 2fc4a58..ac30086 100644
+--- a/tools/Makefile
++++ b/tools/Makefile
+@@ -114,8 +114,8 @@ fit_check_sign-objs := $(dumpimage-mkimage-objs) fit_check_sign.o
+
+ # Build a libfdt Python module if swig is available
+ # Use 'sudo apt-get install swig libpython-dev' to enable this
+-hostprogs-y += \
+- $(if $(shell which swig 2> /dev/null),_libfdt.so)
++#hostprogs-y += \
++# $(if $(shell which swig 2> /dev/null),_libfdt.so)
+ _libfdt.so-sharedobjs += $(LIBFDT_OBJS)
+ libfdt:
+
+--
+2.13.1
+
diff --git a/meta/recipes-bsp/u-boot/u-boot_2017.05.bb b/meta/recipes-bsp/u-boot/u-boot_2017.05.bb
index 37c21dcaa3..16d9563ce6 100644
--- a/meta/recipes-bsp/u-boot/u-boot_2017.05.bb
+++ b/meta/recipes-bsp/u-boot/u-boot_2017.05.bb
@@ -2,3 +2,5 @@ require u-boot-common_${PV}.inc
require u-boot.inc
DEPENDS += "bc-native dtc-native"
+
+SRC_URI += "file://0001-tools-disable-_libfdt.so-swig-present-python-dev-mis.patch"
--
2.13.1
More information about the Openembedded-core
mailing list