mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-24 07:46:42 +00:00
4b46abf813
This patch removes the detection of statically linked executables from the base framework. It thereby fixes the corner cases encountered with Sculpt when obtaining the binaries of the runtime from the depot_rom service that is hosted within the runtime. Statically linked binaries and hybrid Linux/Genode (lx_hybrid) binaries can still be started by relabeling the ROM-session route of "ld.lib.so" to the binary name, pretending that the binary is the dynamic linker. This can be achieved via init's label rewriting mechanism: <route> <service name="ROM" unscoped_label="ld.lib.so"> <parent label="test-platform"/> </service> </route> However, as this is quite cryptic and would need to be applied for all lx_hybrid components, the patch adds a shortcut to init's configuration. One can simply add the 'ld="no"' attribute to the <start> node of the corresponding component: <start name="test-platform" ld="no"/> Fixes #2866
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
<config>
|
|
<parent-provides>
|
|
<service name="ROM"/>
|
|
<service name="PD"/>
|
|
<service name="CPU"/>
|
|
<service name="LOG"/>
|
|
<service name="Timer"/>
|
|
</parent-provides>
|
|
|
|
<service name="Framebuffer">
|
|
<default-policy> <child name="fb_sdl"/> </default-policy> </service>
|
|
|
|
<service name="Input">
|
|
<default-policy> <child name="input_filter"/> </default-policy> </service>
|
|
|
|
<start name="fb_sdl" caps="100" ld="no">
|
|
<resource name="RAM" quantum="4M"/>
|
|
<provides>
|
|
<service name="Input"/>
|
|
<service name="Framebuffer"/>
|
|
</provides>
|
|
<route> <any-service> <parent/> </any-service> </route>
|
|
</start>
|
|
|
|
<start name="input_filter" caps="80">
|
|
<resource name="RAM" quantum="1M"/>
|
|
<provides> <service name="Input"/> </provides>
|
|
<route>
|
|
<service name="ROM" label="config"> <parent label="input_filter.config"/> </service>
|
|
<service name="Input" label="sdl"> <child name="fb_sdl"/> </service>
|
|
<service name="ROM"> <parent/> </service>
|
|
<service name="PD"> <parent/> </service>
|
|
<service name="CPU"> <parent/> </service>
|
|
<service name="LOG"> <parent/> </service>
|
|
<service name="Timer"> <parent/> </service>
|
|
</route>
|
|
</start>
|
|
</config>
|