900-bootwrapper-parallel-make-fix.patch 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. From: Jo-Philipp Wich <jo@mein.io>
  2. Date: Wed, 4 Jan 2017 10:35:00 +0100
  3. Subject: [PATCH] powerpc: boot: fix build with parallel make
  4. The powerpc boot wrapper Makefile is not parallel build safe, causing fixdep
  5. to fail reading dependency files of the addnote, hack-coff and mktree
  6. utilities when concurrently building different image targets.
  7. A typical failure looks like:
  8. Building modules, stage 2.
  9. HOSTCC arch/powerpc/boot/addnote
  10. HOSTCC arch/powerpc/boot/hack-coff
  11. DTC arch/powerpc/boot/taishan.dtb
  12. HOSTCC arch/powerpc/boot/addnote
  13. HOSTCC arch/powerpc/boot/hack-coff
  14. MODPOST 800 modules
  15. fixdep: error opening depfile: arch/powerpc/boot/.hack-coff.d: No such file or directory
  16. scripts/Makefile.host:91: recipe for target 'arch/powerpc/boot/hack-coff' failed
  17. make[5]: *** [arch/powerpc/boot/hack-coff] Error 2
  18. make[5]: *** Waiting for unfinished jobs....
  19. fixdep: error opening depfile: arch/powerpc/boot/.addnote.d: No such file or directory
  20. scripts/Makefile.host:91: recipe for target 'arch/powerpc/boot/addnote' failed
  21. make[5]: *** [arch/powerpc/boot/addnote] Error 2
  22. rm arch/powerpc/boot/taishan.dtb
  23. arch/powerpc/Makefile:263: recipe for target 'cuImage.taishan' failed
  24. make[4]: *** [cuImage.taishan] Error 2
  25. make[4]: *** Waiting for unfinished jobs....
  26. Add a GNU make specific .NOTPARALLEL pseudo rule to enforce sequential building
  27. of the addnote, hack-coff and mktree executables.
  28. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
  29. --- a/arch/powerpc/boot/Makefile
  30. +++ b/arch/powerpc/boot/Makefile
  31. @@ -194,6 +194,8 @@ wrapper :=$(srctree)/$(src)/wrapper
  32. wrapperbits := $(extra-y) $(addprefix $(obj)/,addnote hack-coff mktree) \
  33. $(wrapper) FORCE
  34. +.NOTPARALLEL: $(addprefix $(obj)/,addnote hack-coff mktree) $(wrapper)
  35. +
  36. #############
  37. # Bits for building various flavours of zImage