diff options
author | Geoff Levand <geoff@infradead.org> | 2013-10-02 20:49:46 +0000 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2013-10-03 10:02:37 +0900 |
commit | 2994d8a9ffd38fe3e650cc1ed007edbda9ab51c7 (patch) | |
tree | 33108760d65c2a800e55f08b32af6799e2304cde /purgatory | |
parent | bf9d0f055c791a26b2237b5a12b48ae1b7e0d550 (diff) | |
download | kexec-tools-2994d8a9ffd38fe3e650cc1ed007edbda9ab51c7.tar.gz |
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 <geoff@infradead.org> for Huawei, Linaro
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'purgatory')
-rw-r--r-- | purgatory/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
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 \ |