mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-24 15:56:41 +00:00
run: always return driver names in platform.inc
On platforms without nic or audio driver support, the corresponding functions to return the correct names should return a meaningful name instead of an empty list. Otherwise, in an erroneous run-script that calls those functions to append names to the boot modules the whole 'bin' directory is appended instead, which leads to big image files or errors when linking the boot modules to core.
This commit is contained in:
parent
e9a8d83eb5
commit
28f7568e82
@ -37,6 +37,7 @@ proc nic_drv_binary { } {
|
|||||||
if {[have_spec linux]} { return linux_nic_drv }
|
if {[have_spec linux]} { return linux_nic_drv }
|
||||||
if {[have_spec omap4] || [have_spec arndale] || [have_spec rpi]} { return usb_drv }
|
if {[have_spec omap4] || [have_spec arndale] || [have_spec rpi]} { return usb_drv }
|
||||||
if {!([have_spec imx53] || [have_spec riscv] || [have_spec odroid_xu] || [have_spec wand_quad])} { return nic_drv }
|
if {!([have_spec imx53] || [have_spec riscv] || [have_spec odroid_xu] || [have_spec wand_quad])} { return nic_drv }
|
||||||
|
return no_nic_drv_available
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -46,6 +47,7 @@ proc nic_drv_binary { } {
|
|||||||
proc audio_drv_binary { } {
|
proc audio_drv_binary { } {
|
||||||
if {[have_spec linux]} { return linux_audio_drv }
|
if {[have_spec linux]} { return linux_audio_drv }
|
||||||
if {[have_spec x86]} { return audio_drv }
|
if {[have_spec x86]} { return audio_drv }
|
||||||
|
return no_audio_drv_available
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user