rom_filter: support sub nodes outside of <inline>

Fixes #4560
This commit is contained in:
Peter Krummenacher 2022-07-14 11:38:11 +02:00 committed by Christian Helmuth
parent 9183870b9e
commit f859cd11bd
2 changed files with 10 additions and 0 deletions

View File

@ -48,6 +48,10 @@ The '<output>' node can contain the following sub nodes:
has an 'input' attribute, the content of the specified input is taken
as attribute value.
:'<node>':
Adds a sub node with the specified 'type'. The content of <node> is evaluated
to generate the content of the added sub node.
Conditions
----------

View File

@ -321,6 +321,12 @@ void Rom_filter::Main::_evaluate_node(Xml_node node, Xml_generator &xml)
}
} else
if (node.has_type("node")) {
xml.node(node.attribute_value("type", Genode::String<128>()).string(), [&]() {
_evaluate_node(node, xml);
});
} else
if (node.has_type("inline")) {
node.with_raw_content([&] (char const *src, size_t len) {