public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Srinuvasan Arjunan <srinuvasanasv@gmail.com>
To: isar-users <isar-users@googlegroups.com>
Subject: Re: [PATCH] crossvars.bbclass: use d.appendVar instead of d.setVar for SDK_TOOLCHAIN variable
Date: Fri, 26 May 2023 02:03:51 -0700 (PDT)	[thread overview]
Message-ID: <6563fb6e-0819-4da8-92f5-f03dd7042696n@googlegroups.com> (raw)
In-Reply-To: <c1a08d2f-fe1c-feeb-c177-15151c6baf23@siemens.com>


[-- Attachment #1.1: Type: text/plain, Size: 2913 bytes --]



On Thursday, May 25, 2023 at 3:50:49 PM UTC+5:30 Jan Kiszka wrote:

On 25.05.23 06:53, Srinuvasan Arjunan wrote: 
> 
> 
> On Monday, May 22, 2023 at 11:24:53 AM UTC+5:30 Jan Kiszka wrote: 
> 
> On 22.05.23 07:16, 'Jan Kiszka' via isar-users wrote: 
> > On 22.05.23 06:41, Srinuvasan Arjunan wrote: 
> >> From: Srinuvasan A <srinuv...@siemens.com> 
> >> 
> >> In downstream layer we may override the sdk_toolchain, but this 
> not works as 
> >> expected in latest ISAR, the reason behind this as they moved 
> toolchain 
> >> selection into python Anonymous function. 
> > 
> > Dod you want to append or do you want to replac SDK_TOOLCHAIN in 
> > downstream? In the latter case, we likely rather want to make our 
> > assignment in isar weak, no? 
> > 
> > if not d.getVar('SDK_TOOLCHAIN'): 
> > ... 
> > 
> 
> Also to answer: Why is SDK_PREINSTALL insufficient for your 
> customization? 
> 
> Jan 
> 
> -- 
> Siemens AG, Technology 
> Competence Center Embedded Linux 
> 
>   
> 
>     yes we can append our toolchain via SDK_PREINSTALL, but i need to 
> replace with the "crossbuild-essential-${COMPAT_DISTRO_ARCH}" , this one 
> comes via SDK_TOOLCHAIN variable, if i append " gcc-multilib 
> g++-multilib" without removing the crossbuild-essential am facing broken 
> package problem. 
> Logs: 
> 
>  Broken gcc-multilib:amd64 Conflicts on gcc-10-i686-linux-gnu:amd64 < 
> none -> 10.2.1-6cross1 @un puN Ib > 
>  |   Considering gcc-10-i686-linux-gnu:amd64 1 as a solution to 
> gcc-multilib:amd64 10001 
>  | Investigating (0) gcc-10-i686-linux-gnu:amd64 < none -> 
> 10.2.1-6cross1 @un puN Ib > 
> 
> Eventually I need to remove crossbuild-essential, but this one will do 
> via SDK_TOOLCHAIN remove override , but this does not work in the 
> downstream layer, because always ISAR's python anonymous function wins 
> and set its value. 

Ok, then we should actually implement a weak (?=) assignment in the 
Python block, so that you can define your own SDK_TOOLCHAIN in such 
scenarios. 

Jan 

-- 
Siemens AG, Technology 
Competence Center Embedded Linux



 we can't do soft assignment inside pyhton anonymous function, it throws 
syntax error.

Suppose if we want any parameter to override that should not be in python 
anonymous function, upstream layer should follow this one.
we could write an python anonymous function in downstream layer to set the 
proper one, but in this case no use to inherit that functionality
from upstream (duplication)
In ISAR, this commit c8371018 moves the cross selection part into one 
place, here obviously we are not overriding the chroot 
(builchroot/sbuildchroot) part,
but we may do override for toolchain selection, I hope we can pull out this 
toolchain selection from python function and keep it outside,
hence this can be override from other layer.

Thanks,
Srinu. 

[-- Attachment #1.2: Type: text/html, Size: 3853 bytes --]

  reply	other threads:[~2023-05-26  9:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-22  4:41 Srinuvasan Arjunan
2023-05-22  5:16 ` Jan Kiszka
2023-05-22  5:54   ` Jan Kiszka
2023-05-25  4:53     ` Srinuvasan Arjunan
2023-05-25 10:20       ` Jan Kiszka
2023-05-26  9:03         ` Srinuvasan Arjunan [this message]
2023-06-04  9:32     ` [PATCH] meta/classes/crossvars: move sdk toolchain selection from python block Srinuvasan Arjunan
2023-06-05  7:00       ` Jan Kiszka
2023-06-05  7:07         ` Srinuvasan Arjunan
2023-06-05  7:18           ` Jan Kiszka
2023-06-05  7:43             ` Srinuvasan Arjunan

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=6563fb6e-0819-4da8-92f5-f03dd7042696n@googlegroups.com \
    --to=srinuvasanasv@gmail.com \
    --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