From patchwork Tue Jul 2 06:37:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_Bie=C3=9Fmann?= X-Patchwork-Id: 256289 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 9FCFC2C0097 for ; Tue, 2 Jul 2013 16:37:26 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EE1534A1DC; Tue, 2 Jul 2013 08:37:12 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Djhe13xA7z8w; Tue, 2 Jul 2013 08:37:12 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 33F7A4A1D4; Tue, 2 Jul 2013 08:36:59 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9F3574A1AD for ; Tue, 2 Jul 2013 08:36:53 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FbqZKF-MPqqe for ; Tue, 2 Jul 2013 08:36:49 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-ee0-f42.google.com (mail-ee0-f42.google.com [74.125.83.42]) by theia.denx.de (Postfix) with ESMTPS id 36B164A1AB for ; Tue, 2 Jul 2013 08:36:37 +0200 (CEST) Received: by mail-ee0-f42.google.com with SMTP id c4so2485168eek.29 for ; Mon, 01 Jul 2013 23:36:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=yPNtJth65ct0PDIvOz25Z39CQ8nMwD6bLZrurPr6S2w=; b=eLCAhEBXxKj2RhTn5oQsrV6WTyrDnsc9KWhY5bD8ej+E2dDMY+ihH7km9ozNsTpjv7 4LlaH5yQQm98fs5pszGQjybhROToyOypWKEvqP/y5bcUAj8PqA3v+pVhI5NCu9IgLzlw V2AE51uWtvAd/j4GyVr3IBKvnVzsFS+tWvNJE8vp9CPYPePFbXQGPZGdQfdnITadw9V9 +mYEDvvEY8HTWWxkem2z+gz42UYNtcJHRB0WsVyySXDaaTN1dtHm72o/PJseXqWqlsuI ULDRsz/bc2sEQIhYVuC5i8gVCfiGHYLrFP9HwndPHuwFlY3CRIBoYWuPFDHacQ+ou6WI ypQA== X-Received: by 10.14.173.130 with SMTP id v2mr24717688eel.29.1372746997429; Mon, 01 Jul 2013 23:36:37 -0700 (PDT) Received: from localhost ([2a01:198:47b:1:210:75ff:fe1a:cd1e]) by mx.google.com with ESMTPSA id w43sm34439987eez.6.2013.07.01.23.36.35 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 01 Jul 2013 23:36:36 -0700 (PDT) From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= To: u-boot@lists.denx.de Date: Tue, 2 Jul 2013 08:37:37 +0200 Message-Id: <1372747057-85539-4-git-send-email-andreas.devel@googlemail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1372747057-85539-1-git-send-email-andreas.devel@googlemail.com> References: <1372747057-85539-1-git-send-email-andreas.devel@googlemail.com> MIME-Version: 1.0 Subject: [U-Boot] [PATCH v2 3/3] Makefile: fix readelf usage X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Some OS (like OS X) do not provide a generic readelf. We should enforce to use the toochain provided readelf instead, to do so use $(CROSS_COMPILE)readelf. Signed-off-by: Andreas Bießmann Tested-by: Lubomir Popov --- Changes in v2: None Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ba1c10b..446c2f8 100644 --- a/Makefile +++ b/Makefile @@ -747,7 +747,7 @@ endif # config.mk # ARM relocations should all be R_ARM_RELATIVE. checkarmreloc: $(obj)u-boot @if test "R_ARM_RELATIVE" != \ - "`readelf -r $< | cut -d ' ' -f 4 | grep R_ARM | sort -u`"; \ + "`$(CROSS_COMPILE)readelf -r $< | cut -d ' ' -f 4 | grep R_ARM | sort -u`"; \ then echo "$< contains relocations other than \ R_ARM_RELATIVE"; false; fi