Skip to content

Instantly share code, notes, and snippets.

@masuidrive
Created April 29, 2021 15:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masuidrive/e6999c42fd2d7e211a414003521ff7dd to your computer and use it in GitHub Desktop.
Save masuidrive/e6999c42fd2d7e211a414003521ff7dd to your computer and use it in GitHub Desktop.
M1 Mac環境でAmazon FreeRTOS on ESP32のビルドを行う
#/bin/sh
# M1 Mac環境でAmazon FreeRTOS on ESP32のビルドを行う
# FreeRTOSのソースはAWSコンソールのzipから落とさないで、
# https://github.com/aws/amazon-freertos から持ってくること
# 参考:
# https://docs.aws.amazon.com/freertos/latest/userguide/getting_started_espressif.html#setup-espressif-idf42
# https://github.com/SeanMollet/esp-idf/tree/esp-2020r3-aarch64
#
# ビルドは下記のコマンドで
# idf.py -DVENDOR=espressif -DBOARD=esp32_wrover_kit -DCOMPILER=xtensa-esp32 build
export IDF_PATH=$PWD/vendors/espressif/esp-idf
( \
cd $IDF_PATH/tools && \
mv tools.json tools.json.orig && \
mv idf_tools.py idf_tools.py.orig && \
curl -L https://github.com/SeanMollet/esp-idf/raw/esp-2020r3-aarch64/tools/tools.json > tools.json && \
curl -L https://github.com/SeanMollet/esp-idf/raw/esp-2020r3-aarch64/tools/idf_tools.py > idf_tools.py && \
chmod a+x idf_tools.py && \
cd .. && \
sh ./install.sh \
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment