blob: 1f252b7965f873b4579d9b048142e74cd79d9432 [file] [log] [blame]
developerb11a5392022-03-31 00:34:47 +08001#!/bin/bash
2source ./autobuild/lede-build-sanity.sh
3
4#get the brach_name
5temp=${0%/*}
6branch_name=${temp##*/}
7
developerb11a5392022-03-31 00:34:47 +08008#step1 clean
9#clean
10
11#do prepare stuff
12prepare
13
14#hack mt7986 config5.4
15echo "CONFIG_NETFILTER=y" >> ./target/linux/mediatek/mt7986/config-5.4
16echo "CONFIG_NETFILTER_ADVANCED=y" >> ./target/linux/mediatek/mt7986/config-5.4
17echo "CONFIG_RELAY=y" >> ./target/linux/mediatek/mt7986/config-5.4
18
developerb11a5392022-03-31 00:34:47 +080019prepare_mac80211
20
developer9b3248d2022-07-06 00:44:05 +080021rm -rf ${BUILD_DIR}/package/kernel/mac80211/patches/subsys/910-mac80211-offload.patch
22rm -rf ${BUILD_DIR}/package/kernel/mac80211/patches/subsys/911-add-fill-receive-path-ops-to-get-wed-idx-v2.patch
23find ${BUILD_DIR}/target/linux/mediatek/patches-5.4 -name "999*.patch" -delete
developerb11a5392022-03-31 00:34:47 +080024find ${BUILD_DIR}/package/kernel/mt76/patches -name "*-mt76-*.patch" -delete
25
26prepare_final ${branch_name}
27
28cp -fpR ${BUILD_DIR}/autobuild/mt7986-mac80211/target/linux/mediatek/patches-5.4 ${BUILD_DIR}/target/linux/mediatek
29
30
31#step2 build
32if [ -z ${1} ]; then
developer9b3248d2022-07-06 00:44:05 +080033 build_log ${branch_name} -j1 || [ "$LOCAL" != "1" ]
developerb11a5392022-03-31 00:34:47 +080034fi