public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: isar-users <isar-users@googlegroups.com>
Subject: [PATCH] u-boot-script: Account for deficit in Ubuntu's linux-base
Date: Fri, 27 Aug 2021 13:30:47 +0200	[thread overview]
Message-ID: <5fb6e1a4-5cd5-89bc-5cc5-0164eeecdb9f@siemens.com> (raw)

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

             reply	other threads:[~2021-08-27 11:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-27 11:30 Jan Kiszka [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5fb6e1a4-5cd5-89bc-5cc5-0164eeecdb9f@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox