#!/usr/bin/bash set -eu # Hacked up script to produce BuildStream conversions of some Baserock systems. CONVERTER=../defs2bst/defs2bst.py YBD=../ybd/ybd.py mkdir -p elements/ mkdir -p elements/systems/ # Convert a selection of the Baserock x86_64 reference systems. systems=" systems/base-system-x86_64-generic.morph systems/build-system-x86_64.morph systems/devel-system-x86_64-generic.morph systems/minimal-system-x86_64-generic.morph gnome/systems/gnome-system-x86_64.morph genivi/systems/genivi-demo-platform-x86_64-generic.morph ivi/systems/ivi-system-x86_64.morph trove/systems/trove-system-x86_64.morph weston/systems/weston-system-x86_64-generic.morph weston/systems/weston-qt5-system-x86_64.morph unmaintained/systems/openstack-system-x86_64.morph" for baserock_system in $systems; do $CONVERTER --ybd $YBD \ --definitions ./old \ --output ./elements \ --rebase strata/build-essential.morph gnu-toolchain.bst \ $baserock_system x86_64 buildstream_system_initial=$(echo $baserock_system | sed -e 's@systems/@@' -e 's@\.morph$@-content.bst@') # Remove x86_64 from the name; BuildStream allows architecture conditionals # so we don't need to duplicate everything per platform. # Take the opportunity to remove -generic as well. buildstream_system=$(basename $buildstream_system_initial | sed -e 's@-x86_64@@' -e 's@-generic@@') # All systems go in their own subdirectory mv elements/$buildstream_system_initial elements/systems/$buildstream_system done