Developing lightweight computation at the DSG edge

Commit 81685d15 authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

qMp 4.0 "Macondo"

parent ca1cacfa
Pipeline #22 failed with stages
in 0 seconds
38c78f61d17d1a72772327e5211ccf7e Alfa-Network_N5
60e451f13cc6525beb9e74cb20fe1a9b Comfast_CF-WR800N
ad03deb0b12ca233350e0686c531735a D-Link_DIR-810L
e54c82f7da6563637611b0a71c249305 Microduino_MicroWRT
14ceaea73ef6bda4e9598787528dd285 Nexx_WT1520-4M
ba9067da71a545413e7c8a5cbbd0a82d Nexx_WT3020-4M
d11c4c408a408f6a14c80b92d24af992 PC-Engines_Alix
40ab996cfac0fcaa4d9b36a7bdfe3312 TP-Link_TL-WA7510N
ffca315e803385c839a7988d6e97c237 TP-Link_TL-WDR3500-v1
66f93ecc3ea7089caa4bbb210156c6e5 TP-Link_TL-WDR4300-v1
ad0152884b1dfa8e2511387907c86f95 TP-Link_TL-WDR4900-v1
5c220ec807601507cf28c785d944dcd2 TP-Link_TL-WR2543ND-v1
9931ea576c02045a0c37f484f59bee3b TP-Link_TL-WR2543ND-v1
7883c9a51af411871603318f94cb45ee TP-Link_TL-WR703N-v1
ac5271ca9716cb330307a72abd650d26 TP-Link_TL-WR841-v8
db64554ac7d1adfc7c97b6daa5fdb455 TP-Link_TL-WR841-v8
69bbb19ef211fa225e63fecb728719b9 TP-Link_TL-WR841-v9
8025dda5d0fbb59ee9b6798c55f6a195 TP-Link_TL-WR841-v10
a8462f8c6ed2a48489c252057ef68ff2 TP-Link_TL-WR842N-v1
816fa2a5b36689e2eb0af6e26463d2d5 Ubiquiti_Bullet-M
cb97474ab095bb949cec9feda6bba7e9 Ubiquiti_Bullet-M
e6c7ac446d03ba245cf53e54c6e8acd5 Ubiquiti_NanoStation-Loco-M5-XW
667bd4813f9863134885e2f37230481d Ubiquiti_NanoStation-M5
9675810283297fde5094ddcb3e3d4d8d Ubiquiti_NanoStation-M5
445ede5b01c50156dfced1b2331e309b Ubiquiti_NanoStation-M5-XW
7b1bc615d61f2290cb87a6912e8c5a1c Ubiquiti_NanoStation-M5-XW
3a4f6d591ad548d05af6dc6568d3f57b Ubiquiti_Rocket-M
b3be538d3e4835806d9c9666bfb546ff Ubiquiti_Rocket-M
25ae071a1c2a212a28210c5dd247e27e Ubiquiti_Rocket-M5-XW
13192c12425e885285849624d1496f6c Ubiquiti_RouterStation
02f054340bd0eb44c7a9c5a2bbdb49f3 Ubiquiti_RouterStation-Pro
f0a52b70a93e3da7a9647cdff07f4324 Ubiquiti_RouterStation-Pro
5d012d7187886ace1af08e013f26f0a9 Ubiquiti_UniFi-AP
2e4e2aa1c1a05783e6ac51c9aa85e04a Ubiquiti_UniFi-AP-PRO
be6abc0d21b89242227fc8a51bd8ea7f Vonger_VoCore
47a05ab1222f714c08e5f08ed30ae554 Wavlink_WL-WN575A3
79fc01805a2fd264573152b654675ce4 WRTnode_WRTnode
393058c61658f839a8c53a05a6ff35e0 Xiaomi_MiWiFi-Mini
8980468f4379c67a9b1ef9a86b263ea5 ZBT_APE522II
......@@ -11,11 +11,23 @@ RESULT=0
[ ! -d "$files_dir" ] && mkdir -p "$files_dir"
J=${J:-$make_j}
IMAGEOPT=true
VERSIONOPT=true
VERSION_DIST="${dist_name:-qMp}"
VERSION_NICK="${release:-Macondo}"
VERSION_NUMBER="${version:-4.0}"
VERSION_MANUFACTURER="${manufacturer:-Quick Mesh Project}"
VERSION_MANUFACTURER_URL="${manufacturer_url:-https://qmp.cat}"
VERSION_BUG_URL="${bug_url:-https://dev.qmp.cat/projects/qmp/issues}"
VERSION_SUPPORT_URL="${support_url:-https://qmp.cat/Documentation}"
QMP_CODENAME=$VERSION_NICK
QMP_RELEASE=$VERSION_NUMBER
usage() {
echo "Usage: $0 [-f [--force]] [-d <target> [--sdk|ib|force]] [-i <target> [--sdk-file=<file>|ib-file=<file>]]
[--download-all|build-all|update-feeds] [--targets|flavors|communities|update-communities|profiles=<target>]
echo "Usage: $0 [-f [--force]] [-d <target> [--sdk|ib|force]] [-i <target> [--sdk-file=<file>|ib-file=<file>]]
[--download-all|build-all|update-feeds] [--targets|flavors|communities|update-communities|profiles=<target>]
[-b <target> [-j<N>] [--no-update|no-link-ib|remote|clean|force-local|package=<pkg>]]
[-c <target> [--profile=<profile>|no-update|remote|flavor=<flavor>|community=<path>|extra-pkg=<list>]]
[-c <target> [--profile=<profile>|no-update|remote|flavor=<flavor>|community=<path>|extra-pkg=<list>]]
[--help]"
echo ""
echo " --help : show full help with examples"
......@@ -51,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 ""
}
......@@ -187,10 +200,10 @@ build_sdk() {
echo "-> SDK for target $target not found"
download_sdk $target
}
echo "-> Building $sdk"
[ -f "$feeds_file" ] || {
[ -f "$feeds_file" ] || {
echo "-> Local feeds file not found"
download_feeds
}
......@@ -250,7 +263,7 @@ build_pkg() {
local output_dir=$PWD/$bin_output/packages
[ ! -d $output_dir ] && mkdir -p $output_dir
echo "-> Building package $pkg on sdk $sdk"
make -j$J V=$V -C $sdk package/$pkg/{clean,compile,install} && {
make -j$J V=$V -C $sdk IMAGEOPT="$IMAGEOPT" VERSIONOPT="$VERSIONOPT" VERSION_DIST="$VERSION_DIST" VERSION_NICK="$VERSION_NICK" VERSION_NUMBER="$VERSION_NUMBER" VERSION_MANUFACTURER="$VERSION_MANUFACTURER" VERSION_MANUFACTURER_URL="$VERSION_MANUFACTURER_URL" VERSION_BUG_URL="$VERSION_BUG_URL" VERSION_SUPPORT_URL="$VERSION_SUPPORT_URL" BRANCH_GIT="$QMP_GIT_BRANCH" REV_GIT="$REV_GIT" QMP_CODENAME="$VERSION_NICK" QMP_RELEASE="$VERSION_NUMBER" package/$pkg/{clean,compile,install} && {
echo "-> Build of $pkg successful"
local pkg_path=$(find $sdk/bin/packages -type f -name "${pkg}*.ipk")
local pkg_file=$(echo $pkg_path | awk -F/ '{print $NF}')
......@@ -342,7 +355,7 @@ download_sdk() {
local url="$base_url/$target"
local output="$release/$target"
[ ! -d "$output" ] && mkdir -p "$output"
local sdk_file="$(wget -q -O- $url | grep lede-sdk | grep href | awk -F\> '{print $4}' | awk -F\< '{print $1}')"
echo "-> Downloading $url/$sdk_file"
wget -c "$url/$sdk_file" -O "$tmp_dir/$sdk_file" || {
......@@ -437,8 +450,77 @@ join_packages() {
done
}
make_qmp_release() {
DISTCL="lede-"$lede_release
DISTLEGACY="lede-"$lede_release
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
mkdir -p $bin_output
cp DEVICES $bin_output/
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"
fw_file="$output_dir/$(echo $FACTORY | sed 's/_/-/g')"
output_file=$bin_output"/qMp_"$VERSION_NUMBER"-"$VERSION_NICK"_"$NAME"_factory_"$(date +%Y%m%d-%H%M)".bin"
echo cp "$fw_file" "$output_file"
cp "$fw_file" "$output_file"
}
[ "$SYSUPGRADE" ] && {
echo "$NAME - SYSUPGRADE"
fw_file="$output_dir/$(echo $SYSUPGRADE | sed 's/_/-/g')"
output_file=$bin_output"/qMp_"$VERSION_NUMBER"-"$VERSION_NICK"_"$NAME"_sysupgrade_"$(date +%Y%m%d-%H%M)".bin"
echo cp "$fw_file" "$output_file"
cp "$fw_file" "$output_file"
}
[ "$SQUASHIMAGE" ] && {
echo "$NAME - SQUASHIMAGE"
fw_file="$output_dir/$(echo $SQUASHIMAGE | sed 's/_/-/g')"
output_file=$bin_output"/qMp_"$VERSION_NUMBER"-"$VERSION_NICK"_"$NAME"_combined-squashfs_"$(date +%Y%m%d-%H%M)"."$BINEXT
echo cp "$fw_file" "$output_file"
cp "$fw_file" "$output_file"
}
[ "$EXT4IMAGE" ] && {
echo "$NAME - EXT4IMAGE"
fw_file="$output_dir/$(echo $EXT4IMAGE | sed 's/_/-/g')"
output_file=$bin_output"/qMp_"$VERSION_NUMBER"-"$VERSION_NICK"_"$NAME"_combined-ext4_"$(date +%Y%m%d-%H%M)"."$BINEXT
echo cp "$fw_file" "$output_file"
cp "$fw_file" "$output_file"
}
done
cd "$bin_output"
md5sum *.* >> IMAGES
cd ..
}
[ -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"
......@@ -545,7 +627,7 @@ while true; do
cook=1
target="$2"
shift;shift
;;
;;
--profile)
profile="$2"
shift;shift
......@@ -577,6 +659,10 @@ while true; do
join_packages $system_pkg
shift;shift
;;
-r)
qmp_release=1
shift
;;
-h)
usage
break
......@@ -638,5 +724,6 @@ profile=${profile:-Default}
[ "$build_all" == "1" ] && build_all_sdk
[ "$cook_all" == "1" ] && cook_all_targets
[ "$qmp_release" == "1" ] && make_qmp_release
exit $RESULT
release=17.01.4
base_url=https://downloads.lede-project.org/releases/$release/targets/
release=Macondo
version=4.0
lede_release=17.01.4
base_url=https://downloads.lede-project.org/releases/$lede_release/targets/
communities_git=https://github.com/libremesh/network-profiles.git
communities_dir=communities
tmp_dir=tmp
......@@ -9,7 +11,7 @@ feeds_dir=feeds
files_dir=files
flavors_file=qmp.flavors.conf
sdk_config=qmp.sdk.config
sdk_install_packages="libustream-openssl firewall kmod-mac80211"
sdk_install_packages="libustream-openssl firewall kmod-mac80211 base-files"
sdk_install_repos="qmp libremap"
remote_pkg_repos="qmp.repositories.conf"
default_flavor="qmp_big"
......
......@@ -3,7 +3,7 @@ src-git packages https://git.lede-project.org/feed/packages.git;lede-17.01
src-git luci https://git.lede-project.org/project/luci.git;lede-17.01
src-git routing https://git.lede-project.org/feed/routing.git;lede-17.01
src-git telephony https://git.lede-project.org/feed/telephony.git;lede-17.01
src-git qmp https://dev.qmp.cat/qmp.git;testing
src-git qmp https://dev.qmp.cat/qmp.git;4.0
src-git libremap https://github.com/libremap/libremap-agent-openwrt.git;master
src-git b6m https://dev.qmp.cat/b6m.git;openwrt
src-git ncr https://dev.qmp.cat/ncr.git;master
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
BINEXT=img
}
[ "$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=generic
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