[LEDE-DEV] Scripting builds... how to?

Petr Štetiar ynezz at true.cz
Sun Jan 1 09:13:31 PST 2017


Philip Prindeville <philipp_subx at redfish-solutions.com> [2016-12-31 16:12:21]:

Hi,

> cp ../my-saved-config .config
> make defconfig

I use the same steps also.

> to generate the .config file in a completely scripted way, by seeding it with the minimum set of relevant parameters (the deltas) per the steps described here:
> 
> https://wiki.openwrt.org/doc/howto/build
> 
> Is there an equivalent way to generate the kernel config by seeding it with minimum state?

Look at the scripts/diffconfig file for details, probably at the kconfig.pl usage.

> I don’t want to save the complete .config because that changes from release to release, so there wouldn’t be any point… all I care about is how I’m differentiating my build from the defaults.

You can just do:

  scripts/diffconfig > ../my-saved-config

it should contain everything needed to build the image.

-- ynezz



More information about the Lede-dev mailing list