#!/usr/bin/bash # CLEARPILOT: build preflight — create directories and fix state that # git cannot track but the build requires. Called by build_only.sh and # launch_chffrplus.sh before scons runs. BASEDIR="${BASEDIR:-/data/openpilot}" # SConscript files write generated headers into obj/ directories at # parse time — these must exist before scons starts. mkdir -p "$BASEDIR/body/board/obj" mkdir -p "$BASEDIR/panda/board/obj"