From: Daniel Bareiro on
Hi all!

I am trying to compile Linux 2.6.32 with the source code of kernel.org.
Kernel that I'm using at the moment is 2.6.26-2-686 of the Debian
GNU/Linux repositories.

In order to generate the configuration, I've copied the file
corresponding to this kernel to the directory of sources,
/usr/src/linux, and I've executed make menuconfig:

---------------------------------------------------------------------
# cd /usr/src/linux-2.6.32
# cp /boot/config-`uname -r` ./.config

# make ARCH=x86_64 menuconfig
---------------------------------------------------------------------

But when I execute 'make', restart config becomes and I'm interrogated
on some details of the configuration:

---------------------------------------------------------------------
antares:/usr/src/linux# make
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s arch/x86/Kconfig
*
* Restart config...
*
*
* RCU Subsystem
*
RCU Implementation
> 1. Tree-based hierarchical RCU (TREE_RCU)
choice[1]: 1
Enable tracing for RCU (RCU_TRACE) [N/y/?] n
Tree-based hierarchical RCU fanout value (RCU_FANOUT) [32] (NEW)
---------------------------------------------------------------------

Something similar happens when compiling using the Debian way.

I have the impression that 'make' is taking like reference the
configuration in /boot/ and the one that is in /usr/src/linux and when
finding differences, it interrogates to me on some things. Is it
possible? Under other circumstances, which can be the problem?

Thanks in advance for your replies.

Regards,
Daniel
--
Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Lenny - Linux user #188.598
From: Kumar Appaiah on
On Thu, Dec 17, 2009 at 09:32:59PM -0300, Daniel Bareiro wrote:
> Hi all!
>
> I am trying to compile Linux 2.6.32 with the source code of kernel.org.
> Kernel that I'm using at the moment is 2.6.26-2-686 of the Debian
> GNU/Linux repositories.
>
> In order to generate the configuration, I've copied the file
> corresponding to this kernel to the directory of sources,
> /usr/src/linux, and I've executed make menuconfig:
>
> ---------------------------------------------------------------------
> # cd /usr/src/linux-2.6.32
> # cp /boot/config-`uname -r` ./.config
>
> # make ARCH=x86_64 menuconfig
> ---------------------------------------------------------------------
>
> But when I execute 'make', restart config becomes and I'm interrogated
> on some details of the configuration:
>
> ---------------------------------------------------------------------
> antares:/usr/src/linux# make
> HOSTLD scripts/kconfig/conf
> scripts/kconfig/conf -s arch/x86/Kconfig
> *
> * Restart config...
> *
> *
> * RCU Subsystem
> *
> RCU Implementation
> > 1. Tree-based hierarchical RCU (TREE_RCU)
> choice[1]: 1
> Enable tracing for RCU (RCU_TRACE) [N/y/?] n
> Tree-based hierarchical RCU fanout value (RCU_FANOUT) [32] (NEW)
> ---------------------------------------------------------------------
>
> Something similar happens when compiling using the Debian way.
>
> I have the impression that 'make' is taking like reference the
> configuration in /boot/ and the one that is in /usr/src/linux and when
> finding differences, it interrogates to me on some things. Is it
> possible? Under other circumstances, which can be the problem?
>
> Thanks in advance for your replies.

Well, the kernel build does check what your current config is, and
based on that, asks you some new questions. One way I get around this
is:

cd <kernel-build-directory>
cp /boot/config-$(uname -r) .config
make menuconfig # choose the options you want.
Run make-kpkg to build my kernel deb.

The make menuconfig step refreshes your config, so that you can skip
the "interrogation" step.

HTH.

Kumar
--
martin(a)bdsi.com (no longer valid - where are you now, Martin?)
-- from /usr/src/linux/drivers/cdrom/mcd.c
From: Daniel Bareiro on
Hi, Kumar.

On Thursday, 17 December 2009 18:40:07 -0600,
Kumar Appaiah wrote:

> > I am trying to compile Linux 2.6.32 with the source code of kernel.org.
> > Kernel that I'm using at the moment is 2.6.26-2-686 of the Debian
> > GNU/Linux repositories.
> >
> > In order to generate the configuration, I've copied the file
> > corresponding to this kernel to the directory of sources,
> > /usr/src/linux, and I've executed make menuconfig:
> >
> > ---------------------------------------------------------------------
> > # cd /usr/src/linux-2.6.32
> > # cp /boot/config-`uname -r` ./.config
> >
> > # make ARCH=x86_64 menuconfig
> > ---------------------------------------------------------------------
> >
> > But when I execute 'make', restart config becomes and I'm interrogated
> > on some details of the configuration:
> >
> > ---------------------------------------------------------------------
> > antares:/usr/src/linux# make
> > HOSTLD scripts/kconfig/conf
> > scripts/kconfig/conf -s arch/x86/Kconfig
> > *
> > * Restart config...
> > *
> > *
> > * RCU Subsystem
> > *
> > RCU Implementation
> > > 1. Tree-based hierarchical RCU (TREE_RCU)
> > choice[1]: 1
> > Enable tracing for RCU (RCU_TRACE) [N/y/?] n
> > Tree-based hierarchical RCU fanout value (RCU_FANOUT) [32] (NEW)
> > ---------------------------------------------------------------------
> >
> > Something similar happens when compiling using the Debian way.
> >
> > I have the impression that 'make' is taking like reference the
> > configuration in /boot/ and the one that is in /usr/src/linux and when
> > finding differences, it interrogates to me on some things. Is it
> > possible? Under other circumstances, which can be the problem?

> Well, the kernel build does check what your current config is, and
> based on that, asks you some new questions. One way I get around this
> is:
>
> cd <kernel-build-directory>
> cp /boot/config-$(uname -r) .config
> make menuconfig # choose the options you want.
> Run make-kpkg to build my kernel deb.
>
> The make menuconfig step refreshes your config, so that you can skip
> the "interrogation" step.

These steps are similar to which I'm doing, although not to the Debian
way:

# cd /usr/src/linux-2.6.32
# cp /boot/config-`uname -r` ./.config
# make ARCH=x86_64 menuconfig
# make

The "interrogation" step comes when doing "make".

But it seems that it is obtaining some things of the configuration in
/boot/, because in the questions I see (without form to be able to
modify) that the family is Pentium-Pro (M686) and in
/usr/src/linux/.config I have:

CONFIG_64BIT=y
# CONFIG_X86_32 is not set
CONFIG_X86_64=y
CONFIG_X86=y


Thanks for your reply.

Regards,
Daniel
--
Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Lenny - Linux user #188.598
From: Kumar Appaiah on
On Thu, Dec 17, 2009 at 10:26:39PM -0300, Daniel Bareiro wrote:
> > Well, the kernel build does check what your current config is, and
> > based on that, asks you some new questions. One way I get around this
> > is:
> >
> > cd <kernel-build-directory>
> > cp /boot/config-$(uname -r) .config
> > make menuconfig # choose the options you want.
> > Run make-kpkg to build my kernel deb.
> >
> > The make menuconfig step refreshes your config, so that you can skip
> > the "interrogation" step.
>
> These steps are similar to which I'm doing, although not to the Debian
> way:
>
> # cd /usr/src/linux-2.6.32
> # cp /boot/config-`uname -r` ./.config
> # make ARCH=x86_64 menuconfig
> # make
>
> The "interrogation" step comes when doing "make".
>
> But it seems that it is obtaining some things of the configuration in
> /boot/, because in the questions I see (without form to be able to
> modify) that the family is Pentium-Pro (M686) and in
> /usr/src/linux/.config I have:
>
> CONFIG_64BIT=y
> # CONFIG_X86_32 is not set
> CONFIG_X86_64=y
> CONFIG_X86=y

Well, then did you try using make menuconfig? I would guess that that
would "refresh" your .config, thereby skipping the interrogation. In
my case:

[kumar(a)bluemoon ~/Software/Kernel/linux-git master] make
[snip]
scripts/kconfig/conf -s arch/x86/Kconfig
*
* Restart config...
*
*
* RCU Subsystem
*
RCU Implementation
> 1. Tree-based hierarchical RCU (TREE_RCU)
2. Preemptable tree-based hierarchical RCU (TREE_PREEMPT_RCU) (NEW)
choice[1-2]:

I now hit Ctrl+C. Next, I do

make menuconfig

I just select Exit. When asked if I can save the configuration file, I say yes.

Now, observe:

[kumar(a)bluemoon ~/Software/Kernel/linux-git master] make
scripts/kconfig/conf -s arch/x86/Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
...

The interrogation step was skipped.

Hope this helps.

Kumar
--
> Where in the US is Linus?

He was in the "Promise Land".
-- David S. Miller <davem(a)caip.rutgers.edu>
From: Daniel Bareiro on
Hi, Kumar.

On Thursday, 17 December 2009 19:34:09 -0600,
Kumar Appaiah wrote:

> On Thu, Dec 17, 2009 at 10:26:39PM -0300, Daniel Bareiro wrote:
> > > Well, the kernel build does check what your current config is, and
> > > based on that, asks you some new questions. One way I get around this
> > > is:
> > >
> > > cd <kernel-build-directory>
> > > cp /boot/config-$(uname -r) .config
> > > make menuconfig # choose the options you want.
> > > Run make-kpkg to build my kernel deb.
> > >
> > > The make menuconfig step refreshes your config, so that you can skip
> > > the "interrogation" step.
> >
> > These steps are similar to which I'm doing, although not to the Debian
> > way:
> >
> > # cd /usr/src/linux-2.6.32
> > # cp /boot/config-`uname -r` ./.config
> > # make ARCH=x86_64 menuconfig
> > # make
> >
> > The "interrogation" step comes when doing "make".
> >
> > But it seems that it is obtaining some things of the configuration in
> > /boot/, because in the questions I see (without form to be able to
> > modify) that the family is Pentium-Pro (M686) and in
> > /usr/src/linux/.config I have:
> >
> > CONFIG_64BIT=y
> > # CONFIG_X86_32 is not set
> > CONFIG_X86_64=y
> > CONFIG_X86=y

> Well, then did you try using make menuconfig? I would guess that that
> would "refresh" your .config, thereby skipping the interrogation. In
> my case:
>
> [kumar(a)bluemoon ~/Software/Kernel/linux-git master] make
> [snip]
> scripts/kconfig/conf -s arch/x86/Kconfig
> *
> * Restart config...
> *
> *
> * RCU Subsystem
> *
> RCU Implementation
> > 1. Tree-based hierarchical RCU (TREE_RCU)
> 2. Preemptable tree-based hierarchical RCU (TREE_PREEMPT_RCU) (NEW)
> choice[1-2]:
>
> I now hit Ctrl+C. Next, I do
>
> make menuconfig
>
> I just select Exit. When asked if I can save the configuration file, I say yes.
>
> Now, observe:
>
> [kumar(a)bluemoon ~/Software/Kernel/linux-git master] make
> scripts/kconfig/conf -s arch/x86/Kconfig
> CHK include/linux/version.h
> UPD include/linux/version.h
> ...
>
> The interrogation step was skipped.

This only works in the case of not using ARCH=x86_64 with make
menuconfig in the second time that is invoked. But when not using this
variable, the processor family returns to be like Pentium Pro and in the
.config file I get:

# CONFIG_64BIT is not set
CONFIG_X86_32=y
# CONFIG_X86_64 is not set
CONFIG_X86=y

I tried selecting in the ncurses menu the option
"Opteron/Athlon64/Hammer/K8" for the processor family, but even so I do
not see changes in the values of the variables that I've indicated
above.

Thanks for your reply.

Regards,
Daniel
--
Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Lenny - Linux user #188.598