From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6806948680239677440 X-Received: by 2002:aed:3fcc:: with SMTP id w12mr2993624qth.388.1585380942867; Sat, 28 Mar 2020 00:35:42 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6214:1021:: with SMTP id k1ls3127786qvr.4.gmail; Sat, 28 Mar 2020 00:35:42 -0700 (PDT) X-Received: by 2002:ad4:4302:: with SMTP id c2mr2681296qvs.193.1585380942653; Sat, 28 Mar 2020 00:35:42 -0700 (PDT) Received: by 2002:a37:4994:0:0:0:0:0 with SMTP id w142msqka; Sat, 28 Mar 2020 00:33:48 -0700 (PDT) X-Google-Smtp-Source: APiQypLnByPsTu1IZRyfJfUxRJ8xhluOrFfdryJD9QcLtvUKnqMl0SEbauYZ2qPM2VdNs+I6nKRx X-Received: by 2002:a05:6512:443:: with SMTP id y3mr1395166lfk.166.1585380827841; Sat, 28 Mar 2020 00:33:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585380827; cv=none; d=google.com; s=arc-20160816; b=HqYmwrnHVcWK4kf6Esz+SjMKN7+QT9T0r6vB/9KodKoDVZ6TXFSVFCSqZ1qLvEk87Z A0OpNLfjzhaX8zI/ZFkOFXmA0bHupAQiyQVg/t+OAIjrxSQcaYzvzJmIWpwYVUl0Z9/P zFv4pJkj6/sPSyJqhwPlo65QzLHQMYc/LNbRrEb+ZvImfdmyjYd+aK8cMpyfx40QSODt kv5v3qNIsULqDcgAKZ8Tt7UNCsBmVF6Wi+cQHnSX0SVYwsMzVzMXEbp3jnqLR+Tzng7E vkxM5utQB76OPw9wUDYqbSRmpPV595G/6DETZX2dcxegiAbfRIYt2LEJK29CGEDBUbD8 8wpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :dkim-signature; bh=HIafKIiSAs5OrpTa8V/hEcz4Fz+BO39EidXrr64MVBY=; b=C4Nk4lHfsDCLrcPRR1AgfdOqLceUdQ/239zdaP47b0tCL13xn9TS2KGeySbeUv5FuT oDbj9TFzF6ebr3Sq4qv2n2F/kozDsKFPBTQ1c+fYpqeJyA+3wzCssZkA4+GpP5FoDStg jSOKRrwv6KeiPicFNA9S7+gNKhZzzwgoh+SPKGyhlJUmA2lmp1bjnW7sueJuyOFYqmz7 /hnTaKmLE34fxyXUxUHcYxWch2foILyFEJMkaHJItLWb60wa7e5xjvCD40TLbqwyc4xS fbXxFux6BHp+o7vZ+3LdwDL7sS9gR2pvb7vBepiHoabqSedMS+um91Ai/BRNlairEjG9 HAcg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@web.de header.s=dbaedf251592 header.b=ZBWAiGCC; spf=pass (google.com: domain of jan.kiszka@web.de designates 212.227.15.14 as permitted sender) smtp.mailfrom=jan.kiszka@web.de Return-Path: Received: from mout.web.de (mout.web.de. [212.227.15.14]) by gmr-mx.google.com with ESMTPS id p5si477679ljj.3.2020.03.28.00.33.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 28 Mar 2020 00:33:47 -0700 (PDT) Received-SPF: pass (google.com: domain of jan.kiszka@web.de designates 212.227.15.14 as permitted sender) client-ip=212.227.15.14; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@web.de header.s=dbaedf251592 header.b=ZBWAiGCC; spf=pass (google.com: domain of jan.kiszka@web.de designates 212.227.15.14 as permitted sender) smtp.mailfrom=jan.kiszka@web.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1585380826; bh=da5YZqVHS+Z7s1FG7svg5MJmIZvcFAU6xNfTZrbVtHM=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=ZBWAiGCCqDztW3LLmEqE5CY13cce48mEpfzP0fHRlhvLl15CIM6lGt8OUf0S0k808 orj7lq9k8FdViHHpg7cAhreoelFT8ptBTh3sKqmQC0WxXeb+yvq0YmtKR/hAwYYPZ/ OrPPZRdW32maOeE1kQv3vrlkXM7Kr25MQRvNKLIA= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from [192.168.1.10] ([95.157.55.156]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MAvZs-1j89pG0MFg-009vDD; Sat, 28 Mar 2020 08:33:46 +0100 Subject: Re: [PATCH 0/6] Evolve SDK to chroot-free usage To: Christopher Larson Cc: isar-users , Chao Zeng , Le Jin References: From: Jan Kiszka Message-ID: Date: Sat, 28 Mar 2020 08:33:45 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:q+CSHC/pu+mI7UDKz3tbz0SPW5MVtAynuYWRCeQzDSSVPiVxyVo hA1s/KMQ9Gk9ZuLK1TWXwSxOQsW5/jmNghtHvME1wcCIaRTfLjmSAoVzSo1BZyL0GPCZObn t8Jx6ckOn8huthJiVB4PUw0J8xmX2C0Uvrh1lV0WIqHqx+hI+APYR6h3vBjMvyQj3q4Oko+ UZZpCMfi4VpmWnzRg4dAg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:gasxh8uQMj0=:xpAYPgnzx3ykSt+WZWDdih RJmQt6nYU1i5C6Q2l2Sru945ZVxtKiqXgmcew7CnAyvKwNHdCexonLrD0388NVIjea+FfVdd2 ZocTEEqSxEuGxOY9PZQm+1ljw5+VGJYPQ48OYHVarAobrlQ2zGobrn5ONdvx3sEPBai/i4V6W y+CtdmpzeIQdJBJWpkrBeXMIHM3O1WEChd3920J5qeyyWg0U+pJsoRSwk3XIrsUPoNk/15L4R obrQcUMyvY0ivsXPSJ4WrZwl1iYXT0bCwbZXaQ+GNQjaUiRqXKJtoEL7pv9PItVswk3uyzWwj rMSu311udxM8UHCl2GWBRXFpvQfIu0We5y7j13Yy+P4JDpKinfJHZ9biiHVJOGgi3VUjjhSKC GVWB2r/iX3ZvkFEtLYTv4yuqyyQQw+es6o/SkniINtef/vs7zXOXunZetumCV3Gxz50nKAoF9 dwkkMYD0++qTexQ4j35Lm7/F7NMHZHTRyheKC0TedcKe5L44Ln+6pjY3GnQGNHifxX63FEBmP DDgdbaDQBDLgkdugCL0b1ws1gOWaza4RFO+io9eqNLtBIKnJt4MbCSzs/yvt1nRRaS6hyfgVv BWESKd7gJADV2CtFr6qRarsGMktZNTG2cmGICjKXFqV8oTdrvEDtWsZCuEY2FWgSXZr2CO1wj 2KQwlUahZusdU7ubyflAv4t5mZ5x7cl99GXrwxXB3VlCZpo1Obvf4gzssudTJlRujLbrSNqJU qJvHl2Fya7BNGvpeIMWDI3GQGV6K6+C9YxUBkGBrMcHoYDUegceSM8z8H5BihTLZinlcvogH5 nti3YGJnR8zR9+5wJ8lvDN2s1vllMm2g5M7XtBaTTkSjz2T5Pg6ckJVOjomCrvW+NvxQ8Z+GG 1qYEQt3O1WXhBHePiOnM7EZUQtoXv4NpKF0IO9V1vBhlZaS75qe+0LUJDfHNKDmewIw+yguJ4 XDchX2AjheBpKeFT3Uhp9ZYlToarkHJ6lPp+CwoTJuuhxmnILlZpY4QPAF+IgLsERVTI9TkKc bDFZj6MIbxM6bpQ4wQHWnOfEo0E7V0oMmKVJLCF1VPuSci46iXpMtXCh2hOrR7Uii+tvVnEA9 JymqlGGQ6mLJsZ8mi3gfYh767YPIsowiKhuRwI/oPuPMvSBH2ctkEnPzZV2Fc//oLcgtFo4F3 F+VkHxVit4jt2LBvgexR0SGmLUESSH3K07f7T2PUDXZ5r51ZZ0BIoChnhR+Exor+frVXEYBaI YA9cj9BQ/6Gx5Mdfu X-TUID: pM4t2b9HHUeo On 28.03.20 00:48, Christopher Larson wrote: > This series seems like a definite improvement, but I'd suggest > explicitly noting in the README that once you've run the relocate-sdk.sh > script, the second not recommended option of entering the chroot will no > longer function due to the changed interpreter paths. Correct. But we can enhance the relocation script so that it is also able to restore the chroot mode. At least as long as we support both modes, there is likely value in this. Will adjust it and the README. Thanks, Jan > > On Sun, Mar 22, 2020 at 1:37 AM Jan Kiszka > wrote: > > Currently, our SDK can primarily be used by chroot'ing into it, taki= ng > the to-be-built project with you (bind mount etc.). This was enough = for > a start but we can do better. > > This series enhance the SDK to become usage as a normal cross-toolch= ain > on your host system. For that purpose, we add a script that relocate= s > the toolchain after installation, adjust binary search paths and > sysroot. So, the only remaining difference to a yocto or buildroot > toolchain is the need to run the relocation script once after unpack= ing > the SDK. > > The series furthermore allows to customize the SDK content via the > image-generating layer. > > The series (together with all other pending patching of mine) can al= so > be found at https://github.com/siemens/isar/commits/jan/queue. > > While I already shrunk the SDK a bit by removing the now obsolete > isar-apt repo, I suspect we could further reduce the deployment size= by > dropping chroot support completely, only including the compiler and > their library dependencies. OTOH, sdk-debian-buster-arm64.tar.xz is = now > 142M here, unpacked 680M, while ARM's > gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz has > 260M packed and 1.5G(!) unpacked. So we are either not really off or= are > still missing something. > > Jan > > Jan Kiszka (6): > =C2=A0 sdk: Add support for adding self-defined sdk packages > =C2=A0 sdk: Make all links in the SDK chroot relative > =C2=A0 sdk: Add script to relocate SDK > =C2=A0 sdk: Do not ship the isar-apt repo > =C2=A0 sdk: Inject sysroot path when calling relocated toolchain > =C2=A0 sdk: Update README.sdk > > =C2=A0doc/user_manual.md=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0|=C2=A0 1 + > =C2=A0meta/classes/image-sdk-extension.bbclass=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0| 28 ++++++++- > =C2=A0meta/recipes-devtools/sdkchroot/files/README.sdk=C2=A0 =C2=A0= | 66 > ++++++++++------------ > =C2=A0.../sdkchroot/files/relocate-sdk.sh=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | 32 +++++++++++ > =C2=A0meta/recipes-devtools/sdkchroot/sdkchroot.bb > =C2=A0 =C2=A0 =C2=A0 =C2=A0| 35 ++++++------ > =C2=A05 files changed, 108 insertions(+), 54 deletions(-) > =C2=A0create mode 100755 > meta/recipes-devtools/sdkchroot/files/relocate-sdk.sh > > -- > 2.16.4 > > -- > You received this message because you are subscribed to the Google > Groups "isar-users" group. > To unsubscribe from this group and stop receiving emails from it, > send an email to isar-users+unsubscribe@googlegroups.com > . > To view this discussion on the web visit > https://groups.google.com/d/msgid/isar-users/cover.1584866240.git.ja= n.kiszka%40siemens.com. > > > > -- > Christopher Larson > kergoth at gmail dot com > Founder - BitBake, OpenEmbedded, OpenZaurus > Senior Software Engineer, Mentor Graphics