diff mbox

[PATCH-2017.05.x] uboot-tools: disable libfdt swig wrapper for host

Message ID 20170713061905.15801-1-joerg.krause@embedded.rocks
State Accepted
Commit 2638b3f305da06705692343d0deec8d34757945a
Headers show

Commit Message

Jörg Krause July 13, 2017, 6:19 a.m. UTC
Commit f4891c398e599f18bbf41eb33885930431f5e1c8 [1] added a workaround to
disable the build of the python libfdt module if swig is available on the
host.

This workaround is also necessary when building the host uboot-tools.

Note, that the issue was introduced in upstream commit
1905c8fc711a527ff10550425498bc77e4db9ac3 [2] and released in version
U-Boot version 2017.03 and fixed in version 2017.07 (see [3]).

[1] https://git.busybox.net/buildroot/commit/package/uboot-tools?h=master&id=f4891c398e599f18bbf41eb33885930431f5e1c8
[2] http://git.denx.de/?p=u-boot.git;a=commit;h=1905c8fc711a527ff10550425498bc77e4db9ac3
[3] http://patchwork.ozlabs.org/patch/787412/

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
---
 package/uboot-tools/uboot-tools.mk | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Comments

Matt Weber July 13, 2017, 2:55 p.m. UTC | #1
Jorg,

On Thu, Jul 13, 2017 at 1:19 AM, Jörg Krause
<joerg.krause@embedded.rocks> wrote:
> Commit f4891c398e599f18bbf41eb33885930431f5e1c8 [1] added a workaround to
> disable the build of the python libfdt module if swig is available on the
> host.
>
> This workaround is also necessary when building the host uboot-tools.
>
> Note, that the issue was introduced in upstream commit
> 1905c8fc711a527ff10550425498bc77e4db9ac3 [2] and released in version
> U-Boot version 2017.03 and fixed in version 2017.07 (see [3]).
>
> [1] https://git.busybox.net/buildroot/commit/package/uboot-tools?h=master&id=f4891c398e599f18bbf41eb33885930431f5e1c8
> [2] http://git.denx.de/?p=u-boot.git;a=commit;h=1905c8fc711a527ff10550425498bc77e4db9ac3
> [3] http://patchwork.ozlabs.org/patch/787412/
>
> Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>

Acked-by: Matt Weber <matthew.weber@rockwellcollins.com>
Peter Korsgaard July 21, 2017, 7:52 a.m. UTC | #2
>>>>> "Jörg" == Jörg Krause <joerg.krause@embedded.rocks> writes:

 > Commit f4891c398e599f18bbf41eb33885930431f5e1c8 [1] added a workaround to
 > disable the build of the python libfdt module if swig is available on the
 > host.

 > This workaround is also necessary when building the host uboot-tools.

 > Note, that the issue was introduced in upstream commit
 > 1905c8fc711a527ff10550425498bc77e4db9ac3 [2] and released in version
 > U-Boot version 2017.03 and fixed in version 2017.07 (see [3]).

 > [1] https://git.busybox.net/buildroot/commit/package/uboot-tools?h=master&id=f4891c398e599f18bbf41eb33885930431f5e1c8
 > [2] http://git.denx.de/?p=u-boot.git;a=commit;h=1905c8fc711a527ff10550425498bc77e4db9ac3
 > [3] http://patchwork.ozlabs.org/patch/787412/

 > Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>

Committed to 2017.05.x, thanks.
diff mbox

Patch

diff --git a/package/uboot-tools/uboot-tools.mk b/package/uboot-tools/uboot-tools.mk
index 352f53d690..4096a0c937 100644
--- a/package/uboot-tools/uboot-tools.mk
+++ b/package/uboot-tools/uboot-tools.mk
@@ -23,7 +23,7 @@  UBOOT_TOOLS_MAKE_OPTS = CROSS_COMPILE="$(TARGET_CROSS)" \
 
 # This option was added through an additional patch
 # and allows the disabling of a host python swig
-# detect which as of 2017.5 assumes the host systems swig.
+# detect which as of 2017.3 assumes the host systems swig.
 UBOOT_TOOLS_MAKE_OPTS += CONFIG_TOOLS_PYTHON_WRAPPER_DISABLE=y
 
 ifeq ($(BR2_PACKAGE_UBOOT_TOOLS_FIT_SUPPORT),y)
@@ -92,6 +92,10 @@  HOST_UBOOT_TOOLS_MAKE_OPTS = HOSTCC="$(HOSTCC)" \
 	HOSTCFLAGS="$(HOST_CFLAGS)" \
 	HOSTLDFLAGS="$(HOST_LDFLAGS)"
 
+# Workaround to disable building the host python libfdt module. See comment
+# above when setting the target uboot-tools make options.
+HOST_UBOOT_TOOLS_MAKE_OPTS += CONFIG_TOOLS_PYTHON_WRAPPER_DISABLE=y
+
 ifeq ($(BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SUPPORT),y)
 HOST_UBOOT_TOOLS_MAKE_OPTS += CONFIG_FIT=y
 HOST_UBOOT_TOOLS_DEPENDENCIES += host-dtc