blob: 1da3d5eacbf9033677cff925bcf53c2d931245de [file] [log] [blame]
#!/bin/bash
source ./autobuild/lede-build-sanity.sh
#get the brach_name
temp=${0%/*}
branch_name=${temp##*/}
#step1 clean
#clean
#do prepare stuff
prepare
#hack mt7986 config5.4
echo "CONFIG_NETFILTER=y" >> ./target/linux/mediatek/mt7986/config-5.4
echo "CONFIG_NETFILTER_ADVANCED=y" >> ./target/linux/mediatek/mt7986/config-5.4
echo "CONFIG_RELAY=y" >> ./target/linux/mediatek/mt7986/config-5.4
#hack mt7986 hostapd config
echo "CONFIG_MBO=y" >> ./package/network/services/hostapd/files/hostapd-full.config
echo "CONFIG_WPS_UPNP=y" >> ./package/network/services/hostapd/files/hostapd-full.config
prepare_mac80211
find ${BUILD_DIR}/package/kernel/mt76/patches -name "*-mt76-*.patch" -delete
prepare_final ${branch_name}
cp -fpR ${BUILD_DIR}/autobuild/mt7986-mac80211/target/linux/mediatek/patches-5.4 ${BUILD_DIR}/target/linux/mediatek
#step2 build
if [ -z ${1} ]; then
build ${branch_name} -j1 || [ "$LOCAL" != "1" ]
fi