blob: 1da3d5eacbf9033677cff925bcf53c2d931245de [file] [log] [blame]
developerb11a5392022-03-31 00:34:47 +08001#!/bin/bash
2source ./autobuild/lede-build-sanity.sh
3
4#get the brach_name
5temp=${0%/*}
6branch_name=${temp##*/}
7
developerb11a5392022-03-31 00:34:47 +08008#step1 clean
9#clean
10
11#do prepare stuff
12prepare
13
14#hack mt7986 config5.4
15echo "CONFIG_NETFILTER=y" >> ./target/linux/mediatek/mt7986/config-5.4
16echo "CONFIG_NETFILTER_ADVANCED=y" >> ./target/linux/mediatek/mt7986/config-5.4
17echo "CONFIG_RELAY=y" >> ./target/linux/mediatek/mt7986/config-5.4
18
19#hack mt7986 hostapd config
20echo "CONFIG_MBO=y" >> ./package/network/services/hostapd/files/hostapd-full.config
21echo "CONFIG_WPS_UPNP=y" >> ./package/network/services/hostapd/files/hostapd-full.config
22
23prepare_mac80211
24
25find ${BUILD_DIR}/package/kernel/mt76/patches -name "*-mt76-*.patch" -delete
26
27prepare_final ${branch_name}
28
29cp -fpR ${BUILD_DIR}/autobuild/mt7986-mac80211/target/linux/mediatek/patches-5.4 ${BUILD_DIR}/target/linux/mediatek
30
31
32#step2 build
33if [ -z ${1} ]; then
34 build ${branch_name} -j1 || [ "$LOCAL" != "1" ]
35fi