[OpenWrt-Devel] [LEDE-DEV] Bounty: simplify extracting/restoring kernel .config
Felix Fietkau
nbd at nbd.name
Tue Jan 31 04:19:05 EST 2017
On 2017-01-29 22:37, Philip Prindeville wrote:
> Hi.
>
> I’m working on a project where I need to be able to force certain
> kernel configuration parameters from a script, to automate building
> tailored kernels for performance testing, certification, etc.
>
> I love the way that I can use “scripts/diffconfig.sh” to save the
> deltas into a file… update the cloning/checkout of master over time,
> yet retain my saved overrides by doing a “cp ../my.config .config ;
> make defconfig oldconfig” and always end up with a known/good
> configuration.
>
> Alas, I can’t do the same for the target kernel in a scripted way.
>
> I’d like to put out a bounty for doing so. If you’re interested,
> contact me via email to discuss the deliverable and the terms of
> payment.
>
> Ideally, this would be of broad enough applicability that I’d want to
> upstream this back to OpenWRT for everyone, so keep that in mind as
> well.
This is already implemented. You can put any kernel configuration
overrides into env/kernel-config.
Generating those is fairly easy too, you can use this command:
make kernel_menuconfig CONFIG_TARGET=env
You can also put a full kernel config in that file instead of a delta.
Running make kernel_oldconfig CONFIG_TARGET=env afterwards will reduce
that full config to a delta relative to the defaults that LEDE uses.
- Felix
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list