sculpt_manager: apply affinity-space to runtime

Issue #3599
This commit is contained in:
Alexander Boettcher 2020-01-14 15:10:14 +01:00 committed by Christian Helmuth
parent 186a6bc080
commit 72f5f9d133
2 changed files with 14 additions and 5 deletions

View File

@ -311,11 +311,12 @@ exec parted -a none -s [ahci_1_img] -- mklabel gpt \
mkpart GRUB fat32 1024s 1279s \
mkpart GENODE ext2 1280s 3700s
install_rom_module focus {<focus label="leitzentrale -> manager -> fader -> "/>}
install_rom_module leitzentrale {<leitzentrale enabled="yes"/>}
install_rom_module reset {<reset enabled="no"/>}
install_rom_module README {nothing to read here}
install_rom_module VERSION {unknown version}
install_rom_module focus {<focus label="leitzentrale -> manager -> fader -> "/>}
install_rom_module leitzentrale {<leitzentrale enabled="yes"/>}
install_rom_module reset {<reset enabled="no"/>}
install_rom_module README {nothing to read here}
install_rom_module VERSION {unknown version}
install_rom_module platform_info {<empty/>}
install_rom_module block_devices {
<block_devices>

View File

@ -463,6 +463,7 @@ struct Sculpt::Main : Input_event_handler,
void _handle_runtime_state();
Attached_rom_dataspace const _platform { _env, "platform_info" };
/****************************************
** Cached model of the runtime config **
@ -1302,6 +1303,13 @@ void Sculpt::Main::_generate_runtime_config(Xml_generator &xml) const
gen_parent_service<Irq_session>(xml);
});
_platform.xml().with_sub_node("affinity-space", [&] (Xml_node const &node) {
xml.node("affinity-space", [&] () {
xml.attribute("width", node.attribute_value("width", 1U));
xml.attribute("height", node.attribute_value("height", 1U));
});
});
xml.node("start", [&] () {
gen_runtime_view_start_content(xml, _runtime_view_state, _gui.font_size()); });