Re: How to reliable rebuild different kernel versions with the sameconfig?

From: Randy Dunlap
Date: Fri Jul 03 2009 - 12:08:16 EST


On Fri, 3 Jul 2009 16:46:42 +0200 Nico Schottelius wrote:

> Hello!
>
> We encounter very strange delays here in a test application
> on different kernels. To debug it a bit better, we would like to
>
> - start the application, store results
> - build the next older kernel
> - install it
> - boot it
> - goto 1 (*)
>
> The problem is, that after changing the version, make all or make oldconfig
> prompt us to fillout some values, which is problematic, because we
> want to run it automatically.

Use:
$ yes "" | make oldconfig
to supply replies to the prompts.

> Is there a way to use a base config, that includes support for the
> hardware (ibm x3550 m2) and all the other values are adopted from
> default values?

See Documentation/kbuild/kconfig.txt, the section on KCONFIG_ALLCONFIG.
I use this quite a bit.

> make defconfig && cat myconfig >> .config does not do the trick :-)

That needs a "make oldconfig" afterwards, then it might work.

> Sincerly,
>
> Nico
>
> (*): This is so far already automated, have a look at
> http://git.schottelius.org/?p=nsbin;a=commit;h=31461434cbda96bfb71c741c9510b1d92dcbb161
>
> --
> Currently moving *.schottelius.org to http://www.nico.schottelius.org/ ...


---
~Randy
LPC 2009, Sept. 23-25, Portland, Oregon
http://linuxplumbersconf.org/2009/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/