Skip to contentSkip to conversation

powerpc: Fix build dependencies for epapr.c which needs libfdt.h

PATCH In review Matthew McClintock 3 participants 3 messages Jul 19, 2011 – Sep 13, 2011 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: Fix build dependencies for epapr.c which needs libfdt.h

Currently, the build can (very rarely) fail to build because libfdt.h has not been created or is in the process of being copied.

---
I think this fixes this build error. Please comment as it's really hard to reproduce this build error. I've seen this happen a few times now on our automated build server.

 BOOTCC  arch/powerpc/boot/ep8248e.o
 BOOTCC  arch/powerpc/boot/cuboot-warp.o
 BOOTCC  arch/powerpc/boot/cuboot-85xx-cpm2.o

In file included from arch/powerpc/boot/epapr.c:20:0:
arch/powerpc/boot/libfdt.h:382:1: error: unterminated comment arch/powerpc/boot/libfdt.h:1:0: error: unterminated #ifndef
BOOTCC arch/powerpc/boot/cuboot-yosemite.o
make[1]: *** [arch/powerpc/boot/epapr.o] Error 1 make[1]: *** Waiting for unfinished jobs....
BOOTCC arch/powerpc/boot/simpleboot.o
make: *** [uImage] Error 2
Build step 'Execute shell' marked build as failure

 arch/powerpc/boot/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/powerpc/boot/Makefile +1 -1
index c26200b..ac6705e 100644
@@ -58,7 +58,7 @@ $(addprefix $(obj)/,$(zlib) cuboot-c2k.o gunzip_util.o main.o prpmc2800.o): \
 libfdt       := fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c
 libfdtheader := fdt.h libfdt.h libfdt_internal.h
 
-$(addprefix $(obj)/,$(libfdt) libfdt-wrapper.o simpleboot.o): \
+$(addprefix $(obj)/,$(libfdt) libfdt-wrapper.o simpleboot.o epapr.o): \
 	$(addprefix $(obj)/,$(libfdtheader))
 
 src-wlib := string.S crt0.S crtsavres.S stdio.c main.c \
Signature · 1 line
1.7.5
#1 lore raw
Quoted 4 lines · Matthew McClintock

Currently, the build can (very rarely) fail to build because libfdt.h has not been created or is in the process of being copied.

Looks sane to me.

Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson
#2 lore raw
Quoted 2 lines · David Gibson
Quoted 1 line · Matthew McClintock

Currently, the build can (very rarely) fail to build because libfdt.h ha=

s

Quoted 5 lines
Quoted 3 lines

not been created or is in the process of being copied.

Looks sane to me.

ping? I'm still seeing this issue.

-M=