1ec33767ab
every system component now has its own self-contained build system, and a seed file describing the component and its build system and dependencies. a new tool, meadow, collects and uses these seed files to build the components into a full system. meadow also manages the target system root and a host prefix where toolchain tools are installed to. the build system has also been updated to use a new $ARCH-rosetta-gcc compiler, and the patches files necessary to build it have been added to toolchain/cross-compiler.
19 lines
509 B
Bash
Executable File
19 lines
509 B
Bash
Executable File
#!/bin/bash
|
|
|
|
SOURCE_ROOT="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )/../.."
|
|
|
|
if [ ! -d "$SOURCE_ROOT/build" ]; then
|
|
mkdir build
|
|
fi
|
|
|
|
if [ ! -d "$SOURCE_ROOT/build/mkbsp_venv" ]; then
|
|
echo 'Initialising mkbsp...'
|
|
python3 -m venv $SOURCE_ROOT/build/mkbsp_venv
|
|
source $SOURCE_ROOT/build/mkbsp_venv/bin/activate
|
|
pip install -r $SOURCE_ROOT/toolchain/mkbsp/requirements.txt
|
|
else
|
|
source $SOURCE_ROOT/build/mkbsp_venv/bin/activate
|
|
fi
|
|
|
|
python3 $SOURCE_ROOT/toolchain/mkbsp/main.py "$@"
|