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 <[email protected]> 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



_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

Reply via email to