Building OpenWRT for Arduino Yun Rev 2 from source


I want to build OpenWRT for yun rev-2 from scratch.

I downloaded openwrt source from GitHub - openwrt/openwrt: This repository is a mirror of It is for reference only and is not active for check-ins or for reporting issues. We will continue to accept Pull Requests here. They will be merged via staging trees then into openwrt.git. All issues should be reported at:

Im using seeeduino YUN rev -2 board with Dragino HE using ATHEROS AR9331 chipset, which integrates MIPS 24Kc processor

After installing i ran make menuconfig, which TARGET do i pick? Should i pick" Atheros ATH79"

which Subtarget should i pick?
which Target profile should i pick (YunCore A770, YiunCore A782, YiunCore XD4200)?