Skip to content

build updates

Nicholas Piggin linux-kbuild linuxppc-dev 1 version Applied

Status from this message: Applied to powerpc next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 14 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7powerpc: use the new post-link pass to check relocationsarch/powerpc/Makefile arch/powerpc/Makefile.postlink+34 -110 replies
2/7powerpc: add arch/powerpc/tools directoryarch/powerpc/Makefile arch/powerpc/Makefile.postlink arch/powerpc/tools/gcc-check-mprofile-kernel.sh +1 more+2 -20 replies
3/7powerpc/64s: tool to flag direct branches from unrelocated interrupt vectorsarch/powerpc/Makefile.postlink arch/powerpc/tools/unrel_branch_check.sh+64 -13 replies
4/7powerpc/64: tool to check head sections location sanityarch/powerpc/Makefile.postlink arch/powerpc/include/asm/head-64.h arch/powerpc/kernel/vmlinux.lds.S +1 more+80 -263 replies
5/7powerpc/64: handle linker stubs in low .text codearch/powerpc/include/asm/head-64.h arch/powerpc/kernel/vmlinux.lds.S arch/powerpc/tools/head_check.sh+20 -30 replies
6/7powerpc: switch to using thin archives if COMPILE_TEST is setarch/powerpc/Kconfig arch/powerpc/Makefile+3 -25 replies
7/7powerpc/64: allow CONFIG_RELOCATABLE if COMPILE_TESTarch/powerpc/Kconfig+2 -21 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] build updates

Hi,

I was hoping to get these posted earlier, but they had a dependency on the kbuild tree which took a while to merge. Hopefully we can get at least the first 4 patches in, which are just sanity checks on the final binary.

With this series applied, I'm able to build[*] and boot a 64-bit book3s allyesconfig kernel, a 200MB vmlinux (although today's tree breaks in some random driver initcall in late boot). That's largely a culmination of Stephen Rothwell's work (including the kbuild changes that were merged earlier in 4.9), I just picked up some of his patches so attributions may not be 100% reflective of reality.

[*] Building allyesconfig still requires KALLSYMS_EXTRA_PASS=1, which
I'm yet to look into.

Thanks,
Nick

Nicholas Piggin (7):
powerpc: use the new post-link pass to check relocations
powerpc: add arch/powerpc/tools directory
powerpc/64s: tool to flag direct branches from unrelocated interrupt
vectors
powerpc/64: tool to check head sections location sanity powerpc/64: handle linker stubs in low .text code
powerpc: switch to using thin archives if COMPILE_TEST is set powerpc/64: allow CONFIG_RELOCATABLE if COMPILE_TEST

 arch/powerpc/Kconfig                               |  5 +-
 arch/powerpc/Makefile                              | 17 +----
 arch/powerpc/Makefile.postlink                     | 48 ++++++++++++++
 arch/powerpc/include/asm/head-64.h                 | 20 ++++--
 arch/powerpc/kernel/vmlinux.lds.S                  | 28 ++------
 .../gcc-check-mprofile-kernel.sh                   |  0
 arch/powerpc/tools/head_check.sh                   | 74 ++++++++++++++++++++++
 arch/powerpc/{ => tools}/relocs_check.sh           |  0
 arch/powerpc/tools/unrel_branch_check.sh           | 56 ++++++++++++++++
 9 files changed, 203 insertions(+), 45 deletions(-)
 create mode 100644 arch/powerpc/Makefile.postlink
 rename arch/powerpc/{scripts => tools}/gcc-check-mprofile-kernel.sh (100%)
 create mode 100755 arch/powerpc/tools/head_check.sh
 rename arch/powerpc/{ => tools}/relocs_check.sh (100%)
 create mode 100755 arch/powerpc/tools/unrel_branch_check.sh
Signature · 1 line
2.9.3