developer | 20d6771 | 2022-03-02 14:09:32 +0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | source ./autobuild/lede-build-sanity.sh |
| 3 | |
| 4 | #get the brach_name |
| 5 | temp=${0%/*} |
| 6 | branch_name=${temp##*/} |
| 7 | |
developer | 20d6771 | 2022-03-02 14:09:32 +0800 | [diff] [blame] | 8 | #step1 clean |
| 9 | #clean |
| 10 | |
| 11 | #do prepare stuff |
| 12 | prepare |
| 13 | |
| 14 | #hack mt7986 config5.4 |
| 15 | echo "CONFIG_NETFILTER=y" >> ./target/linux/mediatek/mt7986/config-5.4 |
| 16 | echo "CONFIG_NETFILTER_ADVANCED=y" >> ./target/linux/mediatek/mt7986/config-5.4 |
| 17 | echo "CONFIG_RELAY=y" >> ./target/linux/mediatek/mt7986/config-5.4 |
| 18 | |
developer | 1d1e456 | 2022-03-17 00:06:34 +0800 | [diff] [blame] | 19 | #hack hostapd config |
developer | 20d6771 | 2022-03-02 14:09:32 +0800 | [diff] [blame] | 20 | echo "CONFIG_MBO=y" >> ./package/network/services/hostapd/files/hostapd-full.config |
| 21 | echo "CONFIG_WPS_UPNP=y" >> ./package/network/services/hostapd/files/hostapd-full.config |
| 22 | |
developer | e2cc0fa | 2022-03-29 17:31:03 +0800 | [diff] [blame] | 23 | prepare_mac80211 |
developer | 2cf5f9a | 2022-03-25 02:46:17 +0800 | [diff] [blame] | 24 | |
developer | e2cc0fa | 2022-03-29 17:31:03 +0800 | [diff] [blame] | 25 | prepare_final ${branch_name} |
developer | 2cf5f9a | 2022-03-25 02:46:17 +0800 | [diff] [blame] | 26 | |
developer | 20d6771 | 2022-03-02 14:09:32 +0800 | [diff] [blame] | 27 | #step2 build |
| 28 | if [ -z ${1} ]; then |
| 29 | build ${branch_name} -j1 || [ "$LOCAL" != "1" ] |
| 30 | fi |