[OpenWrt-Devel] Dynamically generate custom files before building?

Sami Olmari sami at olmari.fi
Tue Mar 24 12:33:54 EDT 2015


Why not use ./scripts/env with your own batchfile? It has all the things
you need for multiple hardware configurations on single buildroot... only
thing you need to do is automate it with bash-script etc...

Sami Olmari
On Mar 24, 2015 6:15 PM, "Nguyễn Hồng Quân" <ng.hong.quan at gmail.com> wrote:

> Hi
>
> What I mean is each target device will have its own default config files.
> I'm thinking about /etc/config/network and /etc/config/wireless.
>
> I want to dynamically generate the custom files of those "network",
> "wireless" and place in files/ folder. I want to find the default files,
> modify it and copy to files/ folder. The modification will be set SSID, set
> wireless password... Those actions are done by script.
>
> The problem is I don't know where those default files are.
>
>
> On Tue, Mar 24, 2015 at 12:11 PM, Christian Schoenebeck <
> christian.schoenebeck at gmail.com> wrote:
>
>> For me a shell script is doing the job. Calling parameter is the target.
>> I use a separate configuration directory beside building directory.
>> I copy the correct files for the target into the files directory
>> and the correct .config into building directory
>> and then call make. All inside the script.
>>
>
> If I cannot know where those default are. I may have to use this approach.
>
> Thank nam228, when I look into the Makefile, I see it mentions "target"
> folder. This may be a hint to look for.
>
> --
> Quân
> ***********************************************
> * Nguyễn Hồng Quân                            *
> * Y!M: ng_hquan_vn                            *
> * Facebook: ng.hong.quan                      *
> * Web: quan.hoabinh.vn                        *
> ***********************************************
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150324/574c560d/attachment.htm>
-------------- next part --------------
_______________________________________________
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