public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: "Moessbauer, Felix" <felix.moessbauer@siemens.com>
To: "jan.kiszka@siemens.com" <jan.kiszka@siemens.com>,
	"Schild, Henning" <henning.schild@siemens.com>
Cc: "isar-users@googlegroups.com" <isar-users@googlegroups.com>
Subject: RE: [PATCH 1/2] linux-module: create S if not existing
Date: Fri, 8 Jul 2022 14:31:27 +0000	[thread overview]
Message-ID: <AM9PR10MB48691878A96C7DABE2C2438789829@AM9PR10MB4869.EURPRD10.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <2f9332c2-ac3b-719c-e92f-466992e03d36@siemens.com>

> -----Original Message-----
> From: Kiszka, Jan (T CED) <jan.kiszka@siemens.com>
> Sent: Thursday, July 7, 2022 6:54 PM
> To: Schild, Henning (T CED SES-DE) <henning.schild@siemens.com>;
> Moessbauer, Felix (T CED SES-DE) <felix.moessbauer@siemens.com>
> Cc: isar-users@googlegroups.com
> Subject: Re: [PATCH 1/2] linux-module: create S if not existing
> 
> On 07.07.22 18:00, Henning Schild wrote:
> > Am Thu,  7 Jul 2022 17:46:33 +0200
> > schrieb Felix Moessbauer <felix.moessbauer@siemens.com>:
> >
> >> We copy the debian folder into S, but at do_prepare_build time S
> >> might not have been created yet.
> >> This patch makes sure that the directory is created if it does not
> >> exist.
> >>
> >> Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
> >> ---
> >>  meta/recipes-kernel/linux-module/module.inc | 1 +
> >>  1 file changed, 1 insertion(+)
> >>
> >> diff --git a/meta/recipes-kernel/linux-module/module.inc
> >> b/meta/recipes-kernel/linux-module/module.inc index
> >> 50acfe14..97eff294 100644 ---
> >> a/meta/recipes-kernel/linux-module/module.inc +++
> >> b/meta/recipes-kernel/linux-module/module.inc @@ -28,6 +28,7 @@
> >> TEMPLATE_FILES = "debian/control.tmpl \ debian/rules.tmpl"
> >>  TEMPLATE_VARS += "KERNEL_NAME KERNEL_TYPE KERNEL_IMAGE_PKG
> >> KERNEL_HEADERS_PKG PN"
> >> +do_prepare_build[dirs] += "${S}"
> >>  do_prepare_build() {
> >>      cp -r ${WORKDIR}/debian ${S}/
> >
> > A little weird but i know the module you write that for is weird on
> > its own ... nvidia. But what we do here is put packaging metadata into
> > the code, which should be there after unpack ... everything else is "weird"
> > ... no code no packaging needed.
> >
> > But hey it does not hurt.
> 
> It is definitely weird and will lead to new error patterns when folks specify a
> wrong S value - did you check that?

Well, not really.
The module.inc already copies the Debian folder to S, so at worst in S will only be the Debian folder.
Prior to this patch, this lead to an error message that the Debian folder could not be copied.

> 
> If a broken S will not silently generate a nop-recipe now, we can take this, but I
> would like to see more reasoning of the case where S is filled with code AFTER
> do_prepare_build.

Yes, it might lead to a nop recipe, but we need a way to manually extract and move-around the artifacts that are downloaded to WORKDIR.
Prior to this patch S has only been created by the do_unpack task when unpacking things into S.

Having non-filled S is not so uncommon.
Esp. in case the sources are provided by a Debian-binary package like "nvidia-kernel-source" which is added as a build dependency.

Felix

> 
> Jan
> 
> --
> Siemens AG, Technology
> Competence Center Embedded Linux

  reply	other threads:[~2022-07-08 14:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-07 15:46 Felix Moessbauer
2022-07-07 15:46 ` [PATCH 2/2] Add support for build dependencies in linux-module Felix Moessbauer
2022-07-07 15:57   ` Henning Schild
2022-07-07 16:00     ` Moessbauer, Felix
2022-07-14  9:17   ` Anton Mikanovich
2022-07-07 16:00 ` [PATCH 1/2] linux-module: create S if not existing Henning Schild
2022-07-07 16:54   ` Jan Kiszka
2022-07-08 14:31     ` Moessbauer, Felix [this message]
2022-07-14  8:22       ` Anton Mikanovich
2022-07-14  9:05         ` Moessbauer, Felix

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=AM9PR10MB48691878A96C7DABE2C2438789829@AM9PR10MB4869.EURPRD10.PROD.OUTLOOK.COM \
    --to=felix.moessbauer@siemens.com \
    --cc=henning.schild@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