From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6806948680239677440 X-Received: by 2002:a67:3355:: with SMTP id z82mr1342365vsz.76.1585352923373; Fri, 27 Mar 2020 16:48:43 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1f:9acd:: with SMTP id c196ls690161vke.6.gmail; Fri, 27 Mar 2020 16:48:42 -0700 (PDT) X-Google-Smtp-Source: APiQypIJATLSUkxS5vapIYFw3bgh7KDV3JS8yUqScHUw3D15a/wQJgsYjeHh0i5TYyYJ2heDyMpu X-Received: by 2002:a1f:ce83:: with SMTP id e125mr1099886vkg.10.1585352922877; Fri, 27 Mar 2020 16:48:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585352922; cv=none; d=google.com; s=arc-20160816; b=UO/qv/6Sb8yqvGRrFxVu0twUtr9j8HQwR6bOJs5wSLJx7e/9R2SW2qk8A0Kj7Ksx/b ogPY7V52Sr1wCBCYu6m84N82jOUgA/x/JWAirTuLUY3q+Y3bRVrgbQK1idUDGBhrFInj W84gfUPRr734Oc5xpKk0RC7PhHNUKrNWkMvfoU73pfIHgd6hAWzKWZgq1TiiKNLw/mKZ cJOz+owpnwK9JQM26pHMFYvC89OCT1nxg+Dk9QwWKJghOQnYoi+VFRZ9N2cqSLHFhEE1 EexShZbWY0PFa6OdkSzdk1hAb9UrI+Y8tX4QuZZPb3wZ9Efxw8tMFOCx1FXqoDXMquJt vE3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=MQuSAr0XgT2DBw18ixpeeFiUX+bxNDJpzUE9GQ1sQNw=; b=CX2zoH2Emv8iNcbS2yRXFF07neCH84si9abuk+szJR+6/++ay7mMbs6SE5aBgEXc57 1Cx+6d4fOv9b5DbetRYgbJ+ibg49YqBz0K5I7vl9syQUNxFwK7iBMXFY8QiGrl2es+6w X7YUq6oTY7YDwTSE1U4xzz0N90AMI5azbx8vL7ZeR/tCdqqfNaM9hUTDzFTk7SnVFvzK C8zxJp23aI1snYoNMiOKcJfUBLLlc+nSIccHtB2rnnigt30pC8Z1VqSWHa92XwGf1Aue 4MacC7MSZjRNw8k5Z+RHywPBLR6T0dciBcZhqZeiOl6k3InHzhHZPJn5/vDg17iPCZJU aAbg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Q74RAHhX; spf=pass (google.com: domain of kergoth@gmail.com designates 2607:f8b0:4864:20::32f as permitted sender) smtp.mailfrom=kergoth@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com. [2607:f8b0:4864:20::32f]) by gmr-mx.google.com with ESMTPS id d20si547663vsf.2.2020.03.27.16.48.42 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 Mar 2020 16:48:42 -0700 (PDT) Received-SPF: pass (google.com: domain of kergoth@gmail.com designates 2607:f8b0:4864:20::32f as permitted sender) client-ip=2607:f8b0:4864:20::32f; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Q74RAHhX; spf=pass (google.com: domain of kergoth@gmail.com designates 2607:f8b0:4864:20::32f as permitted sender) smtp.mailfrom=kergoth@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: by mail-ot1-x32f.google.com with SMTP id f52so11640029otf.8 for ; Fri, 27 Mar 2020 16:48:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MQuSAr0XgT2DBw18ixpeeFiUX+bxNDJpzUE9GQ1sQNw=; b=Q74RAHhXEes6eyylfR5xTsz6hMYxs0UOKM4vluv73DdHB6RxBi9wJMG2zHsIkb69/6 ChA/BaTPTQaasm2rfowbbaYdeTUOiOYLKaL4bpI2UOaryHQC0GVunJN45QW21Q9DxI1+ TY28fyYoT5n+AZnvr7jQOyoslzrDiKLzkUpyIlPhhBgb55sB51+oSeiJbuHh3pzjwT0B 3k4GrSCgQ+xGtaTNvJ4ov5rUc2BR5s6JChoU5wI2RsLU3R24YhSbehUyLAqxPhZ++F/z gDjswT+coFQDCknjFdbP0ZoWlKAJ7YvYAqhSUn+T0PXmxapGGUZdrw6O0M2sZGIuZoXv Rdxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MQuSAr0XgT2DBw18ixpeeFiUX+bxNDJpzUE9GQ1sQNw=; b=IphpQHoht4vlf0GOq1H7ti7qrL12nl0LD469mmjfXsdejsrXVeZmqspFAv56JOmmyr oAT5P0i2Fp+jXDyo0pgsYCZPT72ABHstP+u9KmBKiJM7M1skU+5pQ8pULOtkG4F3bSiy LbSPVrmk4hS3xU2K90maSPfEKfunrefYJ273M5xIwCtQxpztCHN+8KkCw5FBMcTZZ9AY r580wnOESgn2JpxUBWEPiNOL2HDsrbECXeDlYd42HJpWyLSyFwmm+84aEOX+t4Xm/LUx MLUeowoCZOU6N2uFxRryUQTs1LtFb0HIjLCmt29thfwD1oZ6ugFBmv/ArVkAZaHNM0dt QghA== X-Gm-Message-State: ANhLgQ0aK3qWITyTzE3vIAvxV5VeI5taF2Sz4IX87xUpr3/jlw9+iI33 Ub/yGRv0KwaW0TByFrzbGzWW1SgqYaLq2/tRNhuzXdvk X-Received: by 2002:a9d:1b6d:: with SMTP id l100mr896766otl.70.1585352922255; Fri, 27 Mar 2020 16:48:42 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Christopher Larson Date: Fri, 27 Mar 2020 16:48:30 -0700 Message-ID: Subject: Re: [PATCH 0/6] Evolve SDK to chroot-free usage To: Jan Kiszka Cc: isar-users , Chao Zeng , Le Jin Content-Type: multipart/alternative; boundary="000000000000c6576605a1debdf6" X-TUID: uATxGW+hgOLh --000000000000c6576605a1debdf6 Content-Type: text/plain; charset="UTF-8" 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. On Sun, Mar 22, 2020 at 1:37 AM Jan Kiszka wrote: > Currently, our SDK can primarily be used by chroot'ing into it, taking > 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-toolchain > on your host system. For that purpose, we add a script that relocates > 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 unpacking > 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 also > 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): > sdk: Add support for adding self-defined sdk packages > sdk: Make all links in the SDK chroot relative > sdk: Add script to relocate SDK > sdk: Do not ship the isar-apt repo > sdk: Inject sysroot path when calling relocated toolchain > sdk: Update README.sdk > > doc/user_manual.md | 1 + > meta/classes/image-sdk-extension.bbclass | 28 ++++++++- > meta/recipes-devtools/sdkchroot/files/README.sdk | 66 > ++++++++++------------ > .../sdkchroot/files/relocate-sdk.sh | 32 +++++++++++ > meta/recipes-devtools/sdkchroot/sdkchroot.bb | 35 ++++++------ > 5 files changed, 108 insertions(+), 54 deletions(-) > create 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.jan.kiszka%40siemens.com > . > -- Christopher Larson kergoth at gmail dot com Founder - BitBake, OpenEmbedded, OpenZaurus Senior Software Engineer, Mentor Graphics --000000000000c6576605a1debdf6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This series seems like a definite improvement, but I'd= suggest explicitly noting in the README that once you've run the reloc= ate-sdk.sh script, the second not recommended option of entering the chroot= will no longer function due to the changed interpreter paths.

On Sun, Mar 2= 2, 2020 at 1:37 AM Jan Kiszka <jan.kiszka@siemens.com> wrote:
Currently, our SDK can primarily be used by chroot&#= 39;ing into it, taking
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-toolchain
on your host system. For that purpose, we add a script that relocates
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 unpacking
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 also
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 &= quot;isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail 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.jan.kiszka%40siemens.com.


--
Christoph= er Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, O= penZaurus
Senior Software Engineer, Mentor Graphics
--000000000000c6576605a1debdf6--