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