mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Alexander Stein <alexander.stein@systec-electronic.com>
To: ptxdist@pengutronix.de
Cc: Alexander Stein <alexander.stein@systec-electronic.com>
Subject: [ptxdist] [PATCH 1/1] host-lz4: Do not build a target binary
Date: Thu,  1 Feb 2018 08:28:01 +0100	[thread overview]
Message-ID: <20180201072801.14610-1-alexander.stein@systec-electronic.com> (raw)

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.stein@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

             reply	other threads:[~2018-02-01  7:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-01  7:28 Alexander Stein [this message]
2018-02-01 11:21 ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180201072801.14610-1-alexander.stein@systec-electronic.com \
    --to=alexander.stein@systec-electronic.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox