diff options
author | Andrew Robbins <contact@andrewrobbins.info> | 2018-10-16 21:05:08 -0400 |
---|---|---|
committer | Andrew Robbins <contact@andrewrobbins.info> | 2018-10-16 21:13:35 -0400 |
commit | 7c3c62afda56b4ab4aff46cefb1d11aa7a6c7b0f (patch) | |
tree | 646d593e12f9374b88ecbb429f7b46d0568d349b /projects/coreboot | |
parent | 94bdcbe812324412ee990cf0880fdb7caa5264d2 (diff) | |
download | librebootfr-7c3c62afda56b4ab4aff46cefb1d11aa7a6c7b0f.tar.gz librebootfr-7c3c62afda56b4ab4aff46cefb1d11aa7a6c7b0f.zip |
Test $variant_config_path and load config if non-null
This avoids an error being printed about a non-existent path when
building Coreboot for boards without variants.
Diffstat (limited to 'projects/coreboot')
-rwxr-xr-x | projects/coreboot/coreboot | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/projects/coreboot/coreboot b/projects/coreboot/coreboot index 48da5939..f7cfd2d9 100755 --- a/projects/coreboot/coreboot +++ b/projects/coreboot/coreboot @@ -86,7 +86,9 @@ build() { < <(coreboot_config "$board" "$@") \ 2>/dev/null) - mapfile -t board_variant_config < "$variant_config_path" + if [[ -n "$variant_config_path" ]]; then + mapfile -t board_variant_config < "$variant_config_path" + fi if git_project_check "$repository" then |