[PATCH] scripts: fix pkg-config use for mksimage hosttool

Sascha Hauer s.hauer at pengutronix.de
Mon Aug 7 00:19:39 PDT 2023


mxsimage needs openssl but doesn't set the cflags accordingly.
This is no problem most of the time as `pkg-config --cflags openssl`
is often empty. Sometimes it's not, how the last patch revealed, so
set HOSTCFLAGS_mxsimage.o correctly.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 scripts/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/Makefile b/scripts/Makefile
index 0ad166af9d..749990a527 100644
--- a/scripts/Makefile
+++ b/scripts/Makefile
@@ -31,6 +31,7 @@ hostprogs-always-$(CONFIG_RK_IMAGE)			+= rkimage
 HOSTCFLAGS_rkimage.o = `pkg-config --cflags openssl`
 HOSTLDLIBS_rkimage = `pkg-config --libs openssl`
 KBUILD_HOSTCFLAGS += -I$(srctree)/scripts/include/
+HOSTCFLAGS_mxsimage.o = `pkg-config --cflags openssl`
 HOSTLDLIBS_mxsimage  = `pkg-config --libs openssl`
 HOSTCFLAGS_omap3-usb-loader.o = `pkg-config --cflags libusb-1.0`
 HOSTLDLIBS_omap3-usb-loader  = `pkg-config --libs libusb-1.0`
-- 
2.39.2




More information about the barebox mailing list