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

2015-03-25 Thread Jean-Michel Pouré - GOOZE
Le mercredi 25 mars 2015 à 00:10 +0200, Sami Olmari a écrit : isn't it quite self-explanatory? Yes, but we don't know how these scripts work and need to read source code. Apparently, it branches GIT. So what happens when we need to upgrade to latest GIT. Furthermore, can you build several

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

2015-03-25 Thread Jean-Michel Pouré - GOOZE
Le mercredi 25 mars 2015 à 00:43 +0800, Nguyễn Hồng Quân a écrit : Your script has many valuable information You are more than welcome. Maybe we should create a page on the wiki to explain howto: create a minimal Debian build environment, chroot, build. But I am not sure to understand how to

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

2015-03-25 Thread nam228
Thank Jo-Philipp Wich for sharing your knowledge. In my case I'm using Barrier Breaker. I modified this file : openwrt/target/linux/ar71xx/base-files/etc/uci-defaults/02_network Nam. On 25/03/2015 19:36, Jo-Philipp Wich wrote: Hi, some architectures do not have any default files for

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

2015-03-25 Thread Jo-Philipp Wich
Hi, some architectures do not have any default files for wireless and network in the repository. Those files are generated by scripts on first boot. The question is raised over and over again in the forums and on the lists. The natural solution to your kind of objective is to write an

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

2015-03-24 Thread Sami Olmari
isn't it quite self-explanatory? with ./scripts/env new name here you generate new profile, where you can then have own configs and own set of files/ etc. So... 10 devices, 10 profiles, each having own settings and files... You get the idea. Sami Olmari On Tue, Mar 24, 2015 at 6:44 PM, Nguyễn

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

2015-03-24 Thread Jean-Michel Pouré - GOOZE
I think you should try to modify openwrt/Makefile Add your own script for target devices. I am thinking about moving to a Makefile also. Currently, my scripts look like this one : * #git clone git://git.openwrt.org/openwrt.git openwrt-ar71xx cd openwrt-ar71xx #echo make

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

2015-03-24 Thread Nguyễn Hồng Quân
Hi On Wed, Mar 25, 2015 at 12:33 AM, Sami Olmari s...@olmari.fi wrote: 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... I tried the

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

2015-03-24 Thread Joseph Marlin
Cc: openwrt-devel@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

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

2015-03-24 Thread Nguyễn Hồng Quân
Thank Jean-Michel Your script has many valuable information On Wed, Mar 25, 2015 at 12:11 AM, Jean-Michel Pouré - GOOZE jmpo...@gooze.eu wrote: I think you should try to modify openwrt/Makefile Add your own script for target devices. I am thinking about moving to a Makefile also.

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

2015-03-24 Thread Nguyễn Hồng Quân
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

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

2015-03-24 Thread Sami Olmari
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.q...@gmail.com wrote: Hi

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

2015-03-23 Thread Nguyễn Hồng Quân
Hello all If I want to build customized OpenWrt, I need to place all custom file in files/ folder. The problem is that a set of custom files can only be applied to 1 device, i.e /etc/config/wireless file for TP Link router can not be used for D-Link. Is there any way that I can use a script to

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

2015-03-23 Thread Sami Olmari
There is tool for that in buildroot... run ./scripts/env or look wiki for more info. It's for having multiple device profiles in one buildroot. Sami Olmari On Mar 23, 2015 6:11 PM, Nguyễn Hồng Quân ng.hong.q...@gmail.com wrote: Hello all If I want to build customized OpenWrt, I need to

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

2015-03-23 Thread Christian Schoenebeck
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.

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

2015-03-23 Thread nam228
Hi a Quan, I think you should try to modify openwrt/Makefile Add your own script for target devices. After that when compiling run make target=XX or something like that. Nam. On 24/03/2015 00:10, Nguyễn Hồng Quân wrote: Hello all If I want to build customized OpenWrt, I need to place all