From: Richard Weinberger <richard@nod.at>
To: Jan Kiszka <jan.kiszka@siemens.com>
Cc: xenomai <xenomai@lists.linux.dev>, upstream+xenomai@sigma-star.at
Subject: Re: [PATCH 04/16] prepare-kernel.sh: Improve kernel tree check
Date: Mon, 27 May 2024 17:42:18 +0200 (CEST) [thread overview]
Message-ID: <591173911.154468.1716824538053.JavaMail.zimbra@nod.at> (raw)
In-Reply-To: <25810d15-a929-496f-b3c1-6ca60caf0242@siemens.com>
----- Ursprüngliche Mail -----
>> diff --git a/scripts/prepare-kernel.sh b/scripts/prepare-kernel.sh
>> index 534531e2b..800528058 100755
>> --- a/scripts/prepare-kernel.sh
>> +++ b/scripts/prepare-kernel.sh
>> @@ -237,7 +237,7 @@ done
>>
>> linux_tree=`cd $linux_tree && pwd`
>>
>> -if test \! -r $linux_tree/Makefile; then
>> +if test \! -r $linux_tree/kernel/kallsyms.c; then
>
> Fine with checking for a real kernel, but this here is not my favorite
> method. How about
>
> test "$(head -1 README)" = "Linux kernel"
>
> instead?
My idea was that kernel/kallsyms.c is an old file which is unlikely to
get renamed soon.
It came via:
commit e42f617ecdfc68e68b0108cd337d30224b541352
Author: Ingo Molnar <mingo@elte.hu>
Date: Thu Sep 26 03:31:07 2002 -0700
[PATCH] kksymoops-2.5.38-C9
Make the kernel print out symbolic bactraces if symbol table information
is available (CONFIG_KALLSYMS)
and was never renamed since.
README, one other hand, saw more changes.
In it's current form it looks more stable, though.
So, I don't have a strong opinion on this.
Thanks,
//richard
next prev parent reply other threads:[~2024-05-27 15:42 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-25 11:57 [PATCH 00/16] Assorted Cleanups For prepare-kernel.sh Richard Weinberger
2024-05-25 11:57 ` [PATCH 01/16] prepare-kernel.sh: Add reverse mode Richard Weinberger
2024-05-25 11:57 ` [PATCH 02/16] prepare-kernel.sh: Emit architecture agnostic changes Richard Weinberger
2024-05-25 11:57 ` [PATCH 03/16] prepare-kernel.sh: Convert to tabs Richard Weinberger
2024-05-27 7:19 ` Florian Bezdeka
2024-05-27 7:27 ` Jan Kiszka
2024-05-27 8:14 ` Richard Weinberger
2024-05-25 11:57 ` [PATCH 04/16] prepare-kernel.sh: Improve kernel tree check Richard Weinberger
2024-05-27 10:51 ` Jan Kiszka
2024-05-27 15:42 ` Richard Weinberger [this message]
2024-05-25 11:57 ` [PATCH 05/16] prepare-kernel.sh: Fix shellcheck SC2046 warnings wrt. check_filter Richard Weinberger
2024-05-27 10:52 ` Jan Kiszka
2024-05-25 11:57 ` [PATCH 06/16] prepare-kernel.sh: Disable SC2115 warning around $linux_tree Richard Weinberger
2024-05-25 11:57 ` [PATCH 07/16] prepare-kernel.sh: Don't use eval Richard Weinberger
2024-05-25 11:57 ` [PATCH 08/16] prepare-kernel.sh: Don't depend on bash Richard Weinberger
2024-05-27 10:56 ` Jan Kiszka
2024-05-27 16:00 ` Richard Weinberger
2024-05-27 16:02 ` Jan Kiszka
2024-05-25 11:57 ` [PATCH 09/16] prepare-kernel.sh: Remove --filterkvers= and --filterarch= Richard Weinberger
2024-05-25 11:58 ` [PATCH 10/16] prepare-kernel.sh: Remove interactivity Richard Weinberger
2024-05-25 11:58 ` [PATCH 11/16] prepare-kernel.sh: Remove --forcelink Richard Weinberger
2024-05-25 11:58 ` [PATCH 12/16] prepare-kernel.sh: Fix dovetail check Richard Weinberger
2024-05-25 11:58 ` [PATCH 13/16] prepare-kernel.sh: Define command line variables Richard Weinberger
2024-05-25 11:58 ` [PATCH 14/16] prepare-kernel.sh: Remove dead code Richard Weinberger
2024-05-25 11:58 ` [PATCH 15/16] prepare-kernel.sh: Don't allow uninitialized variables Richard Weinberger
2024-05-25 11:58 ` [PATCH 16/16] prepare-kernel.sh: Remove kernel version check Richard Weinberger
2024-05-27 11:06 ` Jan Kiszka
2024-06-21 14:42 ` [PATCH 00/16] Assorted Cleanups For prepare-kernel.sh Jan Kiszka
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=591173911.154468.1716824538053.JavaMail.zimbra@nod.at \
--to=richard@nod.at \
--cc=jan.kiszka@siemens.com \
--cc=upstream+xenomai@sigma-star.at \
--cc=xenomai@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.