All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] uboot: don't override HOSTCC/HOSTLDFLAGS for kconfig
@ 2018-06-24 14:12 Peter Korsgaard
  2018-06-24 15:46 ` Jagan Teki
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Peter Korsgaard @ 2018-06-24 14:12 UTC (permalink / raw)
  To: buildroot

So the host ncurses includes and library are used instead of a mix of both,
causing corrupted characters.  Similar to the linux fix in commit
6d3d09e23213e8 (linux: don't override HOSTCC for kconfig), except that we
pass the linker flags in HOSTLDFLAGS.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 boot/uboot/uboot.mk | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
index 03bd7ea743..6ef275e842 100644
--- a/boot/uboot/uboot.mk
+++ b/boot/uboot/uboot.mk
@@ -211,7 +211,15 @@ endif # BR2_TARGET_UBOOT_USE_DEFCONFIG
 
 UBOOT_KCONFIG_FRAGMENT_FILES = $(call qstrip,$(BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES))
 UBOOT_KCONFIG_EDITORS = menuconfig xconfig gconfig nconfig
-UBOOT_KCONFIG_OPTS = $(UBOOT_MAKE_OPTS)
+
+# UBOOT_MAKE_OPTS overrides HOSTCC / HOSTLDFLAGS to allow the build to
+# find our host-openssl. However, this triggers a bug in the kconfig
+# build script that causes it to build with /usr/include/ncurses.h
+# (which is typically wchar) but link with
+# $(HOST_DIR)/lib/libncurses.so (which is not).  We don't actually
+# need any host-package for kconfig, so remove the HOSTCC/HOSTLDFLAGS
+# override again.
+UBOOT_KCONFIG_OPTS = $(UBOOT_MAKE_OPTS) HOSTCC="$(HOSTCC)" HOSTLDFLAGS=""
 define UBOOT_HELP_CMDS
 	@echo '  uboot-menuconfig       - Run U-Boot menuconfig'
 	@echo '  uboot-savedefconfig    - Run U-Boot savedefconfig'
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] uboot: don't override HOSTCC/HOSTLDFLAGS for kconfig
  2018-06-24 14:12 [Buildroot] [PATCH] uboot: don't override HOSTCC/HOSTLDFLAGS for kconfig Peter Korsgaard
@ 2018-06-24 15:46 ` Jagan Teki
  2018-06-24 19:11 ` Peter Korsgaard
  2018-07-18 21:37 ` Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Jagan Teki @ 2018-06-24 15:46 UTC (permalink / raw)
  To: buildroot

On Sun, Jun 24, 2018 at 7:42 PM, Peter Korsgaard <peter@korsgaard.com> wrote:
> So the host ncurses includes and library are used instead of a mix of both,
> causing corrupted characters.  Similar to the linux fix in commit
> 6d3d09e23213e8 (linux: don't override HOSTCC for kconfig), except that we
> pass the linker flags in HOSTLDFLAGS.
>
> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>

Acked-by: Jagan Teki <jagan@amarulasolutions.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] uboot: don't override HOSTCC/HOSTLDFLAGS for kconfig
  2018-06-24 14:12 [Buildroot] [PATCH] uboot: don't override HOSTCC/HOSTLDFLAGS for kconfig Peter Korsgaard
  2018-06-24 15:46 ` Jagan Teki
@ 2018-06-24 19:11 ` Peter Korsgaard
  2018-07-18 21:37 ` Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2018-06-24 19:11 UTC (permalink / raw)
  To: buildroot

>>>>> "Peter" == Peter Korsgaard <peter@korsgaard.com> writes:

 > So the host ncurses includes and library are used instead of a mix of both,
 > causing corrupted characters.  Similar to the linux fix in commit
 > 6d3d09e23213e8 (linux: don't override HOSTCC for kconfig), except that we
 > pass the linker flags in HOSTLDFLAGS.

 > Signed-off-by: Peter Korsgaard <peter@korsgaard.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] uboot: don't override HOSTCC/HOSTLDFLAGS for kconfig
  2018-06-24 14:12 [Buildroot] [PATCH] uboot: don't override HOSTCC/HOSTLDFLAGS for kconfig Peter Korsgaard
  2018-06-24 15:46 ` Jagan Teki
  2018-06-24 19:11 ` Peter Korsgaard
@ 2018-07-18 21:37 ` Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2018-07-18 21:37 UTC (permalink / raw)
  To: buildroot

>>>>> "Peter" == Peter Korsgaard <peter@korsgaard.com> writes:

 > So the host ncurses includes and library are used instead of a mix of both,
 > causing corrupted characters.  Similar to the linux fix in commit
 > 6d3d09e23213e8 (linux: don't override HOSTCC for kconfig), except that we
 > pass the linker flags in HOSTLDFLAGS.

 > Signed-off-by: Peter Korsgaard <peter@korsgaard.com>

Committed to 2018.02.x and 2018.05.x, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-07-18 21:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-24 14:12 [Buildroot] [PATCH] uboot: don't override HOSTCC/HOSTLDFLAGS for kconfig Peter Korsgaard
2018-06-24 15:46 ` Jagan Teki
2018-06-24 19:11 ` Peter Korsgaard
2018-07-18 21:37 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.