[][MAC80211][misc][Sync internal build script]

[Description]
Refactor build script from internal.

[Release-log]
N/A

Change-Id: I88aedadf5a910e59f171e8545ed7be7bb7520412
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6957200
1 file changed