Build mpy-cross dependency for micropython builds

This commit is contained in:
Christopher Wilson 2019-09-17 21:39:04 -07:00
parent 6563b64d0b
commit 8bebdb7f1a

View file

@ -1008,7 +1008,9 @@ build_package_micropython() {
elif [ -z "${MAKE_OPTS+defined}" ]; then elif [ -z "${MAKE_OPTS+defined}" ]; then
MAKE_OPTS="-j $(num_cpu_cores)" MAKE_OPTS="-j $(num_cpu_cores)"
fi fi
{ cd ports/unix { cd mpy-cross
"$MAKE" $MAKE_OPTS
cd ports/unix
"$MAKE" $MAKE_OPTS axtls "$MAKE" $MAKE_OPTS axtls
"$MAKE" $MAKE_OPTS CFLAGS_EXTRA="-DMICROPY_PY_SYS_PATH_DEFAULT='\"${PREFIX_PATH}/lib/micropython\"'" "$MAKE" $MAKE_OPTS CFLAGS_EXTRA="-DMICROPY_PY_SYS_PATH_DEFAULT='\"${PREFIX_PATH}/lib/micropython\"'"
"$MAKE" install $MAKE_INSTALL_OPTS PREFIX="${PREFIX_PATH}" "$MAKE" install $MAKE_INSTALL_OPTS PREFIX="${PREFIX_PATH}"