developer | 782053a | 2022-10-24 17:40:58 +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 | |
| 8 | #step1 clean |
| 9 | #clean |
| 10 | #do prepare stuff |
| 11 | prepare |
| 12 | |
| 13 | #./scripts/feeds install mtk |
| 14 | |
| 15 | #hack mt7988 config5.4 |
| 16 | echo "CONFIG_NETFILTER=y" >> ${BUILD_DIR}/target/linux/mediatek/mt7988/config-5.4 |
| 17 | echo "CONFIG_NETFILTER_ADVANCED=y" >> ${BUILD_DIR}/target/linux/mediatek/mt7988/config-5.4 |
| 18 | echo "CONFIG_RELAY=y" >> ${BUILD_DIR}/target/linux/mediatek/mt7988/config-5.4 |
| 19 | |
| 20 | #prepare mac80211 mt76 wifi stuff |
| 21 | prepare_mac80211 |
| 22 | |
| 23 | rm -rf ${BUILD_DIR}/package/kernel/mac80211/patches/subsys/908-mac80211-mtk-mask-kernel-version-limitation-and-fill-for.patch |
| 24 | rm -rf ${BUILD_DIR}/package/kernel/mac80211/patches/subsys/909-mac80211-mtk-add-fill-receive-path-ops-to-get-wed-idx.patch |
| 25 | rm -rf ${BUILD_DIR}/target/linux/mediatek/patches-5.4/1007-mtketh-add-qdma-sw-solution-for-mac80211-sdk.patch |
| 26 | find ${BUILD_DIR}/target/linux/mediatek/patches-5.4 -name "999*.patch" -delete |
| 27 | find ${BUILD_DIR}/package/kernel/mt76/patches -name "*-mt76-*.patch" -delete |
| 28 | |
| 29 | prepare_final ${branch_name} |
| 30 | |
| 31 | #step2 build |
| 32 | if [ -z ${1} ]; then |
| 33 | build_log ${branch_name} -j1 || [ "$LOCAL" != "1" ] |
| 34 | fi |