Developing lightweight computation at the DSG edge

Commit 297cc7ed authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

Update qmp.profiles.conf and add new devices



Migrate available devices from legacy ar71xx to the new ath79 target.
Signed-off-by: default avatarRoger Pueyo Centelles <roger.pueyo@guifi.net>
parent c24c14fd
SUPPORTED_PROFILES="alix bullet cf-e120a-v3 cf-wr800n cpe510-520-v1 dir-810l \
dragino2 lap-120 lamobo-r1 linkit7688 mc-mac1200r microwrt miwifi-mini phicomm-k2p \
rb-nand-64m rb-nand-large rb-nand-large-ac nanostation-ac nanostation-ac-loco \
nslm5-xw nsm2 nsm5 nsm5-xw pico2 rb921gs-5Hpacd-15s \
rbwapg-5hact2hnd rb-nor-flash-16M-ac rocket-m rb-sxt5n \
rocket-m-xw rs rspro soekris45xx \
tl-2543-v1 tl-wdr3500-v1 tl-wdr3600-v1 \
tl-wdr4300-v1 tl-wdr4310-v1 tl-wdr4900-v1 \
tl-wr842n-v1 uap-pro ubiquiti-edgerouterx ubiquiti-edgerouterx-sfp\
unifiac-lite unifi-ap vocore-16M vocore-8M wl-wn575a3 wrtnode \
wt1520-8M wt3020-8M x86 x86-64 youhua-wr1200js zbt-ape522ii"
SUPPORTED_PROFILES="comfast_cf-e120a-v3 comfast_cf-wr800n \
dlink_dir-810l \
mediatek_linkit-smart-7688 \
microduino_microwrt \
nexx_wt1520-8M nexx_wt3020-8M \
pc-engines_alix \
phicomm_k2p \
soekris_45xx \
sun7i_a20-lamobo-r1 \
tplink_cpe510-v1 tplink_cpe510-v2 tplink_cpe510-v3 tplink_cpe610-v1 \
tplink_tl-wr2543-v1 tplink_tl-wdr3500-v1 tplink_tl-wdr3600-v1 \
tplink_tl-wdr4300-v1 tplink_tl-wdr4900-v1 \
tplink_tl-wr842n-v1 tplink_tl-wr842n-v2 tplink_tl-wr842n-v \
ubiquiti-edgerouterx ubiquiti-edgerouterx-sfp \
ubnt_bullet-m ubnt_bullet-m-xw ubnt_lap-120 ubnt_nanostation-ac \
ubnt_nanostation-ac-loco ubnt_nanostation-m ubnt_nanostation-m-xw \
ubnt_nanostation-m-loco ubnt_nanostation-m-loco-xw \
ubnt_routerstation ubnt_routerstation-pro \
ubnt_unifiac-lite ubnt_unifiac-mesh \
ubnt-rocket-m-ti ubnt-rocket-m-xw \
ubnt-uap-pro ubnt-unifi \
ubnt2-pico2 \
vocore_vocore-16M vocore_vocore-8M \
wavlink_wl-wn575a3 \
wrtnode_wrtnode \
x86_32-generic x86_64-generic \
xiaomi_miwifi-mini \
youhua_wr1200js \
zbtlink_zbt-ape522ii \
compex_wpe72-8M \
dragino_dragino2 \
mercury_mc-mac1200r \
mikrotik_rb-nand-64m mikrotik_rb-nand-large mikrotik_rb-nand-large-ac \
mikrotik_rb-nor-flash-16M-ac mikrotik_rb921gs-5Hpacd-15s \
mikrotik_rbwapg-5hact2hnd mikrotik_rb-sxt5n \
tplink_tl-wdr4310-v1"
EXTRAPKGS=""
FACTORY=""
......@@ -16,63 +43,26 @@ SYSUPGRADE=""
SQUASHIMAGE=""
EXT4IMAGE=""
[ "$TPROFILE" == "alix" ] && {
NAME=PC-Engines_Alix
ARCH=x86
SUBARCH=geode
PROFILE=Generic
FLAVOR=qmpbig
SQUASHIMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$COMBINEDSQUASHIMG
EXT4IMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$COMBINEDEXT4IMG
BINEXT=img.gz
}
[ "$TPROFILE" == x86 ] && {
NAME=Generic_x86
ARCH=x86
[ "$TPROFILE" == compex_wpe72-8M ] && {
NAME=Compex_WPE72-8M
ARCH=ar71xx
SUBARCH=generic
PROFILE=Generic
FLAVOR=qmpbig
EXTRAPKGS="kmod-ath9k kmod-e1000e"
SQUASHIMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$COMBINEDSQUASHIMG
EXT4IMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$COMBINEDEXT4IMG
BINEXT=img.gz
}
[ "$TPROFILE" == x86-64 ] && {
NAME=Generic_x86-64
ARCH=x86
SUBARCH=64
FLAVOR=qmpbig
EXTRAPKGS=kmod-ath9k
PROFILE=Generic
SQUASHIMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$COMBINEDSQUASHIMG
EXT4IMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$COMBINEDEXT4IMG
BINEXT=img
}
[ "$TPROFILE" == soekris45xx ] && {
NAME=Soekris_Net45xx
ARCH=x86
SUBARCH=legacy
PROFILE=Generic
FLAVOR=qmpsmall
SQUASHIMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$COMBINEDSQUASHIMG
EXT4IMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$COMBINEDEXT4IMG
BINEXT=img.gz
PROFILE=WPE72_8M
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-wpe72-squashfs-8M-factory.img
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-wpe72-squashfs-8M-sysupgrade.img
}
[ "$TPROFILE" == bullet ] && {
NAME=Ubiquiti_Bullet-M
[ "$TPROFILE" == dragino_dragino2 ] && {
NAME=Dragino_Dragino-2_MS14
ARCH=ar71xx
SUBARCH=generic
PROFILE=ubnt-bullet-m
FLAVOR=qmpsmall
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
PROFILE=dragino2
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == cf-e120a-v3 ] && {
[ "$TPROFILE" == comfast_cf-e120a-v3 ] && {
NAME=Comfast_CF-E120A-v3
ARCH=ath79
SUBARCH=generic
......@@ -82,7 +72,7 @@ EXT4IMAGE=""
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == cf-wr800n ] && {
[ "$TPROFILE" == comfast_cf-wr800n ] && {
NAME=Comfast_CF-WR800N
ARCH=ramips
SUBARCH=mt7620
......@@ -92,98 +82,77 @@ EXT4IMAGE=""
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == cpe510-520-v1 ] && {
NAME=TP-Link_CPE-510-520-v1
ARCH=ar71xx
SUBARCH=generic
FLAVOR=qmpsmall
PROFILE=cpe510-520-v1
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == lap-120 ] && {
NAME=Ubiquiti_LiteAP-AC-120
ARCH=ath79
SUBARCH=generic
PROFILE=ubnt_lap-120
[ "$TPROFILE" == dlink_dir-810l ] && {
NAME=D-Link_DIR-810L
ARCH=ramips
SUBARCH=mt7620
FLAVOR=qmpsmall
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
PROFILE=dlink_dir-810l
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == nsm2 ] && {
NAME=Ubiquiti_NanoStation-M2
ARCH=ar71xx
SUBARCH=generic
PROFILE=ubnt-nano-m
[ "$TPROFILE" == mediatek_linkit-smart-7688 ] && {
NAME=MediaTek_LinkIt-Smart-7688
ARCH=ramips
SUBARCH=mt76x8
FLAVOR=qmpsmall
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
PROFILE=mediatek_linkit-smart-7688
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == nsm5 ] && {
NAME=Ubiquiti_NanoStation-M5
[ "$TPROFILE" == mercury_mc-mac1200r ] && {
NAME=Mercury_MAC1200R
ARCH=ar71xx
SUBARCH=generic
PROFILE=ubnt-nano-m
FLAVOR=qmpsmall
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == nsm5-xw ] && {
NAME=Ubiquiti_NanoStation-M5-XW
ARCH=ar71xx
SUBARCH=generic
PROFILE=ubnt-nano-m-xw
FLAVOR=qmpsmall
PROFILE=mc-mac1200r
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == nslm5-xw ] && {
NAME=Ubiquiti_NanoStation-Loco-M5-XW
ARCH=ar71xx
SUBARCH=generic
PROFILE=ubnt-loco-m-xw
[ "$TPROFILE" == microduino_microwrt ] && {
NAME=Microduino_MicroWRT
ARCH=ramips
SUBARCH=mt7620
FLAVOR=qmpsmall
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
PROFILE=microduino_microwrt
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == nanostation-ac ] && {
NAME=Ubiquiti_NanoStation-AC
ARCH=ath79
SUBARCH=generic
PROFILE=ubnt_nanostation-ac
[ "$TPROFILE" == nexx_wt1520-8M ] && {
NAME=Nexx_WT1520-8M
ARCH=ramips
SUBARCH=rt305x
FLAVOR=qmpsmall
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
PROFILE=nexx_wt1520-8m
FACTORY=$DISTLEGACY-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTLEGACY-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == nanostation-ac-loco ] && {
NAME=Ubiquiti_NanoStation-AC-loco
ARCH=ath79
SUBARCH=generic
PROFILE=ubnt_nanostation-ac-loco
[ "$TPROFILE" == nexx_wt3020-8M ] && {
NAME=Nexx_WT3020-8M
ARCH=ramips
SUBARCH=mt7620
FLAVOR=qmpsmall
PROFILE=nexx_wt3020-8m
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == lamobo-r1 ] && {
NAME=Lamobo_R1
ARCH=sunxi
SUBARCH=cortexa7
PROFILE=sun7i-a20-lamobo-r1
[ "$TPROFILE" == "pc-engines_alix" ] && {
NAME=PC-Engines_Alix
ARCH=x86
SUBARCH=geode
PROFILE=Generic
FLAVOR=qmpbig
SQUASHIMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFSSDCARD
EXT4IMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$EXT4SDCARD
SQUASHIMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$COMBINEDSQUASHIMG
EXT4IMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$COMBINEDEXT4IMG
BINEXT=img.gz
}
[ "$TPROFILE" == phicomm-k2p ] && {
[ "$TPROFILE" == phicomm_k2p ] && {
NAME=Phicomm_K2P
ARCH=ramips
SUBARCH=mt7621
......@@ -193,7 +162,7 @@ EXT4IMAGE=""
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == rb-nand-64m ] && {
[ "$TPROFILE" == mikrotik_rb-nand-64m ] && {
NAME=MikroTik_RouterBoard_NAND_flash
ARCH=ar71xx
SUBARCH=mikrotik
......@@ -202,8 +171,8 @@ EXT4IMAGE=""
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == rb-nand-large ] && {
NAME=MikroTik_RouterBoard_NAND_large_flash
[ "$TPROFILE" == mikrotik_rb-nand-large ] && {
NAME=MikroTik_RouterBoard_NAND_flash_large
ARCH=ar71xx
SUBARCH=mikrotik
PROFILE=nand-large
......@@ -211,8 +180,8 @@ EXT4IMAGE=""
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == rb-nand-large-ac ] && {
NAME=MikroTik_RouterBoard_NAND_large_flash_802.11ac
[ "$TPROFILE" == mikrotik_rb-nand-large-ac ] && {
NAME=MikroTik_RouterBoard_NAND_flash_largeflash_802.11ac
ARCH=ar71xx
SUBARCH=mikrotik
PROFILE=nand-large-ac
......@@ -220,7 +189,7 @@ EXT4IMAGE=""
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == rb-nor-flash-16M-ac ] && {
[ "$TPROFILE" == mikrotik_rb-nor-flash-16M-ac ] && {
NAME=MikroTik_RouterBoard_SPI_NOR_flash_802.11ac
ARCH=ar71xx
SUBARCH=mikrotik
......@@ -229,7 +198,7 @@ EXT4IMAGE=""
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == rb921gs-5Hpacd-15s ] && {
[ "$TPROFILE" == mikrotik_rb921gs-5Hpacd-15s ] && {
NAME=MikroTik_RB921GS-5HPacD-15S
ARCH=ar71xx
SUBARCH=mikrotik
......@@ -238,7 +207,7 @@ EXT4IMAGE=""
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == rbwapg-5hact2hnd ] && {
[ "$TPROFILE" == mikrotik_rbwapg-5hact2hnd ] && {
NAME=MikroTik_RBwAPG-5HacT2HnD
ARCH=ar71xx
SUBARCH=mikrotik
......@@ -247,7 +216,7 @@ EXT4IMAGE=""
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == rb-sxt5n ] && {
[ "$TPROFILE" == mikrotik_rb-sxt5n ] && {
NAME=MikroTik_RBSXT5nDr2
ARCH=ar71xx
SUBARCH=mikrotik
......@@ -256,156 +225,284 @@ EXT4IMAGE=""
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == rocket-m-xw ] && {
NAME=Ubiquiti_Rocket-M5-XW
ARCH=ar71xx
[ "$TPROFILE" == soekris_45xx ] && {
NAME=Soekris_Net45xx
ARCH=x86
SUBARCH=legacy
PROFILE=Generic
FLAVOR=qmpsmall
SQUASHIMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$COMBINEDSQUASHIMG
EXT4IMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$COMBINEDEXT4IMG
BINEXT=img.gz
}
[ "$TPROFILE" == tplink_cpe510-v1 ] && {
NAME=TP-Link_CPE-510-v1
ARCH=ath79
SUBARCH=generic
FLAVOR=qmpsmall
PROFILE=ubnt-rocket-m-xw
PROFILE=tplink_cpe510-v1
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == pico2 ] && {
NAME=Ubiquiti_PicoStation-2
ARCH=ath25
[ "$TPROFILE" == tplink_cpe510-v2 ] && {
NAME=TP-Link_CPE-510-v2
ARCH=ath79
SUBARCH=generic
FLAVOR=qmptiny
PROFILE=ubnt2-pico2
FACTORY=$DISTCL-$FLAVOR-$ARCH-$PROFILE-$SQUASHSYSUPGRADE
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$PROFILE-$SQUASHSYSUPGRADE
FLAVOR=qmpsmall
PROFILE=tplink_cpe510-v2
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == rocket-m ] && {
NAME=Ubiquiti_Rocket-M
ARCH=ar71xx
[ "$TPROFILE" == tplink_cpe510-v3 ] && {
NAME=TP-Link_CPE-510-v3
ARCH=ath79
SUBARCH=generic
FLAVOR=qmpsmall
PROFILE=ubnt-rocket-m
PROFILE=tplink_cpe510-v3
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == rs ] && {
NAME=Ubiquiti_RouterStation
ARCH=ar71xx
[ "$TPROFILE" == tplink_cpe610-v1 ] && {
NAME=TP-Link_CPE-610-v1
ARCH=ath79
SUBARCH=generic
FLAVOR=qmpsmall
PROFILE=tplink_cpe610-v1
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == sun7i_a20-lamobo-r1 ] && {
NAME=Lamobo_BananaPi_R1
ARCH=sunxi
SUBARCH=cortexa7
PROFILE=sun7i-a20-lamobo-r1
FLAVOR=qmpbig
PROFILE=ubnt-rs
SQUASHIMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFSSDCARD
EXT4IMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$EXT4SDCARD
BINEXT=img.gz
}
[ "$TPROFILE" == ubiquiti_edgerouterx ] && {
NAME=Ubiquiti_EdgeRouter_X
ARCH=ramips
SUBARCH=mt7621
FLAVOR=qmpsmall
PROFILE=ubiquiti_edgerouterx
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == ubiquiti_edgerouterx-sfp ] && {
NAME=Ubiquiti_EdgeRouter_X-SFP
ARCH=ramips
SUBARCH=mt7621
FLAVOR=qmpsmall
PROFILE=ubiquiti_edgerouterx-sfp
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == ubnt_bullet-m-xm ] && {
NAME=Ubiquiti_Bullet-M_XM
ARCH=ath79
SUBARCH=generic
PROFILE=ubnt_bullet-m
FLAVOR=qmpsmall
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == rspro ] && {
NAME=Ubiquiti_RouterStation-Pro
ARCH=ar71xx
[ "$TPROFILE" == ubnt_bullet-m-xw ] && {
NAME=Ubiquiti_Bullet-M_XW
ARCH=ath79
SUBARCH=generic
FLAVOR=qmpbig
PROFILE=ubnt-rspro
PROFILE=ubnt_bullet-m-xw
FLAVOR=qmpsmall
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == tl-2543-v1 ] && {
NAME=TP-Link_TL-WR2543ND-v1
ARCH=ar71xx
[ "$TPROFILE" == ubnt_lap-120 ] && {
NAME=Ubiquiti_LiteAP-AC-120
ARCH=ath79
SUBARCH=generic
PROFILE=ubnt_lap-120
FLAVOR=qmpsmall
PROFILE=tl-wr2543-v1
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == mc-mac1200r ] && {
NAME=Mercury_MAC1200R
ARCH=ar71xx
[ "$TPROFILE" == ubnt_nanostation-ac ] && {
NAME=Ubiquiti_NanoStation-AC
ARCH=ath79
SUBARCH=generic
PROFILE=ubnt_nanostation-ac
FLAVOR=qmpsmall
PROFILE=mc-mac1200r
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == tl-wr842n-v1 ] && {
NAME=TP-Link_TL-WR842N-v1
ARCH=ar71xx
[ "$TPROFILE" == ubnt_nanostation-ac-loco ] && {
NAME=Ubiquiti_NanoStation-AC-Loco
ARCH=ath79
SUBARCH=generic
PROFILE=ubnt_nanostation-ac-loco
FLAVOR=qmpsmall
PROFILE=tl-wr842n-v1
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == tl-wdr3500-v1 ] && {
NAME=TP-Link_TL-WDR3500-v1
ARCH=ar71xx
[ "$TPROFILE" == ubnt_nanostation-m ] && {
NAME=Ubiquiti_NanoStation-M_XM
ARCH=ath79
SUBARCH=generic
FLAVOR=qmpbig
PROFILE=tl-wdr3500-v1
PROFILE=ubnt_nanostation-m
FLAVOR=qmpsmall
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == tl-wdr3600-v1 ] && {
NAME=TP-Link_TL-WDR3600-v1
[ "$TPROFILE" == ubnt_nanostation-m-xw ] && {
NAME=Ubiquiti_NanoStation-M_XW
ARCH=ath79
SUBARCH=generic
PROFILE=ubnt_nanostation-m-xw
FLAVOR=qmpsmall
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == ubnt_nanostation-m-loco ] && {
NAME=Ubiquiti_NanoStation-M-Loco_XM
ARCH=ath79
SUBARCH=generic
PROFILE=ubnt_bullet-m
FLAVOR=qmpsmall
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == ubnt_nanostation-m-loco-xw ] && {
NAME=Ubiquiti_NanoStation-M-Loco_XW
ARCH=ath79
SUBARCH=generic
PROFILE=ubnt_bullet-m-xw
FLAVOR=qmpsmall
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == nsm5 ] && {
NAME=Ubiquiti_NanoStation-M5
ARCH=ar71xx
SUBARCH=generic
FLAVOR=qmpbig
PROFILE=tl-wdr3600-v1
PROFILE=ubnt-nano-m
FLAVOR=qmpsmall
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == tl-wdr4300-v1 ] && {
NAME=TP-Link_TL-WDR4300-v1
[ "$TPROFILE" == nsm5-xw ] && {
NAME=Ubiquiti_NanoStation-M5-XW
ARCH=ar71xx
SUBARCH=generic
FLAVOR=qmpbig
PROFILE=tl-wdr4300-v1
PROFILE=ubnt-nano-m-xw
FLAVOR=qmpsmall
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == tl-wdr4310-v1 ] && {
NAME=TP-Link_TL-WDR4310-v1
[ "$TPROFILE" == nslm5-xw ] && {
NAME=Ubiquiti_NanoStation-Loco-M5-XW
ARCH=ar71xx
SUBARCH=generic
PROFILE=ubnt-loco-m-xw
FLAVOR=qmpsmall
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == ubnt_rocket-m ] && {
NAME=Ubiquiti_Rocket-M_XM
ARCH=ath79
SUBARCH=generic
FLAVOR=qmpsmall
PROFILE=ubnt_rocket-m
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == ubnt_routerstation ] && {
NAME=Ubiquiti_RouterStation
ARCH=ath79
SUBARCH=generic
FLAVOR=qmpbig
PROFILE=tl-wdr4310-v1
PROFILE=ubnt_routerstation
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == tl-wdr4900-v1 ] && {
NAME=TP-Link_TL-WDR4900-v1
ARCH=mpc85xx
[ "$TPROFILE" == ubnt_routerstation-pro ] && {
NAME=Ubiquiti_RouterStation-Pro