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 <[email protected]> > --- > 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 > [email protected] > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago _______________________________________________ meta-arago mailing list [email protected] http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
