From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] boot/uboot: fix uboot building host tools on x86 architecture
Date: Mon, 12 Jul 2021 22:35:13 +0200 [thread overview]
Message-ID: <877dhvxoce.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <20210630210727.GZ2829@scaer> (Yann E. MORIN's message of "Wed, 30 Jun 2021 23:07:27 +0200")
>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:
> K?ry, All,
> On 2021-06-30 11:02 +0200, Kory Maincent spake thusly:
>> The make all command run the tools/makefile on the process.
>> This makefile use "pkg-config" command to support static link.
>> The issue is the use of pkg-config configured for crosscompiling
>> to build binaries tools for host architecture.
>> To fix it, I add pkg-config environment variable to configure it for host.
>>
>> Add a test to avoid future regress on the build of U-boot.
>>
>> Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
>> ---
>> boot/uboot/uboot.mk | 5 +++++
>> .../package/test_uboot_openssl_pkgconfig.py | 20 +++++++++++++++++++
>> 2 files changed, 25 insertions(+)
>> create mode 100644 support/testing/tests/package/test_uboot_openssl_pkgconfig.py
>>
>> diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
>> index dbe82e65b1..5186e6071e 100644
>> --- a/boot/uboot/uboot.mk
>> +++ b/boot/uboot/uboot.mk
>> @@ -307,6 +307,11 @@ define UBOOT_BUILD_CMDS
>> cp -f $(UBOOT_CUSTOM_DTS_PATH) $(@D)/arch/$(UBOOT_ARCH)/dts/
>> )
>> $(TARGET_CONFIGURE_OPTS) \
>> + PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \
>> + PKG_CONFIG_SYSROOT_DIR="/" \
>> + PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 \
>> + PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 \
>> + PKG_CONFIG_LIBDIR="$(HOST_DIR)/lib/pkgconfig:$(HOST_DIR)/share/pkgconfig" \
> Mixed TABs-n-spaces indentation, I've fixed that when applying.
Hmm, shouldn't we then add host-pkgconf to UBOOT_DEPENDENCIES so things
are not broken when it isn't available?
>> +class TestUbootOpensslPkgConfig(infra.basetest.BRTest):
>> + config = infra.basetest.MINIMAL_CONFIG + \
>> + """
>> + BR2_x86_64=y
>> + BR2_x86_atom=y
>> + BR2_PACKAGE_OPENSSL=y
>> + BR2_TARGET_UBOOT=y
>> + BR2_TARGET_UBOOT_BOARD_DEFCONFIG="efi-x86_payload64"
>> + BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
>> + BR2_PACKAGE_HOST_PKGCONF=y
And then drop it from here?
--
Bye, Peter Korsgaard
next prev parent reply other threads:[~2021-07-12 20:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-30 9:02 [Buildroot] [PATCH v2] boot/uboot: fix uboot building host tools on x86 architecture Kory Maincent
2021-06-30 21:07 ` Yann E. MORIN
2021-07-12 20:35 ` Peter Korsgaard [this message]
2021-08-03 20:11 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877dhvxoce.fsf@dell.be.48ers.dk \
--to=peter@korsgaard.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.