From 2994d8a9ffd38fe3e650cc1ed007edbda9ab51c7 Mon Sep 17 00:00:00 2001 From: Geoff Levand Date: Wed, 2 Oct 2013 20:49:46 +0000 Subject: purgatory: Fix out-of-source build error The source file config.h is a generated file, so its preprocessor include path must be relative to the build directory. Add that path to the purgatory CPPFLAGS. Fixes build errors like these: purgatory/arch/ppc/misc.S: fatal error: config.h: No such file or directory Signed-off-by: Geoff Levand for Huawei, Linaro Signed-off-by: Simon Horman --- purgatory/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'purgatory') diff --git a/purgatory/Makefile b/purgatory/Makefile index e39adec..1945702 100644 --- a/purgatory/Makefile +++ b/purgatory/Makefile @@ -54,6 +54,7 @@ $(PURGATORY): CPPFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS) \ -I$(srcdir)/purgatory/arch/$(ARCH)/include \ -I$(srcdir)/util_lib/include \ -I$(srcdir)/include \ + -Iinclude \ -I$(shell $(CC) -print-file-name=include) $(PURGATORY): LDFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS)\ -Wl,--no-undefined -nostartfiles -nostdlib \ -- cgit