Re: [meta-arago] [RFC][PATCH 2/2] meta-toolchain-arago-minimal: define minimal devkit/sdk

2020-02-07 Thread Denys Dmytriyenko
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//etc/opkg/* > ./opkg.conf
> 
>   $ ./sysroots//usr/bin/opkg --volatile-cache -f ./opkg.conf \
> -t $(mktemp -d) -o ./sysroot/ update
> 
>   $ # To restore current tisdk sysroot (plus unuseable binaries)
>   $ ./sysroots//usr/bin/opkg --volatile-cache -f ./opkg.conf \
> -t $(mktemp -d) -o ./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 
> ---
>  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 000..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
___
meta-arago mailing list
meta-arago@arago-project.org
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago


[meta-arago] [RFC][PATCH 2/2] meta-toolchain-arago-minimal: define minimal devkit/sdk

2020-02-07 Thread Jacob Stiffler
* 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//etc/opkg/* > ./opkg.conf

  $ ./sysroots//usr/bin/opkg --volatile-cache -f ./opkg.conf \
-t $(mktemp -d) -o ./sysroot/ update

  $ # To restore current tisdk sysroot (plus unuseable binaries)
  $ ./sysroots//usr/bin/opkg --volatile-cache -f ./opkg.conf \
-t $(mktemp -d) -o ./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 
---
 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 000..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