[PATCH 0/4] kconfig: streamline_config.pl: optionally accept lsmod output

From: Alan Jenkins
Date: Fri Nov 20 2009 - 10:51:10 EST


On 11/13/09, Luis R. Rodriguez <lrodriguez@xxxxxxxxxxx> wrote:
> On Fri, Nov 13, 2009 at 04:02:04AM -0800, Alan Jenkins wrote:
>> On 11/13/09, Luis R. Rodriguez <lrodriguez@xxxxxxxxxxx> wrote:
>> > On Thu, Nov 12, 2009 at 3:31 PM, Alan Jenkins
>> > <sourcejedi.lkml@xxxxxxxxxxxxxx> wrote:
>> >> On 11/12/09, Luis R. Rodriguez <lrodriguez@xxxxxxxxxxx> wrote:
>> >>>
>> >>> The new 'make localmodconfig' proves very useful but on low end
>> >>> systems we do not want to 'git clone' an entire kernel tree or
>> >>> download a whole kernel but just cross compile the kernel on a
>> >>> bigger machine. The .config generated with 'make localmodconfig'
>> >>> is still very helpfup though
>> >>
>> >> When I tried this for my netbook, my approach was to copy
>> >> /proc/modules and /boot/config from the netbook. As a shameless hack,
>> >> I temporarily bind mounted /proc/modules on the build system. I guess
>> >> the cleaner way would be to copy the result of "lsmod", and have
>> >> localmodconfig accept "LSMOD_FILE=file".
>> >>
>> >> Naturally I think my approach is simpler, despite not having actually
>> >> implemented it properly :). What do you think about it?
>
> Patches welcomed :)

Here goes :). The first three patches are unrelated fixes. Patch 4 implements
"make localmodconfig MODULES_LIST=lsmod.out".

1. kconfig: streamline_config.pl: "use strict" (and fix the errors)
2. kconfig: streamline_config.pl: fix out-of-tree builds
3. kconfig: streamline_config.pl: add handling for "if" statements in Kconfig
4. kconfig: streamline_config.pl: optionally accept lsmod output

Regards
Alan

--
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/