[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Compiling Linux kernel



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@bdsi.com (no longer valid - where are you now, Martin?)
		-- from /usr/src/linux/drivers/cdrom/mcd.c

Attachment: signature.asc
Description: Digital signature


Reply to: