From: Denys Dmytriyenko <denys@ti.com>
To: Jacob Stiffler <j-stiffler@ti.com>
Cc: meta-arago@arago-project.org
Subject: Re: [RFC][PATCH 2/2] meta-toolchain-arago-minimal: define minimal devkit/sdk
Date: Fri, 7 Feb 2020 14:26:38 -0500 [thread overview]
Message-ID: <20200207192638.GD25484@beryl> (raw)
In-Reply-To: <1581101188-9014-2-git-send-email-j-stiffler@ti.com>
On Fri, Feb 07, 2020 at 01:46:28PM -0500, Jacob Stiffler wrote:
> * This minimal sdk can use package management to obtain needed dev
> packages.
> * Resulting shar image is ~45 MB
> * Usage could be a little more elgant, but if feeds are available,
> the following can be done to install any package availble on a feed:
>
> $ cat ./sysroots/<target_sysroot>/etc/opkg/* > ./opkg.conf
>
> $ ./sysroots/<host_sysroot>/usr/bin/opkg --volatile-cache -f ./opkg.conf \
> -t $(mktemp -d) -o ./sysroot/<target_sysroot> update
>
> $ # To restore current tisdk sysroot (plus unuseable binaries)
> $ ./sysroots/<host_sysroot>/usr/bin/opkg --volatile-cache -f ./opkg.conf \
> -t $(mktemp -d) -o ./sysroot/<target_sysroot> install \
> packagegroup-arago-toolchain-tisdk-target
meta-toolchain-arago already handles all the above, including feeds and
package-management. It may not be very minimal, sure, but at least it contains
the minimal toolchain to be useful. I'd rather look into shrinking existing
meta-toolchain-arago, especially since there's a larger version called
meta-toolchain-arago-tisdk...
Denys
> * This also has the potential to create new rootfs from feeds. Initial
> testing showed problems with setting ownership of files to root. The
> host sysroot does provide pseudo, so it seems possible without using
> root on the host.
>
> Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
> ---
> meta-arago-distro/recipes-core/meta/meta-toolchain-arago-minimal.bb | 5 +++++
> 1 file changed, 5 insertions(+)
> create mode 100644 meta-arago-distro/recipes-core/meta/meta-toolchain-arago-minimal.bb
>
> diff --git a/meta-arago-distro/recipes-core/meta/meta-toolchain-arago-minimal.bb b/meta-arago-distro/recipes-core/meta/meta-toolchain-arago-minimal.bb
> new file mode 100644
> index 0000000..8b7e8bc
> --- /dev/null
> +++ b/meta-arago-distro/recipes-core/meta/meta-toolchain-arago-minimal.bb
> @@ -0,0 +1,5 @@
> +require recipes-core/meta/meta-toolchain-arago-tisdk.bb
> +
> +TOOLCHAIN_SUFFIX = "-minimal"
> +TOOLCHAIN_TARGET_TASK = "packagegroup-arago-toolchain-minimal-target"
> +TOOLCHAIN_HOST_TASK = "nativesdk-packagegroup-arago-sdk-host nativesdk-buildtools-perl-dummy"
> --
> 2.7.4
>
> _______________________________________________
> meta-arago mailing list
> meta-arago@arago-project.org
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
prev parent reply other threads:[~2020-02-07 19:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-07 18:46 [RFC][PATCH 1/2] packagegroup-arago-toolchain-minimal-target: bare target sysroot Jacob Stiffler
2020-02-07 18:46 ` [RFC][PATCH 2/2] meta-toolchain-arago-minimal: define minimal devkit/sdk Jacob Stiffler
2020-02-07 19:26 ` Denys Dmytriyenko [this message]
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=20200207192638.GD25484@beryl \
--to=denys@ti.com \
--cc=j-stiffler@ti.com \
--cc=meta-arago@arago-project.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.