summaryrefslogtreecommitdiff
path: root/arch/powerpc/boot
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2023-02-12 22:11:56 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2023-02-12 22:11:56 +1100
commitfc8a898cfdbb0e63cfde547715c2031de22e7893 (patch)
treee1eaae008d673bb68cdc003d72eadc4ba5535a18 /arch/powerpc/boot
parent544f823ec7a34332550f22735959d3e1ffcf4684 (diff)
parent2ea31e2e62bbc4d11c411eeb36f1b02841dbcab1 (diff)
Merge branch 'fixes' into next
Merge our fixes branch to bring in some changes that conflict with upcoming next content.
Diffstat (limited to 'arch/powerpc/boot')
-rwxr-xr-xarch/powerpc/boot/wrapper4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper
index af04cea82b94..352d7de24018 100755
--- a/arch/powerpc/boot/wrapper
+++ b/arch/powerpc/boot/wrapper
@@ -210,6 +210,10 @@ ld_version()
gsub(".*version ", "");
gsub("-.*", "");
split($1,a, ".");
+ if( length(a[3]) == "8" )
+ # a[3] is probably a date of format yyyymmdd used for release snapshots. We
+ # can assume it to be zero as it does not signify a new version as such.
+ a[3] = 0;
print a[1]*100000000 + a[2]*1000000 + a[3]*10000;
exit
}'