Hi Michael,
Here are a few minor updates to the powerpc build files that make debugging
build problems a little easier. Please consider.
-Geoff
The following changes since commit 16fbf79b0f83bc752cee8589279f1ebfe57b3b6e:
Linux 5.6-rc7 (2020-03-22 18:31:56 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/geoff/ps3-linux.git for-merge-powerpc
for you to fetch changes up to e6fb89a0946dd620f1d8120578744942ca934e11:
powerpc/head_check: Avoid broken pipe (2020-03-27 09:41:41 -0700)
----------------------------------------------------------------
Geoff Levand (3):
powerpc/head_check: Automatic verbosity
powerpc/wrapper: Output linker map file
powerpc/head_check: Avoid broken pipe
arch/powerpc/boot/wrapper | 3 ++-
arch/powerpc/tools/head_check.sh | 8 +++++---
2 files changed, 7 insertions(+), 4 deletions(-)
--
2.20.1
Remove the '-m4' option to grep to allow grep to process all of nm's
output. This avoids the nm warning:
nm terminated with signal 13 [Broken pipe]
Signed-off-by: Geoff Levand <geoff@infradead.org>
---
arch/powerpc/tools/head_check.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -46,7 +46,7 @@ nm="$1"vmlinux="$2"# gcc-4.6-era toolchain make _stext an A (absolute) symbol rather than T-$nm"$vmlinux"|grep-e" [TA] _stext$"-e" t start_first_256B$"-e" a text_start$"-e" t start_text$"-m4>.tmp_symbols.txt+$nm"$vmlinux"|grep-e" [TA] _stext$"-e" t start_first_256B$"-e" a text_start$"-e" t start_text$">.tmp_symbols.txtvma=$(cat.tmp_symbols.txt|grep-e" [TA] _stext$"|cut-d' '-f1)
To aid debugging build problems turn on shell tracing for the
head_check script when the build is verbose.
Signed-off-by: Geoff Levand <geoff@infradead.org>
---
arch/powerpc/tools/head_check.sh | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
@@ -31,8 +31,10 @@# level entry code (boot, interrupt vectors, etc) until r2 is set up. This# could cause the kernel to die in early boot.-# Turn this on if you want more debug output:-# set -x+# Allow for verbose output+if["$V"="1"];then+set-x+fiif[$#-lt2];thenecho"$0 [path to nm] [path to vmlinux]"1>&2