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)
commit124b21e7bd3d0ad5258c7cf84540301bff27012a
treecd9944c3deee8ba931455786c291287d0f8e51e3
parent31a7688cbe0ed5edf4108a1f7ef4653659610d4b
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