[Add support HAL of ethernet switch gsw mode]
[Description]
Add support HAL of ethernet switch gsw mode
1. add swtich tool BB files
2. use DISTRO_FEATURES "switch_gsw_mode" to change dts
3. modify hostapd-init.sh to add eth1 to brlan0 in gsw mode
[Release-log]
diff --git a/conf/machine/filogic-32bit.conf b/conf/machine/filogic-32bit.conf
index a6f42d5..c064be3 100644
--- a/conf/machine/filogic-32bit.conf
+++ b/conf/machine/filogic-32bit.conf
@@ -11,6 +11,13 @@
SOC_FAMILY = "mediatek"
+MACHINEOVERRIDES .="${@bb.utils.contains('DISTRO_FEATURES','switch_gsw_mode',':gsw','',d)}"
+
+KERNEL_DEVICETREE_gsw = " \
+ mediatek/mt7986a-2500wan-gsw-spim-nand-rfb.dtb \
+ mediatek/mt7986b-2500wan-gsw-spim-nand-rfb.dtb \
+ "
+
KERNEL_DEVICETREE ?= " \
mt7986a-spim-nand-rfb.dtb \
mt7986b-spim-nand-rfb.dtb \