[PATCH 3/6] purgatory: Fix out-of-source build error

Geoff Levand geoff at infradead.org
Thu Oct 3 16:19:20 EDT 2013


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 <geoff at infradead.org> for Huawei, Linaro
---
 purgatory/Makefile | 1 +
 1 file changed, 1 insertion(+)

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 \
-- 
1.8.1.2





More information about the kexec mailing list