From: "Q. Gylstorff" <Quirin.Gylstorff@siemens.com>
To: isar-users@googlegroups.com
Cc: Quirin Gylstorff <quirin.gylstorff@siemens.com>,
Jan Kiszka <jan.kiszka@siemens.com>
Subject: [PATCH v2] linux-custom: add path to image for arm* kernels < 4.12
Date: Tue, 14 Jan 2020 16:29:42 +0100 [thread overview]
Message-ID: <20200114152942.23823-1-Quirin.Gylstorff@siemens.com> (raw)
In-Reply-To: <61f46f4a-0100-0ae1-f855-f3fdbffaf112@siemens.com>
From: Quirin Gylstorff <quirin.gylstorff@siemens.com>
ARM/ARM64 Kernel with a version < 4.12 do not contain the path to
the kernel image in image_name. This was added with commits:
152e6744ebfc8fa6cc9fff4ba36271f5f1ba2821 for arm and
06995804b5762f016c7a80503406da853a8f3785 for arm64.
Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
---
meta/recipes-kernel/linux/files/debian/isar/install.tmpl | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
index 568fb81..ab8eb0b 100644
--- a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
+++ b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
@@ -20,6 +20,10 @@ do_install() {
. ${O}/.config
kimage="$(${MAKE} O=${O} -s --no-print-directory image_name)"
+ # ARM/ARM64 kernels < 4.12 do not include the path to the kernel
+ if [ ! -e ${O}/${kimage} ]; then
+ kimage="arch/${ARCH}/boot/${kimage}"
+ fi
krel="$(${MAKE} O=${O} -s --no-print-directory kernelrelease)"
case "${ARCH}" in
mips|powerpc) kimage_path="boot/vmlinux-${krel}" ;;
--
2.20.1
next prev parent reply other threads:[~2020-01-14 15:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-08 13:57 [PATCH] " Q. Gylstorff
2020-01-10 18:49 ` Jan Kiszka
2020-01-13 9:01 ` Gylstorff Quirin
2020-01-14 15:29 ` Q. Gylstorff [this message]
2020-02-07 16:28 ` [PATCH v2] " Baurzhan Ismagulov
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=20200114152942.23823-1-Quirin.Gylstorff@siemens.com \
--to=quirin.gylstorff@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=jan.kiszka@siemens.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