kind: compose

description: |
  stage2-sysroot: cross-buildable minimal shell environment + C/C++ toolchain

  This is only useful when bringing up new architectures. For more
  information see: http://wiki.baserock.org/guides/how-to-cross-bootstrap/

  To build in this environment, you will likely need to delete the symlink
  from /usr/bin to /tools/bin and replace it with a real directory, containing
  symlinks from /usr/bin/sh to /tools/bin/sh and from /usr/bin/bash to
  /tools/bin/bash. If you build GCC with the /usr/bin -> /tools/bin symlink
  still in place you will end up with a GCC that doesn't work.

depends:
- filename: gnu-toolchain/stage2.bst
  type: build

config:
  # We don't run any integration commands because we might have cross-built the
  # sysroot using `bst --target-arch=... build`. If this is the case, probably
  # none of the binaries in the artifact will be able to execute.
  integrate: false

  exclude: [ debug, doc, locale ]
