public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Baurzhan Ismagulov <ibr@radix50.net>
To: isar-users <isar-users@googlegroups.com>
Subject: Re: [PATCH v4] Add recipe for linux kselftest
Date: Mon, 26 Apr 2021 15:40:24 +0200	[thread overview]
Message-ID: <20210426134024.GW5391@yssyq.m.ilbers.de> (raw)
In-Reply-To: <CALLGG_KNgGEWyi5hoPy-S_m9Ef85eWWJTT02hGG=qHfeen3ieA@mail.gmail.com>

Hello Vijai Kumar,

On Tue, Mar 30, 2021 at 02:41:08PM +0530, vijai kumar wrote:
> Just had a look at that series. Seems like we backport the necessary
> patches for the particular kernel version.
> This might be hard here, since the changes might me more.
> 
> The original intention to have this package as a separate recipe is to
> provide means to use the latest kernel
> kselftest testcases. Those seem to be more mature than one available
> in lower kernel versions like 4.19.
> 
> The changes might be too much to backport making the approach more complicated.
> 
> In our usecase we are using the cip kernel, and if someone feels like
> some testcases needs to be backported,
> it needs to be done in the cip-kernel project and not it ISAR. But
> there is no strong requirement from the users
> for that, they are just okay with using the version that is available
> in the latest kernel. This recipe just makes them
> achieve that.

So, this is a trade-off.

On one hand, architecturally it would make sense to bundle all binary packages
in the same source package. The advantages would be avoiding code duplication,
avoiding fetching different kernel sources in case the two are different
(better build time and space efficiency).

On the other hand, separate tool recipes allow shipping the latest tools also
for older kernels. The advantages are independent kernel and tool versions if
different ones are used, avoiding building the kernel if it isn't needed
(better build time and space efficiency).

Personally, I could live with this implementation until we have a better one.
We will play with it and let you know. That said, I still think that in
general, we should strive for "one source -- one recipe" implementation and
find a good way to refactor this one.

Supporting older kernel versions is an important feature; we should be looking
how to support newer ones without creating a mess. If necessary, maybe we could
split the include file into epoch-specific ones (linux-4.19+.inc,
linux-5.4+.inc, etc.). I don't mind if we override upstream packaging
mechanisms in part or even fully for the old versions; for the newer ones, I
agree that we should at least try submitting our changes upstream. Regarding
partial builds, maybe we could have a var choosing which components to build if
e.g. the kernel itself is not necessary.

With kind regards,
Baurzhan.

  parent reply	other threads:[~2021-04-26 13:40 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-02  7:25 Vijai Kumar K
2020-11-04 20:44 ` Henning Schild
2020-11-05  6:17   ` vijaikumar....@gmail.com
2020-11-06 13:38     ` Henning Schild
2020-11-26 18:38       ` vijaikumar....@gmail.com
2021-02-08 15:33         ` Anton Mikanovich
2021-02-10  6:34           ` vijaikumar....@gmail.com
2021-02-10 10:21             ` Henning Schild
2021-02-15 15:16               ` Baurzhan Ismagulov
2021-02-18  5:11                 ` vijaikumar....@gmail.com
2021-03-30  9:11                   ` vijai kumar
2021-04-22 11:49                     ` vijaikumar....@gmail.com
2021-04-26 13:40                     ` Baurzhan Ismagulov [this message]
2021-05-06 12:20 ` 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=20210426134024.GW5391@yssyq.m.ilbers.de \
    --to=ibr@radix50.net \
    --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