blob: e1ff2499929912690e7bd54fe3129e99f3087e45 [file] [log] [blame]
developer782053a2022-10-24 17:40:58 +08001#!/bin/bash
2source ./autobuild/lede-build-sanity.sh
3
4#get the brach_name
5temp=${0%/*}
6branch_name=${temp##*/}
7
8#step1 clean
9#clean
10#do prepare stuff
11prepare
12
13#./scripts/feeds install mtk
14
15#hack mt7988 config5.4
16echo "CONFIG_NETFILTER=y" >> ${BUILD_DIR}/target/linux/mediatek/mt7988/config-5.4
17echo "CONFIG_NETFILTER_ADVANCED=y" >> ${BUILD_DIR}/target/linux/mediatek/mt7988/config-5.4
18echo "CONFIG_RELAY=y" >> ${BUILD_DIR}/target/linux/mediatek/mt7988/config-5.4
19
20#prepare mac80211 mt76 wifi stuff
21prepare_mac80211
22
23rm -rf ${BUILD_DIR}/package/kernel/mac80211/patches/subsys/908-mac80211-mtk-mask-kernel-version-limitation-and-fill-for.patch
24rm -rf ${BUILD_DIR}/package/kernel/mac80211/patches/subsys/909-mac80211-mtk-add-fill-receive-path-ops-to-get-wed-idx.patch
25rm -rf ${BUILD_DIR}/target/linux/mediatek/patches-5.4/1007-mtketh-add-qdma-sw-solution-for-mac80211-sdk.patch
26find ${BUILD_DIR}/target/linux/mediatek/patches-5.4 -name "999*.patch" -delete
27find ${BUILD_DIR}/package/kernel/mt76/patches -name "*-mt76-*.patch" -delete
28
29prepare_final ${branch_name}
30
31#step2 build
32if [ -z ${1} ]; then
33 build_log ${branch_name} -j1 || [ "$LOCAL" != "1" ]
34fi