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:
Stefan Kalkowski 2018-02-05 15:12:59 +01:00 committed by Norman Feske
parent e9a8d83eb5
commit 28f7568e82

View File

@ -37,6 +37,7 @@ proc nic_drv_binary { } {
if {[have_spec linux]} { return linux_nic_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 }
return no_nic_drv_available
}
@ -46,6 +47,7 @@ proc nic_drv_binary { } {
proc audio_drv_binary { } {
if {[have_spec linux]} { return linux_audio_drv }
if {[have_spec x86]} { return audio_drv }
return no_audio_drv_available
}