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

2017-01-01 Thread Petr Štetiar
Philip Prindeville  [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

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


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

2017-01-01 Thread Sven Roederer
Am Samstag, 31. Dezember 2016, 16:12:21 CET schrieb Philip Prindeville:
> Hi.
> 
> I wanted to be able to script building images completely.

> Is there an equivalent way to generate the kernel config by seeding it with
> minimum state?
> 
> 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.
> 

Philip,

maybe you will have a look on the buildscripts for Berlin-Freifunk [1].
We use OpenWrt inside our buildscripts and having a "config"-directory with a 
common config and an additional config for each build.
We use this all to have diferent configurations per architecture and dan even 
build different images with a individual set to packages included.

Sven

[1] - https://github.com/freifunk-berlin/firmware

I think 

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


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

2016-12-31 Thread Philip Prindeville
Hi.

I wanted to be able to script building images completely.  I understand how to 
do:

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

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?

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.

Thanks,

-Philip


___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev