blob: 3683395831f6a79d97b2736705e785506351f7f7 [file] [log] [blame]
developer20d67712022-03-02 14:09:32 +08001#!/bin/bash
2source ./autobuild/lede-build-sanity.sh
3
4#get the brach_name
5temp=${0%/*}
6branch_name=${temp##*/}
7
developer20d67712022-03-02 14:09:32 +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
developer1d1e4562022-03-17 00:06:34 +080019#hack hostapd config
developer20d67712022-03-02 14:09:32 +080020echo "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
developere2cc0fa2022-03-29 17:31:03 +080023prepare_mac80211
developer2cf5f9a2022-03-25 02:46:17 +080024
developere2cc0fa2022-03-29 17:31:03 +080025prepare_final ${branch_name}
developer2cf5f9a2022-03-25 02:46:17 +080026
developer20d67712022-03-02 14:09:32 +080027#step2 build
28if [ -z ${1} ]; then
29 build ${branch_name} -j1 || [ "$LOCAL" != "1" ]
30fi