summaryrefslogtreecommitdiff
path: root/elements/bootstrap
Commit message (Collapse)AuthorAgeFilesLines
* bootstrap: Remove .la files from the stage3 sysrootSam Thursfield2017-10-301-0/+9
| | | | | | | | | This fixes cross-compilation of stage2-gcc against our stage3 base sysroot. If the `.la` files are not removed, Libtool insanity kicks in and we end up with the x86_64 version of libstdc++ included in the cross-build commandlines.
* Add 'stage2-sysroot' and 'stage3-sysroot' elementsSam Thursfield2017-10-252-0/+40
These each produce a minimal (~300MB) sysroot containing BusyBox, the GNU C/C++ toolchain, and a couple of other components necessary for bootstrapping Baserock reference systems from the ground up. Morph and YBD used tools from the host to bootstrap, which usually worked fine but was occasionally disasterous (such as when GLIBC broke ABI between releases). BuildStream is more strict and requires you to provide binaries to seed its sandbox. The stage2 sysroot can only be used to build the stage3 sysroot, as the stage2 components are configured with a non-standard /tools prefix and the stage3 build instructions have some special casing that is necessary to work with that. The stage3 sysroot can be used to build pretty much anything and is used to seed Baserock reference builds on each platform.