Skip to contentSkip to conversation

arm: Fix out of tree build error

PATCH Applied Geoff Levand 2 participants 2 messages Jun 20, 2013 – Jun 21, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: Fix out of tree build error

Prefix local include paths with $(srcdir)/.

Fixes build errors like these when building for ARM out of the source tree:

cc1: fatal error: kexec/arch/arm/crashdump-arm.h: No such file or directory

---
 kexec/arch/arm/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kexec/arch/arm/Makefile +2 -2
index 682db78..38137d7 100644
@@ -4,8 +4,8 @@
 include $(srcdir)/kexec/libfdt/Makefile.libfdt
 
 arm_FS2DT              = kexec/fs2dt.c
-arm_FS2DT_INCLUDE      = -include kexec/arch/arm/crashdump-arm.h \
-                         -include kexec/arch/arm/kexec-arm.h
+arm_FS2DT_INCLUDE      = -include $(srcdir)/kexec/arch/arm/crashdump-arm.h \
+                         -include $(srcdir)/kexec/arch/arm/kexec-arm.h
 
 arm_KEXEC_SRCS=  kexec/arch/arm/kexec-elf-rel-arm.c
 arm_KEXEC_SRCS+= kexec/arch/arm/kexec-zImage-arm.c
Signature · 9 lines
1.8.1.2




_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Applied
#1 lore raw
Quoted 7 lines · Geoff Levand

Prefix local include paths with $(srcdir)/.

Fixes build errors like these when building for ARM out of the source tree:

cc1: fatal error: kexec/arch/arm/crashdump-arm.h: No such file or directory

Thanks, applied.

Quoted 24 lines
---
 kexec/arch/arm/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kexec/arch/arm/Makefile +2 -2
index 682db78..38137d7 100644
@@ -4,8 +4,8 @@
 include $(srcdir)/kexec/libfdt/Makefile.libfdt
 
 arm_FS2DT              = kexec/fs2dt.c
-arm_FS2DT_INCLUDE      = -include kexec/arch/arm/crashdump-arm.h \
-                         -include kexec/arch/arm/kexec-arm.h
+arm_FS2DT_INCLUDE      = -include $(srcdir)/kexec/arch/arm/crashdump-arm.h \
+                         -include $(srcdir)/kexec/arch/arm/kexec-arm.h
 
 arm_KEXEC_SRCS=  kexec/arch/arm/kexec-elf-rel-arm.c
 arm_KEXEC_SRCS+= kexec/arch/arm/kexec-zImage-arm.c
Signature · 1 line
1.8.1.2

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