]> git.baikalelectronics.ru Git - uboot.git/commit
tools: kwboot: use pkg-config to get -ltinfo
authorHeiko Thiery <heiko.thiery@gmail.com>
Wed, 20 Jul 2022 10:31:35 +0000 (12:31 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 4 Aug 2022 19:32:20 +0000 (15:32 -0400)
commit1b346eed96106a6d2d0949c20c35818a535a6aee
treecd9944c3deee8ba931455786c291287d0f8e51e3
parentc0ba05be06f30b48305822a922d53d0ae42fcdcd
tools: kwboot: use pkg-config to get -ltinfo

Instead of hardcoding -ltinfo as the flags needed to build
kwboot, use pkg-config when available.

We gracefully fallback on the previous behavior of hardcoding -ltinfo
if pkg-config is not available or fails with an error.

Reviewed-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
tools/Makefile