From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7235862407233404928 Date: Wed, 24 May 2023 21:53:50 -0700 (PDT) From: Srinuvasan Arjunan To: isar-users Message-Id: <86f59c50-3cd4-4465-b04c-db7c0aa0cee9n@googlegroups.com> In-Reply-To: <46a03938-0343-4221-a57c-efba80b27c83@siemens.com> References: <20230522044117.1698718-1-srinuvasan_a@mentor.com> <46a03938-0343-4221-a57c-efba80b27c83@siemens.com> Subject: Re: [PATCH] crossvars.bbclass: use d.appendVar instead of d.setVar for SDK_TOOLCHAIN variable MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3838_831127421.1684990430142" X-TUID: YxY7xW0NxNSe ------=_Part_3838_831127421.1684990430142 Content-Type: multipart/alternative; boundary="----=_Part_3839_1470121237.1684990430142" ------=_Part_3839_1470121237.1684990430142 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Monday, May 22, 2023 at 11:24:53=E2=80=AFAM UTC+5:30 Jan Kiszka wrote: On 22.05.23 07:16, 'Jan Kiszka' via isar-users wrote:=20 > On 22.05.23 06:41, Srinuvasan Arjunan wrote:=20 >> From: Srinuvasan A =20 >>=20 >> In downstream layer we may override the sdk_toolchain, but this not=20 works as=20 >> expected in latest ISAR, the reason behind this as they moved toolchain= =20 >> selection into python Anonymous function.=20 >=20 > Dod you want to append or do you want to replac SDK_TOOLCHAIN in=20 > downstream? In the latter case, we likely rather want to make our=20 > assignment in isar weak, no?=20 >=20 > if not d.getVar('SDK_TOOLCHAIN'):=20 > ...=20 >=20 Also to answer: Why is SDK_PREINSTALL insufficient for your customization?= =20 Jan=20 --=20 Siemens AG, Technology=20 Competence Center Embedded Linux =20 yes we can append our toolchain via SDK_PREINSTALL, but i need to=20 replace with the "crossbuild-essential-${COMPAT_DISTRO_ARCH}" , this one=20 comes via SDK_TOOLCHAIN variable, if i append " gcc-multilib g++-multilib"= =20 without removing the crossbuild-essential am facing broken package problem. Logs: Broken gcc-multilib:amd64 Conflicts on gcc-10-i686-linux-gnu:amd64 < none= =20 -> 10.2.1-6cross1 @un puN Ib > | Considering gcc-10-i686-linux-gnu:amd64 1 as a solution to=20 gcc-multilib:amd64 10001 | Investigating (0) gcc-10-i686-linux-gnu:amd64 < none -> 10.2.1-6cross1= =20 @un puN Ib > Eventually I need to remove crossbuild-essential, but this one will do via= =20 SDK_TOOLCHAIN remove override , but this does not work in the downstream=20 layer, because always ISAR's python anonymous function wins and set its=20 value. Thanks, Srinu=20 ------=_Part_3839_1470121237.1684990430142 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

On Monday, May 22, 2023 at 11:24:53=E2= =80=AFAM 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 t= his not works as
>> expected in latest ISAR, the reason behind this as they move= d toolchain
>> selection into python Anonymous function.
>=20
> 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 ou= r
> assignment in isar weak, no?
>=20
> if not d.getVar('SDK_TOOLCHAIN'):
> ...
>=20

Also to answer: Why is SDK_PREINSTALL insufficient for your customiza= tion?

Jan

--=20
Siemens AG, Technology
Competence Center Embedded Linux
=C2=A0
=C2=A0 =C2=A0=C2=A0yes 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, i= f i append " gcc-multilib g++-multilib" without removing the crossbuild-ess= ential am facing broken package problem.
Logs:

=C2=A0Broken gcc-multilib:amd64 Conflicts on gcc-10-i686-linux-gnu:amd64 &= lt; none -> 10.2.1-6cross1 @un puN Ib >
=C2=A0| =C2=A0 Consideri= ng gcc-10-i686-linux-gnu:amd64 1 as a solution to gcc-multilib:amd64 10001<= br />=C2=A0| Investigating (0) gcc-10-i686-linux-gnu:amd64 < none -> = 10.2.1-6cross1 @un puN Ib >

Eventually I need to remove crossbuild-e= ssential, but this one will do via SDK_TOOLCHAIN remove override , but this= does not work in the downstream layer, because always ISAR's python anonym= ous function wins and set its value.

Than= ks,
Srinu=C2=A0
------=_Part_3839_1470121237.1684990430142-- ------=_Part_3838_831127421.1684990430142--