From patchwork Tue May 24 17:47:01 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeroen Roovers X-Patchwork-Id: 812802 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p4OHt3vQ000540 for ; Tue, 24 May 2011 17:55:03 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756742Ab1EXRzD (ORCPT ); Tue, 24 May 2011 13:55:03 -0400 Received: from smtp-vbr19.xs4all.nl ([194.109.24.39]:2035 "EHLO smtp-vbr19.xs4all.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756344Ab1EXRzC (ORCPT ); Tue, 24 May 2011 13:55:02 -0400 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Tue, 24 May 2011 17:55:03 +0000 (UTC) X-Greylist: delayed 474 seconds by postgrey-1.27 at vger.kernel.org; Tue, 24 May 2011 13:55:02 EDT Received: from epia.jer-c2.orkz.net (D4B2706A.static.ziggozakelijk.nl [212.178.112.106]) (authenticated bits=0) by smtp-vbr19.xs4all.nl (8.13.8/8.13.8) with ESMTP id p4OHl2tj071045 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Tue, 24 May 2011 19:47:06 +0200 (CEST) (envelope-from jer@gentoo.org) Date: Tue, 24 May 2011 19:47:01 +0200 From: Jeroen Roovers To: linux-parisc@vger.kernel.org Subject: [PATCH] Do not set CROSS_COMPILE but let CONFIG_CROSS_COMPILE handle it all. Message-ID: <20110524194701.6a4c1bd4@epia.jer-c2.orkz.net> X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.1; i686-pc-linux-gnu) Mime-Version: 1.0 X-Virus-Scanned: by XS4ALL Virus Scanner Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org Do not set CROSS_COMPILE but let CONFIG_CROSS_COMPILE handle it all. The problem this fixes manifests itself when you try to build a 64-bit kernel on a distro which does not provide hppa$(WIDTH)-linux-gnu- but perhaps hppa$(WIDTH)-unknown-linux-gnu- instead, like Gentoo Linux. Signed-off-by: Jeroen Roovers --- -- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/arch/parisc/Makefile +++ b/arch/parisc/Makefile @@ -31,16 +31,10 @@ UTS_MACHINE := parisc64 CHECKFLAGS += -D__LP64__=1 -m64 WIDTH := 64 -CROSS_COMPILE := hppa64-linux-gnu- else # 32-bit WIDTH := endif -# attempt to help out folks who are cross-compiling -ifeq ($(NATIVE),1) -CROSS_COMPILE := hppa$(WIDTH)-linux- -endif - OBJCOPY_FLAGS =-O binary -R .note -R .comment -S cflags-y := -pipe