Skip to contentSkip to conversation

packagegroup-arago-toolchain-minimal-target: bare target sysroot

RFC PATCH In review Jacob Stiffler 2 participants 3 messages Feb 7, 2020

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/2 packagegroup-arago-toolchain-minimal-target: bare target sysroot

* Define a bare sysroot with only package management and the feed configuration.

---
 .../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
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-toolchain-minimal-target.bb new file +12 -0
new file mode 100644
index 0000000..c689ecd
@@ -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 \
+"
Signature · 1 line
2.7.4
#1 lore raw

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

* 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.

---
 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
meta-arago-distro/recipes-core/meta/meta-toolchain-arago-minimal.bb new file +5 -0
new file mode 100644
index 0000000..8b7e8bc
@@ -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"
Signature · 1 line
2.7.4
#2 lore raw

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

Quoted 8 lines · 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/<target_sysroot>/etc/opkg/* > ./opkg.conf
Quoted 7 lines
  $ ./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

Quoted 29 lines

* 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.

---
 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
meta-arago-distro/recipes-core/meta/meta-toolchain-arago-minimal.bb new file +5 -0
new file mode 100644
index 0000000..8b7e8bc
@@ -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"
Signature · 6 lines
2.7.4

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago