* [RFC][PATCH 1/2] packagegroup-arago-toolchain-minimal-target: bare target sysroot
@ 2020-02-07 18:46 Jacob Stiffler
2020-02-07 18:46 ` [RFC][PATCH 2/2] meta-toolchain-arago-minimal: define minimal devkit/sdk Jacob Stiffler
0 siblings, 1 reply; 3+ messages in thread
From: Jacob Stiffler @ 2020-02-07 18:46 UTC (permalink / raw)
To: meta-arago
* Define a bare sysroot with only package management and the feed
configuration.
Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
---
.../packagegroup-arago-toolchain-minimal-target.bb | 12 ++++++++++++
1 file changed, 12 insertions(+)
create mode 100644 meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-toolchain-minimal-target.bb
diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-toolchain-minimal-target.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-toolchain-minimal-target.bb
new file mode 100644
index 0000000..c689ecd
--- /dev/null
+++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-toolchain-minimal-target.bb
@@ -0,0 +1,12 @@
+DESCRIPTION = "Target packages for the minimal SDK, intended to be extended with opkg"
+PR = "r0"
+LICENSE = "MIT"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+inherit packagegroup
+
+RDEPENDS_${PN} = "\
+ arago-feed-config \
+ opkg-dev \
+"
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread* [RFC][PATCH 2/2] meta-toolchain-arago-minimal: define minimal devkit/sdk
2020-02-07 18:46 [RFC][PATCH 1/2] packagegroup-arago-toolchain-minimal-target: bare target sysroot Jacob Stiffler
@ 2020-02-07 18:46 ` Jacob Stiffler
2020-02-07 19:26 ` Denys Dmytriyenko
0 siblings, 1 reply; 3+ messages in thread
From: Jacob Stiffler @ 2020-02-07 18:46 UTC (permalink / raw)
To: meta-arago
* 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
* 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
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [RFC][PATCH 2/2] meta-toolchain-arago-minimal: define minimal devkit/sdk
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
0 siblings, 0 replies; 3+ messages in thread
From: Denys Dmytriyenko @ 2020-02-07 19:26 UTC (permalink / raw)
To: Jacob Stiffler; +Cc: meta-arago
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-02-07 19:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.