Merge pull request #1394 from cdwilson/fix-micropython-build

Build mpy-cross dependency for micropython builds
This commit is contained in:
Yamashita, Yuu 2019-09-18 15:06:51 +09:00 committed by GitHub
commit e29d2b666b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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}"