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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux