blob: 55bf19522ea452d69927ff965141f652aeb65783 [file] [log] [blame]
developercc441a02022-05-09 19:04:26 +08001require ccsp_common_filogic.inc
developer15a43312022-04-12 11:23:23 +08002
3LDFLAGS_append_dunfell = " -lsafec-3.5.1"
4
5do_install_append() {
6 # Config files and scripts
7 install -d ${D}/usr/ccsp/config
8 install -m 644 ${S}/config/bbhm_def_cfg_qemu.xml ${D}/usr/ccsp/config/bbhm_def_cfg.xml
9 install -m 755 ${S}/scripts/bbhm_patch.sh ${D}/usr/ccsp/psm/bbhm_patch.sh
developer15a43312022-04-12 11:23:23 +080010
11#WanManager Feature
12 DISTRO_WAN_ENABLED="${@bb.utils.contains('DISTRO_FEATURES','rdkb_wan_manager','true','false',d)}"
13 if [ $DISTRO_WAN_ENABLED = 'true' ]; then
14 sed -i '/AccessPoint.16.vAPStatsEnable/a \
15 <!-- rdkb-wanmanager related --> \
16 <Record name="dmsb.wanmanager.wanenable" type="astr">1</Record> \
17 <Record name="dmsb.wanmanager.wanifcount" type="astr">1</Record> \
18 <Record name="dmsb.wanmanager.wanpolicy" type="astr">2</Record> \
19 <Record name="dmsb.wanmanager.wanidletimeout" type="astr">0</Record> \
20 <Record name="dmsb.selfheal.rebootstatus" type="astr">0</Record> \
developer2d1080e2023-11-27 13:24:55 +080021 <Record name="dmsb.wanmanager.allowremoteinterfaces" type="astr">0</Record> \
22 <Record name="dmsb.wanmanager.RestorationDelay" type="astr">45</Record> \
developer15a43312022-04-12 11:23:23 +080023 <Record name="dmsb.wanmanager.if.1.Name" type="astr">eth2</Record> \
24 <Record name="dmsb.wanmanager.if.1.DisplayName" type="astr">WanOE</Record> \
25 <Record name="dmsb.wanmanager.if.1.Enable" type="astr">TRUE</Record> \
26 <Record name="dmsb.wanmanager.if.1.Type" type="astr">2</Record> \
27 <Record name="dmsb.wanmanager.if.1.Priority" type="astr">0</Record> \
28 <Record name="dmsb.wanmanager.if.1.SelectionTimeout" type="astr">0</Record> \
29 <Record name="dmsb.wanmanager.if.1.DynTriggerEnable" type="astr">FALSE</Record> \
30 <Record name="dmsb.wanmanager.if.1.DynTriggerDelay" type="astr">0</Record> \
31 <Record name="dmsb.wanmanager.if.1.Marking.List" type="astr">DATA</Record> \
32 <Record name="dmsb.wanmanager.if.1.Marking.DATA.Alias" type="astr">DATA</Record> \
33 <Record name="dmsb.wanmanager.if.1.Marking.DATA.SKBPort" type="astr">1</Record> \
34 <Record name="dmsb.wanmanager.if.1.Marking.DATA.SKBMark" type="astr"> </Record> \
35 <Record name="dmsb.wanmanager.if.1.Marking.DATA.EthernetPriorityMark" type="astr"></Record> \
developer1495e4d2022-04-14 17:58:16 +080036 <Record name="dmsb.wanmanager.if.1.EnableDHCP" type="astr">TRUE</Record> \
37 <Record name="dmsb.wanmanager.if.1.EnableIPoE" type="astr">TRUE</Record> \
developer15a43312022-04-12 11:23:23 +080038 <Record name="dmsb.wanmanager.if.1.PPPEnable" type="astr">FALSE</Record> \
39 <Record name="dmsb.wanmanager.if.1.PPPLinkType" type="astr">PPPoE</Record> \
40 <Record name="dmsb.wanmanager.if.1.PPPIPCPEnable" type="astr">TRUE</Record> \
41 <Record name="dmsb.wanmanager.if.1.PPPIPV6CPEnable" type="astr">TRUE</Record> \
42 <Record name="dmsb.wanmanager.if.1.PPPIPCPEnable" type="astr">TRUE</Record> \
43 <Record name="dmsb.wanmanager.if.1.ActiveLink" type="astr">TRUE</Record> \
44 <Record name="dmsb.wanmanager.if.1.EnableMAPT" type="astr">FALSE</Record> \
45 <Record name="dmsb.wanmanager.if.1.EnableDSLite" type="astr">FALSE</Record> \
46 <Record name="dmsb.wanmanager.if.1.EnableIPoEHealthCheck" type="astr">FALSE</Record> \
developer2d1080e2023-11-27 13:24:55 +080047 <Record name="dmsb.wanmanager.if.1.RebootOnConfiguration" type="astr">FALSE</Record> \
48 <!-- ccsp-vlanmanager EthLink records --> \
49 <Record name="dmsb.ethlink.ifcount" type="astr">1</Record> \
50 <Record name="dmsb.ethlink.1.Enable" type="astr">FALSE</Record> \
51 <Record name="dmsb.ethlink.1.alias" type="astr">WANOE</Record> \
52 <Record name="dmsb.ethlink.1.name" type="astr">erouter0</Record> \
53 <Record name="dmsb.ethlink.1.lowerlayers" type="astr"></Record> \
54 <Record name="dmsb.ethlink.1.macoffset" type="astr">3</Record> \
55 <Record name="dmsb.ethlink.1.baseiface" type="astr">eth2</Record> \
56 <Record name="dmsb.ethlink.1.path" type="astr">Device.X_RDK_WanManager.Interface.1.VirtualInterface.1</Record> \
57 <Record name="dmsb.vlanmanager.ifcount" type="astr">1</Record> \
58 <Record name="dmsb.vlanmanager.1.Enable" type="astr">FALSE</Record> \
59 <Record name="dmsb.vlanmanager.1.alias" type="astr">WANOE</Record> \
60 <Record name="dmsb.vlanmanager.1.name" type="astr">erouter0</Record> \
61 <Record name="dmsb.vlanmanager.1.lowerlayers" type="astr">Device.X_RDK_Ethernet.Link.3</Record> \
62 <Record name="dmsb.vlanmanager.1.baseinterface" type="astr">eth2</Record> \
63 <Record name="dmsb.vlanmanager.1.vlanid" type="astr">-1</Record> \
64 <Record name="dmsb.vlanmanager.1.tpid" type="astr">0</Record> \
65 <Record name="dmsb.vlanmanager.1.path" type="astr">Device.X_RDK_WanManager.Interface.1.VirtualInterface.1</Record> \
66 <!-- Wanmanger Unified struct --> \
67 <Record name="dmsb.wanmanager.wan.interfacecount" type="astr">1</Record> \
68 <Record name="dmsb.wanmanager.group.Count" type="astr">1</Record> \
69 <Record name="dmsb.wanmanager.group.1.policy" type="astr">6</Record> \
70 <Record name="dmsb.wanmanager.if.1.BaseInterface" type="astr">Device.Ethernet.X_RDK_Interface.3</Record> \
71 <Record name="dmsb.wanmanager.if.1.Selection.Enable" type="astr">TRUE</Record> \
72 <Record name="dmsb.wanmanager.if.1.Selection.ActiveLink" type="astr">FALSE</Record> \
73 <Record name="dmsb.wanmanager.if.1.Selection.RequiresReboot" type="astr">FALSE</Record> \
74 <Record name="dmsb.wanmanager.if.1.Selection.Group" type="astr">1</Record> \
75 <Record name="dmsb.wanmanager.if.1.Selection.Priority" type="astr">1</Record> \
76 <Record name="dmsb.wanmanager.if.1.Selection.Timeout" type="astr">20</Record> \
77 <Record name="dmsb.wanmanager.if.1.VirtualInterfaceifcount" type="astr">1</Record> \
78 <Record name="dmsb.wanmanager.if.1.VirtualInterface.1.Enable" type="astr">TRUE</Record> \
79 <Record name="dmsb.wanmanager.if.1.VirtualInterface.1.Alias" type="astr">WANOE</Record> \
80 <Record name="dmsb.wanmanager.if.1.VirtualInterface.1.Name" type="astr">erouter0</Record> \
81 <Record name="dmsb.wanmanager.if.1.VirtualInterface.1.EnableMAPT" type="astr">TRUE</Record> \
82 <Record name="dmsb.wanmanager.if.1.VirtualInterface.1.EnableDSLite" type="astr">FALSE</Record> \
83 <Record name="dmsb.wanmanager.if.1.VirtualInterface.1.EnableIPoE" type="astr">TRUE</Record> \
84 <Record name="dmsb.wanmanager.if.1.VirtualInterface.1.PPPInterface" type="astr"></Record> \
85 <Record name="dmsb.wanmanager.if.1.VirtualInterface.1.IPInterface" type="astr">Device.IP.Interface.1</Record> \
86 <Record name="dmsb.wanmanager.if.1.VirtualInterface.1.IP.Mode" type="astr">3</Record> \
87 <Record name="dmsb.wanmanager.if.1.VirtualInterface.1.IP.IPv4Source" type="astr">2</Record> \
88 <Record name="dmsb.wanmanager.if.1.VirtualInterface.1.IP.IPv6Source" type="astr">2</Record> \
89 <Record name="dmsb.wanmanager.if.1.VirtualInterface.1.VlanInUse" type="astr">Device.X_RDK_Ethernet.VLANTermination.1</Record> \
90 <Record name="dmsb.wanmanager.if.1.VirtualInterface.1.Timeout" type="astr">20</Record> \
91 <Record name="dmsb.wanmanager.if.1.VirtualInterface.1.VlanCount" type="astr">1</Record> \
92 <Record name="dmsb.wanmanager.if.1.VirtualInterface.1.VLAN.1.Interface" type="astr">Device.X_RDK_Ethernet.VLANTermination.1</Record> \
93 <Record name="dmsb.wanmanager.if.1.VirtualInterface.1.MarkingCount" type="astr">0</Record>' ${D}/usr/ccsp/config/bbhm_def_cfg.xml
developer15a43312022-04-12 11:23:23 +080094 fi
95}
96
97LDFLAGS_append_dunfell = " -lpthread"