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

Joseph Marlin jmarlin at saucontech.com
Tue Mar 24 12:45:17 EDT 2015


If I understand your question correctly, I think you'll find the default config files in: target/linux/your_architecture_here/base-files/etc/config/

Joseph Marlin

----- Original Message -----
From: "Nguyễn Hồng Quân" <ng.hong.quan at gmail.com>
To: "Christian Schoenebeck" <christian.schoenebeck at gmail.com>
Cc: openwrt-devel at lists.openwrt.org
Sent: Tuesday, March 24, 2015 12:14:32 PM
Subject: Re: [OpenWrt-Devel] Dynamically generate custom files before	building?

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
_______________________________________________
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