boot/uboot: fix uboot building host tools on x86 architecture
authorKory Maincent <kory.maincent@bootlin.com>
Wed, 30 Jun 2021 09:02:47 +0000 (11:02 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Wed, 30 Jun 2021 20:45:18 +0000 (22:45 +0200)
commit2eaa6d0f36291f49ab56a734a4851a6ffe8e8803
tree5e1cc7de7b6887b9c227936f4809e97b76b1951f
parent4047e10ed6e20492bae572d4929eaa5d67eed746
boot/uboot: fix uboot building host tools on x86 architecture

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>
[yann.morin.1998@free.fr:
  - fix mixed space-TAB indentation
  - fix check-package
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
boot/uboot/uboot.mk
support/testing/tests/package/test_uboot_openssl_pkgconfig.py [new file with mode: 0644]