sculpt: anchor nic_drv, wifi_drv to hardware node

This commit is contained in:
Norman Feske 2019-02-27 19:16:17 +01:00 committed by Christian Helmuth
parent 2c253edda9
commit 3840ea9537
2 changed files with 8 additions and 8 deletions

View File

@ -22,6 +22,10 @@ void Sculpt::gen_nic_drv_start_content(Xml_generator &xml)
xml.node("config", [&] () { });
xml.node("route", [&] () {
gen_service_node<Platform::Session>(xml, [&] () {
xml.node("parent", [&] () {
xml.attribute("label", "nic"); }); });
gen_parent_rom_route(xml, "nic_drv");
gen_parent_rom_route(xml, "ld.lib.so");
gen_parent_route<Cpu_session> (xml);
@ -29,9 +33,5 @@ void Sculpt::gen_nic_drv_start_content(Xml_generator &xml)
gen_parent_route<Rm_session> (xml);
gen_parent_route<Log_session> (xml);
gen_parent_route<Timer::Session> (xml);
gen_service_node<Platform::Session>(xml, [&] () {
xml.node("parent", [&] () {
xml.attribute("label", "nic"); }); });
});
}

View File

@ -40,6 +40,10 @@ void Sculpt::gen_wifi_drv_start_content(Xml_generator &xml)
});
xml.node("route", [&] () {
gen_service_node<Platform::Session>(xml, [&] () {
xml.node("parent", [&] () {
xml.attribute("label", "wifi"); }); });
gen_parent_rom_route(xml, "wifi_drv");
gen_parent_rom_route(xml, "ld.lib.so");
gen_parent_rom_route(xml, "libcrypto.lib.so");
@ -75,9 +79,5 @@ void Sculpt::gen_wifi_drv_start_content(Xml_generator &xml)
xml.attribute("label", "wifi_config");
xml.node("parent", [&] () {
xml.attribute("label", "config -> managed/wifi"); }); });
gen_service_node<Platform::Session>(xml, [&] () {
xml.node("parent", [&] () {
xml.attribute("label", "wifi"); }); });
});
}