From cfb4ac12782dfffe39d32b9832ccbb4cd553cc7b Mon Sep 17 00:00:00 2001
From: Francis Rowe <info@gluglug.org.uk>
Date: Thu, 25 Jun 2015 12:50:57 -0400
Subject: build/config/coreboot{modify,update}: skip non-existent configs

But do not abort. Only issue a warning.
---
(limited to 'resources/scripts/helpers/build/config/corebootupdate')

diff --git a/resources/scripts/helpers/build/config/corebootupdate b/resources/scripts/helpers/build/config/corebootupdate
index fa0a1fe..47857c5 100755
--- a/resources/scripts/helpers/build/config/corebootupdate
+++ b/resources/scripts/helpers/build/config/corebootupdate
@@ -37,6 +37,11 @@ cd "../../../coreboot/"
 for config in ${configs}; do
 	printf "Updating config for %s\n" "${config}"
 	sleep 5
+
+	if [ ! -d "../resources/libreboot/config/${config}/" ]; then
+		printf "build/config/corebootupdate WARNING: config '%s' does not exist. Skipping.\n" "${config}"
+		continue
+	fi
 	
 	mv "../resources/libreboot/config/${config}/config" ".config"
 	make oldconfig
--
cgit v0.9.1