2005-09-26 12:08:52

by Ahmad Reza Cheraghi

[permalink] [raw]
Subject: Automatic Configuration of a Kernel

Hi folks,

For my EndThesis, in the Niederrhein University of
Applied Sciences, I've almost finished a framework
that generates a .config file based on the target
system.This program should help people to generate a
linux kernel Config without spending a lot of time at
the configuration.

The basic idea of the framework is, that you can
specify in the Kconfig files a script which
auto-detect if the hardware involved in this option is
present or not (the script reply 'y' or 'n'). It's up
to the interface to choose what to do with the answer.

This framework is now in its test stage. It works on
my Acer Laptop(TM291LMI with Pentium M and Radeon
9700). That means, that the framework is functional
but additional scripts have to be written for other
type
of hardware/functionality (far away from completed).

The code of this framework has been splitted into six
patches (to be posted following to this mail):
- conf.c and expr.h
- parser
- makefile
- rules
- kconfigs
- documentation

To try it, just patch a 2.6.13 kernel with the patches
following this
mail and set the scripts as follow: chmod u+rwx
scripts/kconfig/rules/*
Then, just type: 'make autoconfig' or 'make
autochoiceconfig'.

The 'autoconfig' will detect your hardware and
automatically include in the kernel whatever hardware
is detected. The 'autochoiceconfig' will let you
choose to include the feature or not when a hardware
is detected.

Any comments and suggestions are welcome !


Regards
Ahmad Reza Cheraghi





__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


2005-09-26 13:57:58

by Michal Piotrowski

[permalink] [raw]
Subject: Re: Automatic Configuration of a Kernel

Hi,

Ahmad Reza Cheraghi wrote:
> Hi folks,
>
> For my EndThesis, in the Niederrhein University of
> Applied Sciences, I've almost finished a framework
> that generates a .config file based on the target
> system.This program should help people to generate a
> linux kernel Config without spending a lot of time at
> the configuration.
>
[snip]
> Any comments and suggestions are welcome !
>
>
> Regards
> Ahmad Reza Cheraghi
>
Can you put this patch set on any server?
I know it's probably my thunderbird problem, but when I'm tring
to apply your patches I've got:
patch: **** malformed patch at line 38: 128);

Regards,
Michal Piotrowski

2005-09-26 14:06:53

by Michal Piotrowski

[permalink] [raw]
Subject: Re: Automatic Configuration of a Kernel

Ahmad Reza Cheraghi wrote:
> Hi folks,
>
> For my EndThesis, in the Niederrhein University of
> Applied Sciences, I've almost finished a framework
> that generates a .config file based on the target
> system.This program should help people to generate a
> linux kernel Config without spending a lot of time at
> the configuration.
[snip]

> Any comments and suggestions are welcome !
Unfortunately your patches are wordwraped.

Regards,
Michal Piotrowski

2005-09-27 08:05:13

by Coywolf Qi Hunt

[permalink] [raw]
Subject: Re: Automatic Configuration of a Kernel

On 9/26/05, Ahmad Reza Cheraghi <[email protected]> wrote:
> Hi folks,
>
> For my EndThesis, in the Niederrhein University of
> Applied Sciences, I've almost finished a framework
> that generates a .config file based on the target
> system.This program should help people to generate a
> linux kernel Config without spending a lot of time at
> the configuration.
>
> The basic idea of the framework is, that you can
> specify in the Kconfig files a script which
> auto-detect if the hardware involved in this option is
> present or not (the script reply 'y' or 'n'). It's up

Consider also 'm'odule support?
--
Coywolf Qi Hunt
http://sosdg.org/~coywolf/

2005-09-27 08:13:21

by Emmanuel Fleury

[permalink] [raw]
Subject: Re: Automatic Configuration of a Kernel

Coywolf Qi Hunt wrote:
>
> Consider also 'm'odule support?

I think the point of a script is just to detect if the piece of hardware
is here or not ('y' or 'n'). Then, it's up to the interface to decide
what question to ask to the user (could be always 'y', could be always
'm', could ask the user for a 'm/y/n' answer, ...).

But the patches that Ahmad sent have been spoiled by his mailer, I think
he will resend it today (maybe creating a fresh thread would be a good
idea).

Regards
--
Emmanuel Fleury

I can resist everything except temptation.
-- Oscar Wilde