summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimanshu Sahdev <himanshusah@hcl.com>2019-09-16 15:55:03 +0530
committerPatrick Georgi <pgeorgi@google.com>2019-09-26 10:11:14 +0000
commitd1e18d9a44fdff0db0a738537c71c9c7741be69b (patch)
tree57a28ac01a989aa06cc9384a50fbc402a8efcc3a
parent7ae4a268eb244ac5ab80ed9db5887fe35b71a49e (diff)
coreboot/Makefile: display error when spaces in path of toplevel makefile
coreboot toplevel makefile breaks when path to the coreboot directory contains spaces. This patch displays a reasonable message to the user whenever spaces are found within the path to the coreboot direcrory. This commit addresses coreboot ticket #179. Change-Id: Id11deffa01ddca1ff9332d67c7aa33a382b4cdc7 Signed-off-by: Sourabh Kashyap <sourabhka@hcl.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/35434 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 52cba69b30..35a4b32c2a 100644
--- a/Makefile
+++ b/Makefile
@@ -30,6 +30,9 @@
## SUCH DAMAGE.
##
+ifneq ($(words $(CURDIR)),1)
+ $(error Error: Path to the main directory cannot contain spaces)
+endif
top := $(CURDIR)
src := src
srck := $(top)/util/kconfig