public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: "Koch, Stefan (DI PA DCP R&D 3)" <stefan-koch@siemens.com>,
	"isar-users@googlegroups.com" <isar-users@googlegroups.com>
Cc: "Sudler, Simon (DI PA DCP TI)" <simon.sudler@siemens.com>,
	"Storm, Christian (T CED SES-DE)" <christian.storm@siemens.com>,
	"Schmidt, Adriaan (T CED SES-DE)" <adriaan.schmidt@siemens.com>,
	"Hombourger,
	Cedric (DI SW CAS ES LI)" <cedric.hombourger@siemens.com>,
	"Adler, Michael (T CED SES-DE)" <michael.adler@siemens.com>,
	"MOESSBAUER, Felix (T CED INW-CN)" <felix.moessbauer@siemens.com>,
	"ubely@ilbers.de" <ubely@ilbers.de>
Subject: Re: [PATCH v3 3/5] dpkg: Allow overriding build and host parameters for sbuild and schroot
Date: Wed, 16 Aug 2023 16:32:48 +0200	[thread overview]
Message-ID: <b7d86653-e86c-4ed0-a3af-e4cecb2ea40f@siemens.com> (raw)
In-Reply-To: <c7c90f1bc09314ac6eb2f25ddb10222c4badcc95.camel@siemens.com>

On 16.08.23 16:27, Koch, Stefan (DI PA DCP R&D 3) wrote:
> On Wed, 2023-08-16 at 15:55 +0200, Jan Kiszka wrote:
>> On 16.08.23 14:14, Koch, Stefan (DI PA DCP R&D 3) wrote:
>>> This functionality is initially used for custom linux builds using
>>> the
>>> "-compat" and "-native" multiarch bitbake targets to run additional
>>> target or host specific builds for kbuild scripts and tools.
>>
>> But why does the kernel need these extra params? Why wouldn't it be
>> enough to add arch-specific profile settings for that package so that
>> linux-headers-mykernel-native will compile the kernel only for the
>> native headers and tools?
>>
> 
> Given a image for a arm64 target cross-built on a amd64 host:
> 
> 
> 
> - "bitbake linux" generates with the kbuild-patches:
> linux-headers_arm64.deb
> linux-image_arm64.deb
> linux-kbuild-cross_arm64.deb e. g. containing scripts/fixdep as amd64
> 
> => move to -cross to indicate ARCH mismatch
> 
> *Without* the kbuild-patches there are only 
> linux-headers_arm64.deb e. g. containing scripts/fixdep as amd64 (!!)
> linux-image_arm64.deb
> 
> => *Existing* limitation that ARCH does not match
> 
> 
> 
> - "bitbake linux-kbuild-compat" generates (forcing non-cross QEMU
> build):
> linux-kbuild_arm64.deb e. g. containing scripts/fixdep as arm64
> 
> => scripts utilities can *not* compiled in a cross way
> => this enforces the SBUILD_DIR override to force non-cross QEMU
> 
> Maybe, unsetting ISAR_CROSS_COMPILE for the -compat target makes the
> SBUILD_DIR override needless. It has to be ensured, that no cross-
> compile is used.
> 
> What do you think?
> 
> 
> 
> - "bitbake linux-native" generates:
> linux-kbuild_amd64.deb e. g. containing scripts/fixdep as amd64
> 
> => Optional, only for completeness to have a package matching the
> correct ARCH
> 

I still need to fully wrap around this, but I'm wondering if we are here
really addressing an issue of the sbuild machinery in Isar or rather an
issue of the kernel build recipe that should better be resolved there.

Maybe you can demonstrate the issue also with a simpler package than the
kernel?

Jan

-- 
Siemens AG, Technology
Linux Expert Center


  reply	other threads:[~2023-08-16 14:33 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-16 12:14 [PATCH v3 0/5] linux-custom: Split up binaries from kernel headers to kbuild packages Koch, Stefan
2023-08-16 12:14 ` [PATCH v3 1/5] linux-custom: Split up binaries from kernel headers to kbuild package Koch, Stefan
2023-08-16 12:14 ` [PATCH v3 2/5] sbuild: Support overriding configured schroot dir Koch, Stefan
2023-08-16 12:14 ` [PATCH v3 3/5] dpkg: Allow overriding build and host parameters for sbuild and schroot Koch, Stefan
2023-08-16 13:55   ` Jan Kiszka
2023-08-16 14:27     ` Koch, Stefan
2023-08-16 14:32       ` Jan Kiszka [this message]
2023-08-17 12:25         ` Koch, Stefan
2023-08-16 12:14 ` [PATCH v3 4/5] linux-custom: Provide host and target specific kernel kbuild packages Koch, Stefan
2023-08-16 12:14 ` [PATCH v3 5/5] docs: Update custom_kernel docs for split up of kernel scripts and tools Koch, Stefan
2023-08-16 13:46   ` Jan Kiszka
2023-08-16 14:25     ` Koch, Stefan
2023-08-16 14:27       ` Jan Kiszka
2023-08-18 11:03         ` Koch, Stefan

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=b7d86653-e86c-4ed0-a3af-e4cecb2ea40f@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=adriaan.schmidt@siemens.com \
    --cc=cedric.hombourger@siemens.com \
    --cc=christian.storm@siemens.com \
    --cc=felix.moessbauer@siemens.com \
    --cc=isar-users@googlegroups.com \
    --cc=michael.adler@siemens.com \
    --cc=simon.sudler@siemens.com \
    --cc=stefan-koch@siemens.com \
    --cc=ubely@ilbers.de \
    /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