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

Nguyễn Hồng Quân ng.hong.quan at gmail.com
Tue Mar 24 12:43:17 EDT 2015


Thank Jean-Michel

Your script has many valuable information

On Wed, Mar 25, 2015 at 12:11 AM, Jean-Michel Pouré - GOOZE <
jmpoure at 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.
>
> Currently, my scripts look like this one :
> *****************
> #git clone git://git.openwrt.org/openwrt.git openwrt-ar71xx
> cd openwrt-ar71xx
>
> #echo "make dirclean"
> #make dirclean
>
> echo "git checkout"
> git checkout master
> git pull
>
> echo "updating feeds"
> ./scripts/feeds update -a
> ./scripts/feeds install luci
> ./scripts/feeds install luci-proto-ipv6
>
> echo "make defconfig"
> rm -f .config
> echo  >.config 'CONFIG_TARGET_ar71xx_generic_TLWR841=y'
> echo  >>.config 'CONFIG_PACKAGE_luci=y'
> echo  >>.config 'CONFIG_PACKAGE_luci-proto-ipv6=y'
>
> make defconfig
>
> echo "compiling"
> make -j 5
> *****************
>
> Next thing I would like to test is create custom targets. I am not very
> sure how to work. But basically, can define
> CONFIG_TARGET_ar71xx_generic_TLWR841_myown
>
> I read on the wiki there was also the ability to compile all package and
> then use image builder to quickly build custom installers.
>
> At one point, if you need to initialize dozens of routers and APs, you
> probably want to use image builder.
>

About image builder, the wiki
http://wiki.openwrt.org/doc/howto/obtain.firmware.generate

*Image Generator* is the program that creates the OpenWrt firmware image
file. In the process of compiling OpenWrt
<http://wiki.openwrt.org/doc/howto/build>, *Image Generator* is coercively
created (compiled), because it is needed to eventually create the image
file. It is located in /openwrt/trunk/xxx and you can use it, to create
more image-files from the packages you obtained during compilation.

but I don't know what is "xxx" and also cannot find the "trunk" folder.
Could you please tell me where it is?
-- 
Quân
***********************************************
* Nguyễn Hồng Quân                            *
* Y!M: ng_hquan_vn                            *
* Facebook: ng.hong.quan                      *
* Web: quan.hoabinh.vn                        *
***********************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150325/92dbcb41/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