From patchwork Wed Feb 27 08:15:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: christian.braunersorensen@prevas.dk X-Patchwork-Id: 223541 X-Patchwork-Delegate: esben@haabendal.dk Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hugin.dotsrc.org (hugin.dotsrc.org [IPv6:2001:878:346::102]) by ozlabs.org (Postfix) with ESMTP id 4D9732C0085 for ; Wed, 27 Feb 2013 19:15:35 +1100 (EST) Received: from hugin.dotsrc.org (localhost [127.0.0.1]) by hugin.dotsrc.org (Postfix) with ESMTP id 273303FE6A for ; Wed, 27 Feb 2013 09:15:33 +0100 (CET) X-Original-To: dev@oe-lite.org Delivered-To: dev@oe-lite.org Received: from mail01.prevas.se (mail01.prevas.se [62.95.78.3]) by hugin.dotsrc.org (Postfix) with ESMTPS id BBD753F9CB for ; Wed, 27 Feb 2013 09:15:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=prevas.dk; i=@prevas.dk; l=863; q=dns/txt; s=ironport1; t=1361952929; x=1393488929; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/4T6teetQA5JgoVFCJmDLuRsV0+SDr3sbkcswgX9fPE=; b=XArlj2XMbACiWRzWWYhhcTK37F6fqXZjrWf1aM98qCSiG3xi6oh2zE0i oeNEEhmUZ5UUi+4s/sqPdjEVYZExi3JuWIZO4GShFs7YxPjkX2Q5FsB1D 2K5cL1WzdEswii2D2PvrZcm8DLo5c5uFSlw2CHqAkAfdZMOh/W/r6ELea A=; X-IronPort-AV: E=Sophos;i="4.84,746,1355094000"; d="scan'208";a="2825633" Received: from vmprevas3.prevas.se (HELO smtp.prevas.se) ([172.16.8.103]) by ironport1.prevas.se with ESMTP/TLS/AES128-SHA; 27 Feb 2013 09:15:29 +0100 Received: from localhost (172.16.10.102) by smtp.prevas.se (172.16.8.105) with Microsoft SMTP Server id 14.2.342.3; Wed, 27 Feb 2013 09:15:29 +0100 Received: by localhost (Postfix, from userid 30007) id 67A00684400; Wed, 27 Feb 2013 08:15:29 +0000 (UTC) From: To: Subject: [PATCH 2/2] u-boot/u-boot-tools: Fix compile on newer 32-bit distros Date: Wed, 27 Feb 2013 08:15:27 +0000 Message-ID: X-Mailer: git-send-email 1.8.0.3 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: dev@oe-lite.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: OE-lite development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dev-bounces@oe-lite.org Errors-To: dev-bounces@oe-lite.org From: Jacob Barsøe Kjærgaard --- recipes/u-boot/u-boot-tools.inc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/recipes/u-boot/u-boot-tools.inc b/recipes/u-boot/u-boot-tools.inc index f0f0e9b..482f334 100644 --- a/recipes/u-boot/u-boot-tools.inc +++ b/recipes/u-boot/u-boot-tools.inc @@ -24,6 +24,13 @@ do_configure () { MAKE_TARGETS = "tools-all" +do_compile[prefuncs] += "do_compile_fix_gdb_include_path" + +do_compile_fix_gdb_include_path() { + sed 's#\(BFD_ROOT_DIR =\).*#\1 ${HOST_SYSROOT}${includedir}#' -i ${S}/config.mk +} + + do_compile () { oe_runmake ${MAKE_TARGETS} } @@ -53,3 +60,4 @@ AUTO_PACKAGE_UTILS = "${U_BOOT_TOOLS}" PACKAGES =+ "${PN}-env" FILES_${PN}-env = "${bindir}/fw_*env" PROVIDES_${PN}-env = "util/fw_printenv util/fw_setenv" +