public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] u-boot-script: Account for deficit in Ubuntu's linux-base
@ 2021-08-27 11:30 Jan Kiszka
  2021-09-02 11:26 ` Henning Schild
  2021-09-13 13:08 ` Anton Mikanovich
  0 siblings, 2 replies; 5+ messages in thread
From: Jan Kiszka @ 2021-08-27 11:30 UTC (permalink / raw)
  To: isar-users

From: Jan Kiszka <jan.kiszka@siemens.com>

Account for https://bugs.launchpad.net/ubuntu/+source/linux-base/+bug/1941793
by open-coding 'linux-version list', only keeping 'linux-version sort'.
This fixes u-boot-script for arm64 on all recent Ubuntu releases. Needed
since d6954739fe43.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 meta/recipes-bsp/u-boot-script/files/update-u-boot-script | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-bsp/u-boot-script/files/update-u-boot-script b/meta/recipes-bsp/u-boot-script/files/update-u-boot-script
index 40d3108..eb2c295 100755
--- a/meta/recipes-bsp/u-boot-script/files/update-u-boot-script
+++ b/meta/recipes-bsp/u-boot-script/files/update-u-boot-script
@@ -15,7 +15,8 @@ fi
 
 BOOT_CMD=$(mktemp)
 
-KERNEL_VERSION=$(linux-version list | linux-version sort --reverse | head -1)
+KERNEL_VERSION=$(find /boot -name vmlinu[xz]-* | sed 's|/boot/vmlinu[xz]-||g' |
+		 linux-version sort --reverse | head -1)
 
 case $(uname -m) in
 	aarch64|mips|riscv64)
-- 
2.31.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-09-13 13:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-27 11:30 [PATCH] u-boot-script: Account for deficit in Ubuntu's linux-base Jan Kiszka
2021-09-02 11:26 ` Henning Schild
2021-09-02 11:36   ` Jan Kiszka
2021-09-02 14:18     ` Henning Schild
2021-09-13 13:08 ` Anton Mikanovich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox