[LEDE-DEV] Out of tree builds

Karl Palsson karlp at tweak.net.au
Mon Oct 17 04:12:27 PDT 2016


The scripts/env script is intended to help with this. See
https://wiki.openwrt.org/doc/devel/env

./scripts/env new my-target-a
make menuconfig/whatever
make
./scripts/env new my-target-b
make menuconfig/whatever
make
./scripts/env switch my-target-a
-- back to target a configs now

(There might be other, less well documented paths)

Sincerely,
Karl P


David Woodhouse <dwmw2 at infradead.org> wrote:
> Is there a simple trick I'm missing, to build for multiple
> targets from the same build tree?
> 
> I'm mostly just manually copying my .config file out of the way
> and swapping it for a different one each time — but there's got
> to be a better way, surely?
> 
> mv .config .config.wndr3800
> mv .config.tdw8970 .config
> make -j32 oldconfig world
> 
> -- 
> dwmw2
> 
> 
> _______________________________________________
> Lede-dev mailing list
> Lede-dev at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/lede-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP Digital Signature
URL: <http://lists.infradead.org/pipermail/lede-dev/attachments/20161017/92237069/attachment.sig>


More information about the Lede-dev mailing list