developer | 843fd2b | 2022-04-15 18:30:12 +0800 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | echo "clone.........." |
| 3 | git clone --branch master https://gerrit.mediatek.inc/openwrt/lede mac80211_package |
developer | 843fd2b | 2022-04-15 18:30:12 +0800 | [diff] [blame] | 4 | git clone --branch master https://gerrit.mediatek.inc/openwrt/feeds/mtk_openwrt_feeds |
developer | d728d7c | 2022-10-25 13:45:17 +0800 | [diff] [blame] | 5 | git clone --branch master https://gerrit.mediatek.inc/gateway/autobuild_v5 |
developer | 843fd2b | 2022-04-15 18:30:12 +0800 | [diff] [blame] | 6 | git clone https://gerrit.mediatek.inc/gateway/rdk-b/meta-filogic |
| 7 | |
| 8 | echo "copy.........." |
| 9 | mkdir -p mac80211_package/package/kernel/mt76/patches |
developer | 6440941 | 2022-12-13 17:06:55 +0800 | [diff] [blame] | 10 | rm -rf mac80211_package/package/kernel/mac80211 |
developer | 843fd2b | 2022-04-15 18:30:12 +0800 | [diff] [blame] | 11 | cp -rfa mtk_openwrt_feeds/autobuild_mac80211_release/package/ mac80211_package/ |
| 12 | |
developer | 6440941 | 2022-12-13 17:06:55 +0800 | [diff] [blame] | 13 | echo "gen wifi mt76 patches.........." |
developer | 1969457 | 2022-04-18 19:58:01 +0800 | [diff] [blame] | 14 | cp meta-cmf-filogic/mtk_scripts/rdkb_inc_helper mac80211_package/package/kernel/mt76 |
developer | 843fd2b | 2022-04-15 18:30:12 +0800 | [diff] [blame] | 15 | cd mac80211_package/package/kernel/mt76 |
| 16 | ./rdkb_inc_helper patches |
| 17 | mv patches.inc patches |
| 18 | cd - |
developer | c480fbb | 2022-11-07 18:39:36 +0800 | [diff] [blame] | 19 | rm -rf meta-filogic/recipes-wifi/linux-mt76/files/patches |
| 20 | cp -rf mac80211_package/package/kernel/mt76/patches meta-filogic/recipes-wifi/linux-mt76/files/ |
developer | 843fd2b | 2022-04-15 18:30:12 +0800 | [diff] [blame] | 21 | |
developer | 6440941 | 2022-12-13 17:06:55 +0800 | [diff] [blame] | 22 | echo "gen wifi6 mac80211 patches.........." |
| 23 | tar xvf mtk_openwrt_feeds/autobuild_mac80211_release/package/kernel/mac80211/mac80211_v5.15.81_077622a1.tar.gz -C mac80211_package/package/kernel/ |
developer | 1969457 | 2022-04-18 19:58:01 +0800 | [diff] [blame] | 24 | cp meta-cmf-filogic/mtk_scripts/rdkb_inc_helper mac80211_package/package/kernel/mac80211/patches |
developer | 843fd2b | 2022-04-15 18:30:12 +0800 | [diff] [blame] | 25 | cd mac80211_package/package/kernel/mac80211/patches |
| 26 | ./rdkb_inc_helper subsys/ |
| 27 | ./rdkb_inc_helper build/ |
| 28 | mv subsys.inc subsys |
| 29 | mv build.inc build |
| 30 | mkdir patches |
| 31 | cp -r subsys patches |
| 32 | cp -r build patches |
| 33 | cd - |
developer | c480fbb | 2022-11-07 18:39:36 +0800 | [diff] [blame] | 34 | rm -rf meta-filogic/recipes-wifi/linux-mac80211/files/patches |
| 35 | cp -rf mac80211_package/package/kernel/mac80211/patches/patches meta-filogic/recipes-wifi/linux-mac80211/files |
developer | 843fd2b | 2022-04-15 18:30:12 +0800 | [diff] [blame] | 36 | |
| 37 | echo "copy mt76 firmware.........." |
developer | c480fbb | 2022-11-07 18:39:36 +0800 | [diff] [blame] | 38 | rm -rf meta-filogic/recipes-wifi/linux-mt76/files/src |
| 39 | cp -rf mac80211_package/package/kernel/mt76/src meta-filogic/recipes-wifi/linux-mt76/files/ |
developer | c63644b | 2023-04-21 12:48:09 +0800 | [diff] [blame] | 40 | cp -rf mtk_openwrt_feeds/target/linux/mediatek/mt7988/base-files/lib/firmware/mediatek/* meta-filogic/recipes-wifi/linux-mt76/files/src/firmware |
developer | 843fd2b | 2022-04-15 18:30:12 +0800 | [diff] [blame] | 41 | |
| 42 | echo "Update bb file version.........." |
| 43 | ver=`grep "PKG_SOURCE_VERSION" mac80211_package/package/kernel/mt76/Makefile | cut -c 21-` |
developer | c480fbb | 2022-11-07 18:39:36 +0800 | [diff] [blame] | 44 | sed -i 's/SRCREV ?=.*/SRCREV ?= "'$ver'"/g' meta-filogic/recipes-wifi/linux-mt76/mt76.inc |
developer | 843fd2b | 2022-04-15 18:30:12 +0800 | [diff] [blame] | 45 | ver2=`grep "PKG_VERSION:=" mac80211_package/package/kernel/mac80211/Makefile | cut -c 14-` |
developer | a52defa | 2022-12-09 13:01:55 +0800 | [diff] [blame] | 46 | sed -i 's/PV =.*/PV = "'${ver2%-*}'"/g' meta-filogic/recipes-wifi/linux-mac80211/linux-mac80211_5.15.%.bb |
developer | 843fd2b | 2022-04-15 18:30:12 +0800 | [diff] [blame] | 47 | ver3=`grep "PKG_HASH" mac80211_package/package/kernel/mac80211/Makefile | cut -c 11-` |
developer | a52defa | 2022-12-09 13:01:55 +0800 | [diff] [blame] | 48 | sed -i 's/SRC_URI\[sha256sum\].*/SRC_URI[sha256sum] = "'${ver3}'"/g' meta-filogic/recipes-wifi/linux-mac80211/linux-mac80211_5.15.%.bb |
developer | 843fd2b | 2022-04-15 18:30:12 +0800 | [diff] [blame] | 49 | |
developer | 64ad4e6 | 2022-04-29 18:17:53 +0800 | [diff] [blame] | 50 | echo "gen hostapd patches.........." |
developer | 46436b0 | 2023-06-08 13:31:19 +0800 | [diff] [blame] | 51 | rm -rf mac80211_package/package/network/services/hostapd |
| 52 | tar xvf mtk_openwrt_feeds/autobuild_mac80211_release/package/network/services/hostapd/hostapd_v2.10_07730ff3.tar.gz -C mac80211_package/package/network/services/ |
| 53 | cp -rf mtk_openwrt_feeds/autobuild_mac80211_release/package/network/services/hostapd/patches/* mac80211_package/package/network/services/hostapd/patches |
developer | 64ad4e6 | 2022-04-29 18:17:53 +0800 | [diff] [blame] | 54 | cp meta-cmf-filogic/mtk_scripts/rdkb_inc_helper mac80211_package/package/network/services/hostapd |
| 55 | cd mac80211_package/package/network/services/hostapd |
| 56 | ./rdkb_inc_helper patches |
| 57 | mv patches.inc patches |
| 58 | echo "some patch do not apply to RDKB" |
| 59 | sed -i 's/450-scan_wait.patch/&;apply=no/' patches/patches.inc |
| 60 | |
| 61 | cd - |
developer | c480fbb | 2022-11-07 18:39:36 +0800 | [diff] [blame] | 62 | rm -rf meta-filogic/recipes-wifi/hostapd/files/patches |
| 63 | rm -rf meta-filogic/recipes-wifi/wpa-supplicant/files/patches |
| 64 | cp -rf mac80211_package/package/network/services/hostapd/patches meta-filogic/recipes-wifi/hostapd/files/ |
| 65 | cp -rf mac80211_package/package/network/services/hostapd/patches meta-filogic/recipes-wifi/wpa-supplicant/files/ |
| 66 | rm -rf meta-filogic/recipes-wifi/hostapd/files/src |
| 67 | rm -rf meta-filogic/recipes-wifi/wpa-supplicant/files/src |
| 68 | cp -rf mac80211_package/package/network/services/hostapd/src meta-filogic/recipes-wifi/hostapd/files/ |
| 69 | cp -rf mac80211_package/package/network/services/hostapd/src meta-filogic/recipes-wifi/wpa-supplicant/files/ |
developer | 8bbedcf | 2022-05-03 12:58:56 +0800 | [diff] [blame] | 70 | echo "cp defconfig and remove ubus" |
developer | c480fbb | 2022-11-07 18:39:36 +0800 | [diff] [blame] | 71 | cp mac80211_package/package/network/services/hostapd/files/hostapd-full.config meta-filogic/recipes-wifi/hostapd/files/ |
| 72 | cp mac80211_package/package/network/services/hostapd/files/wpa_supplicant-full.config meta-filogic/recipes-wifi/wpa-supplicant/files/ |
| 73 | #sed -i 's/CONFIG_UBUS=y.*//g' meta-filogic/recipes-wifi/hostapd/files/hostapd-full.config |
| 74 | #sed -i 's/CONFIG_UBUS=y.*//g' meta-filogic/recipes-wifi/wpa-supplicant/files/wpa_supplicant-full.config |
developer | 64ad4e6 | 2022-04-29 18:17:53 +0800 | [diff] [blame] | 75 | |
| 76 | echo "Update hostapd bb file version.........." |
| 77 | ver=`grep "PKG_SOURCE_VERSION" mac80211_package/package/network/services/hostapd/Makefile | cut -c 21-` |
developer | c480fbb | 2022-11-07 18:39:36 +0800 | [diff] [blame] | 78 | sed -i 's/SRCREV ?=.*/SRCREV ?= "'$ver'"/g' meta-filogic/recipes-wifi/hostapd/hostapd_2.10.bb |
| 79 | sed -i 's/SRCREV ?=.*/SRCREV ?= "'$ver'"/g' meta-filogic/recipes-wifi/wpa-supplicant/wpa-supplicant_2.10.bb |
developer | 61b9b98 | 2022-11-10 12:05:10 +0800 | [diff] [blame] | 80 | #cp openwrt hostapd script |
| 81 | cp -rf mac80211_package/package/network/services/hostapd/files/hostapd.sh meta-filogic/recipes-wifi/hostapd/files/openwrt_script/ |
| 82 | cp -rf mac80211_package/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh meta-filogic/recipes-wifi/hostapd/files/openwrt_script/ |
developer | 9eeda51 | 2022-06-16 13:36:36 +0800 | [diff] [blame] | 83 | echo "GEN iw patches.........." |
| 84 | cp meta-cmf-filogic/mtk_scripts/rdkb_inc_helper mac80211_package/package/network/utils/iw |
| 85 | cd mac80211_package/package/network/utils/iw |
developer | 16b198b | 2022-08-02 11:14:02 +0800 | [diff] [blame] | 86 | #remove patches not work for wifi hal |
| 87 | rm -rf patches/200-reduce_size.patch |
| 88 | |
developer | 9eeda51 | 2022-06-16 13:36:36 +0800 | [diff] [blame] | 89 | ./rdkb_inc_helper patches |
| 90 | mv patches.inc patches |
| 91 | |
| 92 | cd - |
developer | c480fbb | 2022-11-07 18:39:36 +0800 | [diff] [blame] | 93 | rm -rf meta-filogic/recipes-wifi/iw/patches |
| 94 | cp -rf mac80211_package/package/network/utils/iw/patches meta-filogic/recipes-wifi/iw |
developer | 9eeda51 | 2022-06-16 13:36:36 +0800 | [diff] [blame] | 95 | ver=`grep "PKG_VERSION:=" mac80211_package/package/network/utils/iw/Makefile | cut -c 14-` |
| 96 | newbb=iw_${ver}.bb |
developer | c480fbb | 2022-11-07 18:39:36 +0800 | [diff] [blame] | 97 | cd meta-filogic/recipes-wifi/iw/ |
developer | 9eeda51 | 2022-06-16 13:36:36 +0800 | [diff] [blame] | 98 | oldbb=`ls *.bb` |
| 99 | echo "Update iw bb file name.........." |
| 100 | mv ${oldbb} ${newbb} |
| 101 | cd - |
| 102 | |
| 103 | echo "Update iw bb hash .........." |
| 104 | hash1=`grep "PKG_HASH" mac80211_package/package/network/utils/iw/Makefile | cut -c 11-` |
developer | c480fbb | 2022-11-07 18:39:36 +0800 | [diff] [blame] | 105 | sed -i 's/SRC_URI\[sha256sum\].*/SRC_URI[sha256sum] = "'${hash1}'"/g' meta-filogic/recipes-wifi/iw/${newbb} |
developer | 9eeda51 | 2022-06-16 13:36:36 +0800 | [diff] [blame] | 106 | |
| 107 | echo "Gen wireless-regdb patches.........." |
| 108 | cp meta-cmf-filogic/mtk_scripts/rdkb_inc_helper mac80211_package/package/firmware/wireless-regdb/ |
| 109 | cd mac80211_package/package/firmware/wireless-regdb/ |
| 110 | ./rdkb_inc_helper patches |
| 111 | mv patches.inc patches |
| 112 | |
| 113 | cd - |
developer | c480fbb | 2022-11-07 18:39:36 +0800 | [diff] [blame] | 114 | rm -rf meta-filogic/recipes-wifi/wireless-regdb/files/patches |
| 115 | cp -rf mac80211_package/package/firmware/wireless-regdb/patches meta-filogic/recipes-wifi/wireless-regdb/files/ |
developer | 9eeda51 | 2022-06-16 13:36:36 +0800 | [diff] [blame] | 116 | ver=`grep "PKG_VERSION:=" mac80211_package/package/firmware/wireless-regdb/Makefile | cut -c 14-` |
| 117 | newbb=wireless-regdb_${ver}.bb |
developer | c480fbb | 2022-11-07 18:39:36 +0800 | [diff] [blame] | 118 | cd meta-filogic/recipes-wifi/wireless-regdb/ |
developer | 9eeda51 | 2022-06-16 13:36:36 +0800 | [diff] [blame] | 119 | oldbb=`ls *.bb` |
| 120 | echo "Update wireless-regdb bb file name.........." |
| 121 | mv ${oldbb} ${newbb} |
| 122 | cd - |
| 123 | |
| 124 | echo "Update wireless-regdb bb hash.........." |
| 125 | hash1=`grep "PKG_HASH" mac80211_package/package/firmware/wireless-regdb/Makefile | cut -c 11-` |
developer | c480fbb | 2022-11-07 18:39:36 +0800 | [diff] [blame] | 126 | sed -i 's/SRC_URI\[sha256sum\].*/SRC_URI[sha256sum] = "'${hash1}'"/g' meta-filogic/recipes-wifi/wireless-regdb/${newbb} |
developer | 9eeda51 | 2022-06-16 13:36:36 +0800 | [diff] [blame] | 127 | |
developer | b8a4a34 | 2022-07-04 10:11:28 +0800 | [diff] [blame] | 128 | echo "Update libubox version.........." |
| 129 | ver=`grep "PKG_SOURCE_VERSION" mac80211_package/package/libs/libubox/Makefile | cut -c 21-` |
developer | c480fbb | 2022-11-07 18:39:36 +0800 | [diff] [blame] | 130 | sed -i 's/SRCREV =.*/SRCREV = "'$ver'"/g' meta-filogic/recipes-wifi/libubox/libubox_git.bbappend |
developer | b8a4a34 | 2022-07-04 10:11:28 +0800 | [diff] [blame] | 131 | |
| 132 | echo "Update ubus version.........." |
| 133 | ver=`grep "PKG_SOURCE_VERSION" mac80211_package/package/system/ubus/Makefile | cut -c 21-` |
developer | c480fbb | 2022-11-07 18:39:36 +0800 | [diff] [blame] | 134 | sed -i 's/SRCREV =.*/SRCREV = "'$ver'"/g' meta-filogic/recipes-wifi/ubus/ubus_git.bb |
developer | b8a4a34 | 2022-07-04 10:11:28 +0800 | [diff] [blame] | 135 | |
| 136 | echo "Update libnl-tiny version.........." |
| 137 | ver=`grep "PKG_SOURCE_VERSION" mac80211_package/package/libs/libnl-tiny/Makefile | cut -c 21-` |
developer | c480fbb | 2022-11-07 18:39:36 +0800 | [diff] [blame] | 138 | sed -i 's/SRCREV =.*/SRCREV = "'$ver'"/g' meta-filogic/recipes-wifi/libnl-tiny/libnl-tiny_git.bb |
developer | b8a4a34 | 2022-07-04 10:11:28 +0800 | [diff] [blame] | 139 | |
developer | 77d2640 | 2022-11-18 13:53:18 +0800 | [diff] [blame] | 140 | echo "Update iwinfo version.........." |
| 141 | ver=`grep "PKG_SOURCE_VERSION" mac80211_package/package/network/utils/iwinfo/Makefile | cut -c 21-` |
| 142 | sed -i 's/SRCREV =.*/SRCREV = "'$ver'"/g' meta-filogic/recipes-wifi/iwinfo/iwinfo_git.bb |
| 143 | |
developer | 752a122 | 2022-10-11 16:19:00 +0800 | [diff] [blame] | 144 | echo "Update atenl ...... " |
developer | c480fbb | 2022-11-07 18:39:36 +0800 | [diff] [blame] | 145 | cp -rf mtk_openwrt_feeds/feed/atenl/src meta-filogic/recipes-wifi/atenl/files/ |
| 146 | cp -f mtk_openwrt_feeds/feed/atenl/files/ated.sh meta-filogic/recipes-wifi/atenl/files/ |
| 147 | cp -f mtk_openwrt_feeds/feed/atenl/files/iwpriv.sh meta-filogic/recipes-wifi/atenl/files/ |
developer | 752a122 | 2022-10-11 16:19:00 +0800 | [diff] [blame] | 148 | |
developer | e2f847d | 2022-10-12 16:37:58 +0800 | [diff] [blame] | 149 | echo "Update mt76-verdor ...... " |
developer | c480fbb | 2022-11-07 18:39:36 +0800 | [diff] [blame] | 150 | cp -rf mtk_openwrt_feeds/feed/mt76-vendor/src meta-filogic/recipes-wifi/mt76-vendor/files/ |
developer | e2f847d | 2022-10-12 16:37:58 +0800 | [diff] [blame] | 151 | |
developer | d728d7c | 2022-10-25 13:45:17 +0800 | [diff] [blame] | 152 | echo "Update Wmm Script ......." |
developer | c480fbb | 2022-11-07 18:39:36 +0800 | [diff] [blame] | 153 | cp -rf autobuild_v5/mt7986-mac80211/target/linux/mediatek/base-files/sbin/wmm-*.sh meta-filogic/recipes-wifi/wifi-test-tool/files/wmm_script |
developer | d728d7c | 2022-10-25 13:45:17 +0800 | [diff] [blame] | 154 | |
developer | 6440941 | 2022-12-13 17:06:55 +0800 | [diff] [blame] | 155 | echo "update wifi7 mac80211" |
| 156 | rm -rf mac80211_package |
| 157 | git clone --branch master https://gerrit.mediatek.inc/openwrt/lede mac80211_package |
| 158 | |
| 159 | rm -rf mtk_openwrt_feeds/autobuild_mac80211_release/package/kernel/mac80211 |
developer | 46436b0 | 2023-06-08 13:31:19 +0800 | [diff] [blame] | 160 | rm -rf mtk_openwrt_feeds/autobuild_mac80211_release/package/network/services/hostapd |
developer | 6440941 | 2022-12-13 17:06:55 +0800 | [diff] [blame] | 161 | cd mtk_openwrt_feeds/autobuild_mac80211_release/package/kernel/ |
| 162 | mv mac80211_dev mac80211 |
| 163 | cd - |
| 164 | |
| 165 | echo "copy.........." |
| 166 | cp -rfa mtk_openwrt_feeds/autobuild_mac80211_release/package/ mac80211_package/ |
developer | ac314cd | 2023-02-13 16:04:42 +0800 | [diff] [blame] | 167 | cp -rfa mtk_openwrt_feeds/autobuild_mac80211_release/mt7988_mt7996_mac80211/package/kernel/mac80211 mac80211_package/package/kernel/ |
developer | 6440941 | 2022-12-13 17:06:55 +0800 | [diff] [blame] | 168 | |
| 169 | echo "gen wifi7 mac80211 patches.........." |
| 170 | cp meta-cmf-filogic/mtk_scripts/rdkb_inc_helper mac80211_package/package/kernel/mac80211/patches |
| 171 | cd mac80211_package/package/kernel/mac80211/patches |
| 172 | ./rdkb_inc_helper subsys/ |
| 173 | ./rdkb_inc_helper build/ |
| 174 | mv subsys.inc subsys |
| 175 | mv build.inc build |
| 176 | mkdir patches |
| 177 | cp -r subsys patches |
| 178 | cp -r build patches |
| 179 | cd - |
| 180 | rm -rf meta-filogic/recipes-wifi/linux-mac80211/files/patches-6.x |
| 181 | cp -rf mac80211_package/package/kernel/mac80211/patches/patches meta-filogic/recipes-wifi/linux-mac80211/files/patches-6.x |
| 182 | |
| 183 | ver2=`grep "PKG_VERSION:=" mac80211_package/package/kernel/mac80211/Makefile | cut -c 14-` |
| 184 | sed -i 's/PV =.*/PV = "'${ver2}'"/g' meta-filogic/recipes-wifi/linux-mac80211/linux-mac80211_6.%.bb |
| 185 | ver3=`grep "PKG_HASH" mac80211_package/package/kernel/mac80211/Makefile | cut -c 11-` |
| 186 | sed -i 's/SRC_URI\[sha256sum\].*/SRC_URI[sha256sum] = "'${ver3}'"/g' meta-filogic/recipes-wifi/linux-mac80211/linux-mac80211_6.%.bb |
| 187 | |
developer | 0e8c91d | 2022-12-26 16:23:55 +0800 | [diff] [blame] | 188 | echo "mt76_3.x patches for backport-6.x support " |
| 189 | cp meta-cmf-filogic/mtk_scripts/rdkb_inc_helper mtk_openwrt_feeds/autobuild_mac80211_release/mt7988_mt7996_mac80211/package/kernel/mt76 |
| 190 | cd mtk_openwrt_feeds/autobuild_mac80211_release/mt7988_mt7996_mac80211/package/kernel/mt76 |
| 191 | ./rdkb_inc_helper patches |
| 192 | mv patches.inc patches |
| 193 | cd - |
developer | 6440941 | 2022-12-13 17:06:55 +0800 | [diff] [blame] | 194 | rm -rf meta-filogic/recipes-wifi/linux-mt76/files/patches-3.x |
developer | 0e8c91d | 2022-12-26 16:23:55 +0800 | [diff] [blame] | 195 | cp -rf mtk_openwrt_feeds/autobuild_mac80211_release/mt7988_mt7996_mac80211/package/kernel/mt76/patches meta-filogic/recipes-wifi/linux-mt76/files/patches-3.x |
| 196 | #cp -rf meta-filogic/recipes-wifi/linux-mt76/files/patches meta-filogic/recipes-wifi/linux-mt76/files/patches-3.x |
developer | 392c596 | 2022-12-19 14:01:52 +0800 | [diff] [blame] | 197 | #rm -rf meta-filogic/recipes-wifi/linux-mt76/files/patches-3.x/*revert-for-backports*.patch |
developer | 0e8c91d | 2022-12-26 16:23:55 +0800 | [diff] [blame] | 198 | #sed -i 's/4003-mt76-revert-for-backports-5.15-wireless-stack.patch/&;apply=no/' meta-filogic/recipes-wifi/linux-mt76/files/patches-3.x/patches.inc |
developer | 6440941 | 2022-12-13 17:06:55 +0800 | [diff] [blame] | 199 | |
developer | 0f27dcd | 2022-12-26 20:07:32 +0800 | [diff] [blame] | 200 | echo "gen new hostapd patches for mt76_3.x" |
developer | 46436b0 | 2023-06-08 13:31:19 +0800 | [diff] [blame] | 201 | |
| 202 | cp -rf mtk_openwrt_feeds/autobuild_mac80211_release/package/network/services/hostapd_new/patches/* mac80211_package/package/network/services/hostapd/patches |
developer | 0f27dcd | 2022-12-26 20:07:32 +0800 | [diff] [blame] | 203 | cp meta-cmf-filogic/mtk_scripts/rdkb_inc_helper mac80211_package/package/network/services/hostapd |
developer | fa2eb2b | 2023-02-15 16:42:38 +0800 | [diff] [blame] | 204 | cp -rfa mtk_openwrt_feeds/autobuild_mac80211_release/mt7988_mt7996_mac80211/package/network/services/hostapd mac80211_package/package/network/services/ |
developer | 0f27dcd | 2022-12-26 20:07:32 +0800 | [diff] [blame] | 205 | cd mac80211_package/package/network/services/hostapd |
developer | d34bdfc | 2023-01-18 18:14:22 +0800 | [diff] [blame] | 206 | |
developer | 0f27dcd | 2022-12-26 20:07:32 +0800 | [diff] [blame] | 207 | ./rdkb_inc_helper patches |
| 208 | mv patches.inc patches |
| 209 | echo "some patch do not apply to RDKB" |
| 210 | sed -i 's/450-scan_wait.patch/&;apply=no/' patches/patches.inc |
developer | 46436b0 | 2023-06-08 13:31:19 +0800 | [diff] [blame] | 211 | |
| 212 | echo "Update hostapd bb file version.........." |
developer | 0f27dcd | 2022-12-26 20:07:32 +0800 | [diff] [blame] | 213 | #define new hostapd version |
| 214 | new_hostapd_ver=2.10.3 |
developer | 46436b0 | 2023-06-08 13:31:19 +0800 | [diff] [blame] | 215 | |
developer | 0f27dcd | 2022-12-26 20:07:32 +0800 | [diff] [blame] | 216 | cd - |
developer | 46436b0 | 2023-06-08 13:31:19 +0800 | [diff] [blame] | 217 | ver=`grep "PKG_SOURCE_VERSION" mac80211_package/package/network/services/hostapd/Makefile | cut -c 21-` |
| 218 | sed -i 's/SRCREV ?=.*/SRCREV ?= "'$ver'"/g' meta-filogic/recipes-wifi/hostapd/hostapd_${new_hostapd_ver}.bb |
| 219 | sed -i 's/SRCREV ?=.*/SRCREV ?= "'$ver'"/g' meta-filogic/recipes-wifi/wpa-supplicant/wpa-supplicant_${new_hostapd_ver}.bb |
| 220 | |
developer | 0f27dcd | 2022-12-26 20:07:32 +0800 | [diff] [blame] | 221 | rm -rf meta-filogic/recipes-wifi/hostapd/files/patches-${new_hostapd_ver} |
| 222 | rm -rf meta-filogic/recipes-wifi/wpa-supplicant/files/patches-${new_hostapd_ver} |
| 223 | cp -rf mac80211_package/package/network/services/hostapd/patches meta-filogic/recipes-wifi/hostapd/files/patches-${new_hostapd_ver} |
| 224 | cp -rf mac80211_package/package/network/services/hostapd/patches meta-filogic/recipes-wifi/wpa-supplicant/files/patches-${new_hostapd_ver} |
| 225 | |
developer | 843fd2b | 2022-04-15 18:30:12 +0800 | [diff] [blame] | 226 | echo "Sync from OpenWRT done , ready to commit meta-filogic!!!" |