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

Petr Štetiar ynezz at true.cz
Sun Jan 1 12:13:31 EST 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
_______________________________________________
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