lkml.org 
[lkml]   [2010]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: config automatically switches from 32-bit to 64-bit for x86
On Thu, May 27, 2010 at 09:39:51AM +0530, Jaswinder Singh Rajput wrote:
>Hello Rafael,
>
>On Thu, May 27, 2010 at 5:43 AM, Rafael J. Wysocki <rjw@sisk.pl> 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.

>
>But I wonder then what is the point/use of CONFIG_X86_32 if compiler
>is not listening to it.
>
>Logically compiler should set appropriate flags based on .config settings.
>

It's not compiler, it's kbuild, kbuild tries to determine the arch
by 'uname -m'.


\
 
 \ /
  Last update: 2010-05-27 06:29    [from the cache]
©2003-2011 Jasper Spaans