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 <dw...@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@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/lede-dev

Attachment: signature.asc
Description: OpenPGP Digital Signature

_______________________________________________
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev

Reply via email to