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 | 9b3248d | 2022-07-06 00:44:05 +0800 | [diff] [blame] | 19 | prepare_flowoffload |
developer | 20d6771 | 2022-03-02 14:09:32 +0800 | [diff] [blame] | 20 | |
developer | e2cc0fa | 2022-03-29 17:31:03 +0800 | [diff] [blame] | 21 | prepare_mac80211 |
developer | 2cf5f9a | 2022-03-25 02:46:17 +0800 | [diff] [blame] | 22 | |
developer | e2cc0fa | 2022-03-29 17:31:03 +0800 | [diff] [blame] | 23 | prepare_final ${branch_name} |
developer | 2cf5f9a | 2022-03-25 02:46:17 +0800 | [diff] [blame] | 24 | |
developer | 20d6771 | 2022-03-02 14:09:32 +0800 | [diff] [blame] | 25 | #step2 build |
| 26 | if [ -z ${1} ]; then |
developer | 9b3248d | 2022-07-06 00:44:05 +0800 | [diff] [blame] | 27 | build_log ${branch_name} -j1 || [ "$LOCAL" != "1" ] |
developer | 20d6771 | 2022-03-02 14:09:32 +0800 | [diff] [blame] | 28 | fi |