From 28f7568e82a075ad43732fa99890d9bdfd2a1a5d Mon Sep 17 00:00:00 2001 From: Stefan Kalkowski Date: Mon, 5 Feb 2018 15:12:59 +0100 Subject: [PATCH] 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. --- repos/base/run/platform_drv.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/repos/base/run/platform_drv.inc b/repos/base/run/platform_drv.inc index bfb4db8104..52b18185d6 100644 --- a/repos/base/run/platform_drv.inc +++ b/repos/base/run/platform_drv.inc @@ -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 }