developer | b11a539 | 2022-03-31 00:34:47 +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 | b11a539 | 2022-03-31 00:34:47 +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 | b11a539 | 2022-03-31 00:34:47 +0800 | [diff] [blame] | 19 | prepare_mac80211 |
| 20 | |
developer | 9b3248d | 2022-07-06 00:44:05 +0800 | [diff] [blame] | 21 | rm -rf ${BUILD_DIR}/package/kernel/mac80211/patches/subsys/910-mac80211-offload.patch |
| 22 | rm -rf ${BUILD_DIR}/package/kernel/mac80211/patches/subsys/911-add-fill-receive-path-ops-to-get-wed-idx-v2.patch |
| 23 | find ${BUILD_DIR}/target/linux/mediatek/patches-5.4 -name "999*.patch" -delete |
developer | b11a539 | 2022-03-31 00:34:47 +0800 | [diff] [blame] | 24 | find ${BUILD_DIR}/package/kernel/mt76/patches -name "*-mt76-*.patch" -delete |
| 25 | |
| 26 | prepare_final ${branch_name} |
| 27 | |
| 28 | cp -fpR ${BUILD_DIR}/autobuild/mt7986-mac80211/target/linux/mediatek/patches-5.4 ${BUILD_DIR}/target/linux/mediatek |
| 29 | |
| 30 | |
| 31 | #step2 build |
| 32 | if [ -z ${1} ]; then |
developer | 9b3248d | 2022-07-06 00:44:05 +0800 | [diff] [blame] | 33 | build_log ${branch_name} -j1 || [ "$LOCAL" != "1" ] |
developer | b11a539 | 2022-03-31 00:34:47 +0800 | [diff] [blame] | 34 | fi |