Developing lightweight computation at the DSG edge

Commit e60f3ce7 authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

Add a cooker option to generate a whole qMp release

parent 6ebcaa16
......@@ -63,6 +63,7 @@ usage() {
echo " --remote : instead of building local SDK packages. Use only remote repositories for cooking"
echo " --community=<name/prof> : specify which network community and profile device to use (if any)"
echo " --no-update : do not update package list when cooking (requires patch_ib_no_update.sh snippet)"
echo " -r : make a qMp release"
echo ""
}
......@@ -449,8 +450,58 @@ join_packages() {
done
}
make_qmp_release() {
DISTCL="openwrt"
DISTLEGACY="openwrt"
COMBINEDEXT4IMG="combined-ext4.img.gz"
COMBINEDEXT4VDI="combined-ext4.vdi"
COMBINEDEXT4VMDK="combined-ext4.vmdk"
COMBINEDSQUASH="combined-squashfs.bin"
COMBINEDSQUASHIMG="combined-squashfs.img.gz"
COMBINEDSQUASHVDI="combined-squashfs.vdi"
COMBINEDSQUASHVMDK="combined-squashfs.vmdk"
EXT4SDCARD="ext4-sdcard.img.gz"
SDCARDVFATEXT4="sdcard-vfat-ext4.img"
SQUASHFACTORY="squashfs-factory.bin"
SQUASHSYSUPGRADE="squashfs-sysupgrade.bin"
SQUASHFSSDCARD="squashfs-sdcard.img.gz"
#build_all_sdk
[ -f qmp.profiles.conf ] && . qmp.profiles.conf
for i in $SUPPORTED_PROFILES; do
TPROFILE="$i" && . qmp.profiles.conf
flavor=$FLAVOR
cook "$ARCH/$SUBARCH" "$PROFILE"
local output_dir="$PWD/$bin_output/$ARCH/$SUBARCH/$PROFILE/$FLAVOR"
[ "$FACTORY" ] && {
echo "$NAME - FACTORY"
ls "$output_dir/$(echo $FACTORY | sed 's/_/-/g')"
}
[ "$SYSUPGRADE" ] && {
echo "$NAME - SYSUPGRADE"
ls "$output_dir/$(echo $SYSUPGRADE | sed 's/_/-/g')"
}
[ "$SQUASHIMAGE" ] && {
echo "$NAME - SQUASHIMAGE"
ls "$output_dir/$(echo $SQUASHIMAGE | sed 's/_/-/g')"
}
[ "$EXT4IMAGE" ] && {
echo "$NAME - EXT4IMAGE"
ls "$output_dir/$(echo $EXT4IMAGE | sed 's/_/-/g')"
}
done
}
[ -z "$1" ] && usage
OPTS=$(getopt -o hd:fb:c:d:i:j: -l targets,build-all,download-all,profiles:,flavors,profile:,flavor:,\
OPTS=$(getopt -o hd:fb:c:d:i:j:rb: -l targets,build-all,download-all,profiles:,flavors,profile:,flavor:,\
update-feeds,no-update,no-link-ib,only-sdk,only-ib,remote,ib,sdk,sdk-file:,ib-file:,help,force,clean,\
communities,update-communities,community:,cook-all,package:,extra-pkg:,force-local -n $0 -- "$@")
eval set -- "$OPTS"
......@@ -589,6 +640,10 @@ while true; do
join_packages $system_pkg
shift;shift
;;
-r)
qmp_release=1
shift
;;
-h)
usage
break
......@@ -650,5 +705,6 @@ profile=${profile:-Default}
[ "$build_all" == "1" ] && build_all_sdk
[ "$cook_all" == "1" ] && cook_all_targets
[ "$qmp_release" == "1" ] && make_qmp_release
exit $RESULT
SUPPORTED_PROFILES="alfa-nx alix bullet cf-wr800n dir-810l dragino2 lamobo-r1 linkit7688 mc-mac1200r microwrt miwifi-mini nslm5-xw nsm2 nsm5 nsm5-xw nslm5-xw pico2 rocket-m rocket-m-xw rs rspro soekris45xx tl-2543-v1 tl-mr3020-v1 tl-mr3040-v1 tl-wa7510n tl-wdr3500-v1 tl-wdr3600 tl-wdr4300 tl-wdr4900-v1 tl-wr703n-v1 tl-wr740n tl-wr743nd-v1 tl-wr841-v10 tl-wr841-v7 tl-wr841-v8 tl-wr841-v9 tl-wr842n-v1 uap-pro unifiac-lite unifi-ap vocore-16M vocore-8M wl-wn575a3 wrtnode wt1520-4M wt1520-8M wt3020-4M wt3020-8M x86 x86-64 zbt-ape522ii"
FACTORY=""
SYSUPGRADE=""
SQUASHIMAGE=""
EXT4IMAGE=""
[ "$TPROFILE" == "alfa-nx" ] && {
NAME=Alfa-Network_N5
ARCH=ar71xx
SUBARCH=generic
PROFILE=ALFANX
FLAVOR=qmp_small
FACTORY=$DISTLEGACY-$FLAVOR-$ARCH-$SUBARCH-$TPROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTLEGACY-$FLAVOR-$ARCH-$SUBARCH-$TPROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == "alix" ] && {
NAME=PC-Engines_Alix
ARCH=x86
SUBARCH=geode
PROFILE=Generic
FLAVOR=qmp_big
SQUASHIMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$COMBINEDSQUASHIMG
EXT4IMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$COMBINEDEXT4IMG
BINEXT=img.gz
}
[ "$TPROFILE" == x86 ] && {
NAME=Generic_x86
ARCH=x86
SUBARCH=generic
PROFILE=Generic
FLAVOR=qmp_big
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=qmp_big
PROFILE=Generic
SQUASHIMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$COMBINEDSQUASHIMG
EXT4IMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$COMBINEDEXT4IMG
}
[ "$TPROFILE" == soekris45xx ] && {
NAME=Soekris_Net45xx
ARCH=x86
SUBARCH=legacy
PROFILE=Generic
FLAVOR=qmp_small
SQUASHIMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$COMBINEDSQUASHIMG
EXT4IMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$COMBINEDEXT4IMG
BINEXT=img.gz
}
[ "$TPROFILE" == bullet ] && {
NAME=Ubiquiti_Bullet-M
ARCH=ar71xx
SUBARCH=generic
PROFILE=ubnt-bullet-m
FLAVOR=qmp_small
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == cf-wr800n ] && {
NAME=Comfast_CF-WR800N
ARCH=ramips
SUBARCH=mt7620
PROFILE=cf-wr800n
FLAVOR=qmp_small
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
FLAVOR=qmp_small
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == nsm5 ] && {
NAME=Ubiquiti_NanoStation-M5
ARCH=ar71xx
SUBARCH=generic
PROFILE=ubnt-nano-m
FLAVOR=qmp_small
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=qmp_small
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
FLAVOR=qmp_small
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
FLAVOR=qmp_big
SQUASHIMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFSSDCARD
EXT4IMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$EXT4SDCARD
BINEXT=img.gz
}
[ "$TPROFILE" == rocket-m-xw ] && {
NAME=Ubiquiti_Rocket-M5-XW
ARCH=ar71xx
SUBARCH=generic
FLAVOR=qmp_small
PROFILE=ubnt-rocket-m-xw
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == pico2 ] && {
NAME=Ubiquiti_PicoStation-2
ARCH=ath25
SUBARCH=generic
FLAVOR=qmp_tiny
PROFILE=ubnt2-pico2
FACTORY=$DISTCL-$FLAVOR-$ARCH-$PROFILE-$SQUASHSYSUPGRADE
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == rocket-m ] && {
NAME=Ubiquiti_Rocket-M
ARCH=ar71xx
SUBARCH=generic
FLAVOR=qmp_small
PROFILE=ubnt-rocket-m
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == rs ] && {
NAME=Ubiquiti_RouterStation
ARCH=ar71xx
SUBARCH=generic
FLAVOR=qmp_big
PROFILE=ubnt-rs
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == rspro ] && {
NAME=Ubiquiti_RouterStation-Pro
ARCH=ar71xx
SUBARCH=generic
FLAVOR=qmp_big
PROFILE=ubnt-rspro
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
SUBARCH=generic
FLAVOR=qmp_small
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
SUBARCH=generic
FLAVOR=qmp_small
PROFILE=mc-mac1200r
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == tl-wr841-v7 ] && {
NAME=TP-Link_TL-WR841-v7
ARCH=ar71xx
SUBARCH=generic
FLAVOR=qmp_cli
PROFILE=tl-wr841-v7
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == tl-wr841-v8 ] && {
NAME=TP-Link_TL-WR841-v8
ARCH=ar71xx
SUBARCH=generic
FLAVOR=qmp_cli
PROFILE=tl-wr841-v8
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == tl-wr841-v9 ] && {
NAME=TP-Link_TL-WR841-v9
ARCH=ar71xx
SUBARCH=generic
FLAVOR=qmp_cli
PROFILE=tl-wr841-v9
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == tl-wr841-v10 ] && {
NAME=TP-Link_TL-WR841-v10
ARCH=ar71xx
SUBARCH=generic
FLAVOR=qmp_cli
PROFILE=tl-wr841-v10
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
SUBARCH=generic
FLAVOR=qmp_small
PROFILE=tl-wr842n-v1
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == tl-wr703n-v1 ] && {
NAME=TP-Link_TL-WR703N-v1
ARCH=ar71xx
SUBARCH=generic
FLAVOR=qmp_cli
PROFILE=tl-wr703n-v1
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == tl-mr3020-v1 ] && {
NAME=TP-Link_TL-MR3020-v1
ARCH=ar71xx
SUBARCH=generic
FLAVOR=qmp_cli
PROFILE=tl-mr3020-v1
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == tl-mr3040-v1 ] && {
NAME=TP-Link_TL-MR3040-v1
ARCH=ar71xx
SUBARCH=generic
FLAVOR=qmp_cli
PROFILE=tl-mr3040-v1
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == tl-wa7510n ] && {
NAME=TP-Link_TL-WA7510N
ARCH=ar71xx
SUBARCH=generic
FLAVOR=qmp_cli
PROFILE=tl-wa7510n
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
SUBARCH=generic
FLAVOR=qmp_big
PROFILE=tl-wdr3500-v1
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == tl-wdr3600 ] && {
NAME=TP-Link_TL-WDR3600-v1
ARCH=ar71xx
SUBARCH=generic
FLAVOR=qmp_big
PROFILE=tl-wdr3600-v1
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == tl-wdr4300 ] && {
NAME=TP-Link_TL-WDR4300-v1
ARCH=ar71xx
SUBARCH=generic
FLAVOR=qmp_big
PROFILE=tl-wdr4300-v1
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
SUBARCH=generic
FLAVOR=qmp_big
PROFILE=tl-wdr4900-v1
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == tl-wr743nd-v1 ] && {
NAME=TP-Link_TL-WR743ND-v1
ARCH=ar71xx
SUBARCH=generic
FLAVOR=qmp_cli
PROFILE=tl-wr743nd-v1
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == tl-wr740n ] && {
NAME=TP-Link_TL-WR740N-v1
ARCH=ar71xx
SUBARCH=generic
FLAVOR=qmp_cli
PROFILE=-tl-wr740n-v1
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == dragino2 ] && {
NAME=Dragino_MS14
ARCH=ar71xx
SUBARCH=generic
FLAVOR=qmp_small
PROFILE=dragino2
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == wpe72-8M ] && {
NAME=Compex_WPE72-8M
ARCH=ar71xx
SUBARCH=generic
FLAVOR=qmp_small
PROFILE=WPE72_8M
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-wpe72-squashfs-8M-factory.img
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-wpe72-squashfs-8M-sysupgrade.img
}
[ "$TPROFILE" == unifiac-lite ] && {
NAME=Ubiquiti_UniFi-AP-AC-Lite
ARCH=ar71xx
SUBARCH=generic
FLAVOR=qmp_small
PROFILE=ubnt-unifiac-lite
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == unifi-ap ] && {
NAME=Ubiquiti_UniFi-AP
ARCH=ar71xx
SUBARCH=generic
FLAVOR=qmp_small
PROFILE=ubnt-unifi
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == uap-pro ] && {
NAME=Ubiquiti_UniFi-AP-PRO
ARCH=ar71xx
SUBARCH=generic
FLAVOR=qmp_small
PROFILE=ubnt-uap-pro
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == vocore-8M ] && {
NAME=Vonger_VoCore-8M
ARCH=ramips
SUBARCH=rt305x
FLAVOR=qmp_small
PROFILE=vocore-8M
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == vocore-16M ] && {
NAME=Vonger_VoCore-16M
ARCH=ramips
SUBARCH=rt305x
FLAVOR=qmp_small
PROFILE=vocore-16M
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == microwrt ] && {
NAME=Microduino_MicroWRT
ARCH=ramips
SUBARCH=mt7620
FLAVOR=qmp_small
PROFILE=microwrt
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == wl-wn575a3 ] && {
NAME=Wavlink_WL-WN575A3
ARCH=ramips
SUBARCH=mt76x8
FLAVOR=qmp_small
PROFILE=wl-wn575a3
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == linkit7688 ] && {
NAME=LinkIt_Smart-7688
ARCH=ramips
SUBARCH=mt76x8
FLAVOR=qmp_small
PROFILE=LinkIt7688
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == wt1520-4M ] && {
NAME=Nexx_WT1520-4M
ARCH=ramips
SUBARCH=rt305x
FLAVOR=qmp_tiny
PROFILE=wt1520-4M
FACTORY=$DISTLEGACY-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTLEGACY-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == wt1520-8M ] && {
NAME=Nexx_WT1520-8M
ARCH=ramips
SUBARCH=rt305x
FLAVOR=qmp_small
PROFILE=rt5350-qmp-small-node
PROFILE=wt1520-8M
FACTORY=$DISTLEGACY-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTLEGACY-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == dir-810l ] && {
NAME=D-Link_DIR-810L
ARCH=ramips
SUBARCH=mt7620
FLAVOR=qmp_small
PROFILE=dir-810l
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == miwifi-mini ] && {
NAME=Xiaomi_MiWiFi-Mini
ARCH=ramips
SUBARCH=mt7620
FLAVOR=qmp_small
PROFILE=miwifi-mini
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == wrtnode ] && {
NAME=WRTnode_WRTnode
ARCH=ramips
SUBARCH=mt7620
FLAVOR=qmp_small
PROFILE=wrtnode
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == wt3020-4M ] && {
NAME=Nexx_WT3020-4M
ARCH=ramips
SUBARCH=mt7620
FLAVOR=qmp_tiny
PROFILE=wt3020-4M
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == wt3020-8M ] && {
NAME=Nexx_WT3020-8M
ARCH=ramips
SUBARCH=mt7620
FLAVOR=qmp_small
PROFILE=wt3020-8M
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == zbt-ape522ii ] && {
NAME=ZBT_APE522II
ARCH=ramips
SUBARCH=mt7620
FLAVOR=qmp_small
PROFILE=zbt-ape522ii
FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
[ "$TPROFILE" == kvm ] && {
NAME=KVM_x86
ARCH=x86
SUBARCH=generic
FLAVOR=qmp_cli
PROFILE=kvm
SQUASHIMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$COMBINEDSQUASHIMG
EXT4IMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$COMBINEDEXT4IMG
BINEXT=img.gz
}
[ "$TPROFILE" == kvm64 ] && {
NAME=KVM_x86-64
ARCH=x86
SUBARCH=64
FLAVOR=qmp_cli
PROFILE=kvm
SQUASHIMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$COMBINEDSQUASHVDI
EXT4IMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$COMBINEDEXT4VDI
}
[ "$TPROFILE" == vmware ] && {
NAME=VMware_x86