]> git.ozlabs.org Git - next-scripts/commitdiff
do_build: optimise some log mangling
authorStephen Rothwell <sfr@canb.auug.org.au>
Sun, 17 Nov 2019 07:32:27 +0000 (18:32 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sun, 17 Nov 2019 07:32:27 +0000 (18:32 +1100)
do_build

index 97d8ea05a89cb0e1c258090c69bf3b877d0bc815..64876f7c8df21a83c2b4ea9c419d8e6e6aeb7233 100755 (executable)
--- a/do_build
+++ b/do_build
@@ -39,12 +39,11 @@ log_regex='/^[[:space:]]+$/d
 /^System is [[:digit:]]+ kB$/d
 /^CRC [[:xdigit:]]+$/d
 /^Kernel: arch\/x86\/boot\/bzImage is ready  \(#[[:digit:]]+\)$/d
-/^WARNING: vmlinux\.o\(\.text\+0x[[:xdigit:]]+\): Section mismatch in reference from /d
-/^WARNING: drivers\/built-in\.o\(\.text\+0x[[:xdigit:]]+\): Section mismatch in reference from /d
+s/^(WARNING: (drivers\/built-in|vmlinux)\.o\(\.(data|text)\+0x)[[:xdigit:]]+(\): Section mismatch in reference from .*)$/\1XXXX\4/
 /^Warning: Kernel ABI header at /d
 /^[[:space:]]+PERF_VERSION = /d
 s/^(Parsed description of) [[:digit:]]+ (helper function)/\1 X \2/
-s/^([[:xdigit:]]+)([[:space:]]+R_PPC64_(ADDR64|REL32)[[:space:]].*)$/XXX\2/'
+s/^[[:xdigit:]]+([[:space:]]+R_PPC64_(ADDR64|REL32)[[:space:]].*)$/XXX\1/'
 
 $cmd <<-EOF