Using $(CROSS_ENV) results in a target binary, which is obviously wrong for a host tool. $ file platform-sdcard/sysroot-host/bin/lz4 platform-sdcard/sysroot-host/bin/lz4: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.0.0, with debug_info, not stripped
Using the plain environment for building the host tool fixes this. Signed-off-by: Alexander Stein <alexander.st...@systec-electronic.com> --- rules/host-lz4.make | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/host-lz4.make b/rules/host-lz4.make index 8c8ed4cd3..6fa9040f9 100644 --- a/rules/host-lz4.make +++ b/rules/host-lz4.make @@ -18,7 +18,7 @@ HOST_PACKAGES-$(PTXCONF_HOST_LZ4) += host-lz4 # ---------------------------------------------------------------------------- HOST_LZ4_CONF_TOOL := NO -HOST_LZ4_MAKE_ENV := $(CROSS_ENV) PREFIX= +HOST_LZ4_MAKE_ENV := PREFIX= HOST_LZ4_MAKE_OPT := BUILD_STATIC=no lz4 HOST_LZ4_INSTALL_OPT := BUILD_STATIC=no install -- 2.13.6 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de