From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932385Ab0E0UTr (ORCPT ); Thu, 27 May 2010 16:19:47 -0400 Received: from ogre.sisk.pl ([217.79.144.158]:49735 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932246Ab0E0UTp convert rfc822-to-8bit (ORCPT ); Thu, 27 May 2010 16:19:45 -0400 From: "Rafael J. Wysocki" To: Geert Uytterhoeven Subject: Re: config automatically switches from 32-bit to 64-bit for x86 Date: Thu, 27 May 2010 22:21:08 +0200 User-Agent: KMail/1.12.4 (Linux/2.6.34-rjw; KDE/4.3.5; x86_64; ; ) Cc: Randy Dunlap , =?utf-8?q?Am=C3=A9rico_Wang?= , Jaswinder Singh Rajput , Sam Ravnborg , Ingo Molnar , Andrew Morton , "the arch/x86 maintainers" , Linux Kernel Mailing List References: <20100526223101.3f2dd7dd.rdunlap@xenotime.net> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 8BIT Message-Id: <201005272221.08985.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday 27 May 2010, Geert Uytterhoeven wrote: > On Thu, May 27, 2010 at 07:31, Randy Dunlap wrote: > > On Thu, 27 May 2010 12:31:23 +0800 Américo Wang wrote: > >> On Thu, May 27, 2010 at 09:39:51AM +0530, Jaswinder Singh Rajput wrote: > >> >On Thu, May 27, 2010 at 5:43 AM, Rafael J. Wysocki wrote: > >> >> On Thursday 27 May 2010, Jaswinder Singh Rajput wrote: > >> >>> Hello, > >> >>> > >> >>> I am trying to build 32 bit kernel image on 64-bit machine but after > >> >>> 'make menuconfig' it automatically switches 32-bit to 64-bit. > >> >> > >> >> Try 'linux32 make menuconfig' and 'linux32 make'. > >> >> > >> > > >> >Yes, this works :-) > >> > >> > >> I think 'make ARCH=i386 menuconfig' also works. > > > > Yes, that's what I use. I wasn't familiar with the "linux32 make ..." usage. > > Doesn't the linux32 trick run the (possibly slower due to x86 register pressure) > 32-bit compiler instead of running the 64-bit compiler in -m32 mode? You're probably right, but I haven't noticed a difference yet. :-) Rafael