Browse Source

samples/xtensa: Add configs for ESP32, ESP32-S2, ESP32-S3

esp-1.24.x
Anton Maklakov 5 years ago
parent
commit
fd22b859cb
  1. 80
      samples/xtensa-esp32-elf/crosstool.config
  2. 3
      samples/xtensa-esp32-elf/reported.by
  3. 80
      samples/xtensa-esp32s2-elf/crosstool.config
  4. 3
      samples/xtensa-esp32s2-elf/reported.by
  5. 80
      samples/xtensa-esp32s3-elf/crosstool.config
  6. 3
      samples/xtensa-esp32s3-elf/reported.by

80
samples/xtensa-esp32-elf/crosstool.config

@ -0,0 +1,80 @@
CT_CONFIG_VERSION="3"
CT_EXPERIMENTAL=y
CT_PREFIX_DIR="${CT_TOP_DIR}/builds/${CT_TARGET}"
CT_TARGET_CFLAGS="-mlongcalls"
CT_ARCH_XTENSA=y
CT_XTENSA_CUSTOM=y
CT_TARGET_VENDOR="esp32"
CT_CC_LANG_CXX=y
CT_CC_GCC_ENABLE_CXX_FLAGS="-ffunction-sections"
CT_CC_GCC_CORE_EXTRA_CONFIG_ARRAY="--enable-threads=posix"
CT_CC_GCC_EXTRA_CONFIG_ARRAY="--disable-libstdcxx-verbose --enable-threads=posix --enable-gcov-custom-rtio --enable-libstdcxx-time=yes"
# CT_CC_CXA_ATEXIT is not set
# CT_CC_GCC_STATIC_LIBSTDCXX is not set
# CT_CC_GCC_LDBL_128 is not set
CT_DEBUG_GDB=y
CT_MULTILIB=y
CT_OVERLAY_NAME="esp32"
CT_OVERLAY_LOCATION="${CT_TOP_DIR}/overlays"
# NOTE: crosstool-ng doesn't apply bundled patches in the case of using git repo
CT_NEWLIB_V_3_0_0=y
CT_NEWLIB_VERSION="3.0.0"
CT_NEWLIB_SRC_DEVEL=y
CT_NEWLIB_DEVEL_VCS_git=y
CT_NEWLIB_DEVEL_VCS="git"
CT_NEWLIB_DEVEL_URL="https://github.com/espressif/newlib-esp32.git"
CT_NEWLIB_DEVEL_BRANCH="esp_based_on_3_0_0"
CT_NEWLIB_DEVEL_REVISION=""
CT_NEWLIB_DEVEL_SUBDIR=""
CT_NEWLIB_DEVEL_BOOTSTRAP=""
CT_LIBC_NEWLIB_TARGET_CFLAGS=""
CT_LIBC_NEWLIB_EXTRA_CONFIG_ARRAY="--enable-newlib-long-time_t --enable-newlib-nano-malloc"
CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y
CT_LIBC_NEWLIB_REENT_SMALL=y
CT_LIBC_NEWLIB_IO_C99FMT=y
CT_LIBC_NEWLIB_IO_LL=y
CT_LIBC_NEWLIB_IO_FLOAT=y
CT_LIBC_NEWLIB_IO_POS_ARGS=y
CT_LIBC_NEWLIB_AUX_BUILD=y
CT_LIBC_NEWLIB_AUX_BUILD_NAME="nano"
CT_LIBC_NEWLIB_AUX_BUILD_EXTRA_CONFIG_ARRAY="--with-newlib --enable-multilib --disable-newlib-io-c99-formats --disable-newlib-supplied-syscalls --enable-newlib-nano-formatted-io --enable-newlib-reent-small --enable-target-optspace --enable-newlib-long-time_t --enable-newlib-nano-malloc"
CT_LIBC_NEWLIB_AUX_BUILD_TARGET_CFLAGS=""
# For compatibility with GCC 8, change it when update
CT_ISL_V_0_19=y
CT_GCC_V_8_4_0=y
CT_GCC_VERSION="8.4.0"
CT_GCC_SRC_DEVEL=y
CT_GCC_DEVEL_VCS_git=y
CT_GCC_DEVEL_VCS="git"
CT_GCC_DEVEL_URL="https://github.com/espressif/gcc.git"
CT_GCC_DEVEL_BRANCH="esp_based_on_8_4_0"
CT_GCC_DEVEL_REVISION=""
CT_GCC_DEVEL_SUBDIR=""
CT_GCC_DEVEL_BOOTSTRAP=""
CT_BINUTILS_V_2_31=y
CT_BINUTILS_VERSION="2.31.1"
CT_BINUTILS_SRC_DEVEL=y
CT_BINUTILS_DEVEL_VCS_git=y
CT_BINUTILS_DEVEL_VCS="git"
CT_BINUTILS_DEVEL_URL="https://github.com/espressif/binutils-gdb.git"
CT_BINUTILS_DEVEL_BRANCH="esp_based_on_binutils-2_31"
CT_BINUTILS_DEVEL_REVISION=""
CT_BINUTILS_DEVEL_SUBDIR=""
CT_BINUTILS_DEVEL_BOOTSTRAP=""
CT_GDB_V_8_1=y
CT_GDB_VERSION="8.1"
CT_GDB_SRC_DEVEL=y
CT_GDB_DEVEL_VCS_git=y
CT_GDB_DEVEL_VCS="git"
CT_GDB_DEVEL_URL="https://github.com/espressif/binutils-gdb.git"
CT_GDB_DEVEL_BRANCH="esp_based_on_gdb-8_1"
CT_GDB_DEVEL_REVISION=""
CT_GDB_DEVEL_SUBDIR=""
CT_GDB_DEVEL_BOOTSTRAP=""
CT_GDB_CROSS_PYTHON_BINARY="python2"

3
samples/xtensa-esp32-elf/reported.by

@ -0,0 +1,3 @@
reporter_name="Ivan Grokhotkov <ivan@espressif.com>"
reporter_url="https://github.com/espressif/crosstool-NG"
reporter_comment="Initially based on xtensa-esp108-elf sample reported by Max Filippov <jcmvbkbc@gmail.com>"

80
samples/xtensa-esp32s2-elf/crosstool.config

@ -0,0 +1,80 @@
CT_CONFIG_VERSION="3"
CT_EXPERIMENTAL=y
CT_PREFIX_DIR="${CT_TOP_DIR}/builds/${CT_TARGET}"
CT_TARGET_CFLAGS="-mlongcalls"
CT_ARCH_XTENSA=y
CT_XTENSA_CUSTOM=y
CT_TARGET_VENDOR="esp32s2"
CT_CC_LANG_CXX=y
CT_CC_GCC_ENABLE_CXX_FLAGS="-ffunction-sections"
CT_CC_GCC_CORE_EXTRA_CONFIG_ARRAY="--enable-threads=posix"
CT_CC_GCC_EXTRA_CONFIG_ARRAY="--disable-libstdcxx-verbose --enable-threads=posix --enable-gcov-custom-rtio --enable-libstdcxx-time=yes"
# CT_CC_CXA_ATEXIT is not set
# CT_CC_GCC_STATIC_LIBSTDCXX is not set
# CT_CC_GCC_LDBL_128 is not set
CT_DEBUG_GDB=y
CT_MULTILIB=y
CT_OVERLAY_NAME="esp32s2"
CT_OVERLAY_LOCATION="${CT_TOP_DIR}/overlays"
# NOTE: crosstool-ng doesn't apply bundled patches in the case of using git repo
CT_NEWLIB_V_3_0_0=y
CT_NEWLIB_VERSION="3.0.0"
CT_NEWLIB_SRC_DEVEL=y
CT_NEWLIB_DEVEL_VCS_git=y
CT_NEWLIB_DEVEL_VCS="git"
CT_NEWLIB_DEVEL_URL="https://github.com/espressif/newlib-esp32.git"
CT_NEWLIB_DEVEL_BRANCH="esp_based_on_3_0_0"
CT_NEWLIB_DEVEL_REVISION=""
CT_NEWLIB_DEVEL_SUBDIR=""
CT_NEWLIB_DEVEL_BOOTSTRAP=""
CT_LIBC_NEWLIB_TARGET_CFLAGS=""
CT_LIBC_NEWLIB_EXTRA_CONFIG_ARRAY="--enable-newlib-long-time_t --enable-newlib-nano-malloc"
CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y
CT_LIBC_NEWLIB_REENT_SMALL=y
CT_LIBC_NEWLIB_IO_C99FMT=y
CT_LIBC_NEWLIB_IO_LL=y
CT_LIBC_NEWLIB_IO_FLOAT=y
CT_LIBC_NEWLIB_IO_POS_ARGS=y
CT_LIBC_NEWLIB_AUX_BUILD=y
CT_LIBC_NEWLIB_AUX_BUILD_NAME="nano"
CT_LIBC_NEWLIB_AUX_BUILD_EXTRA_CONFIG_ARRAY="--with-newlib --enable-multilib --disable-newlib-io-c99-formats --disable-newlib-supplied-syscalls --enable-newlib-nano-formatted-io --enable-newlib-reent-small --enable-target-optspace --enable-newlib-long-time_t --enable-newlib-nano-malloc"
CT_LIBC_NEWLIB_AUX_BUILD_TARGET_CFLAGS=""
# For compatibility with GCC 8, change it when update
CT_ISL_V_0_19=y
CT_GCC_V_8_4_0=y
CT_GCC_VERSION="8.4.0"
CT_GCC_SRC_DEVEL=y
CT_GCC_DEVEL_VCS_git=y
CT_GCC_DEVEL_VCS="git"
CT_GCC_DEVEL_URL="https://github.com/espressif/gcc.git"
CT_GCC_DEVEL_BRANCH="esp_based_on_8_4_0"
CT_GCC_DEVEL_REVISION=""
CT_GCC_DEVEL_SUBDIR=""
CT_GCC_DEVEL_BOOTSTRAP=""
CT_BINUTILS_V_2_31=y
CT_BINUTILS_VERSION="2.31.1"
CT_BINUTILS_SRC_DEVEL=y
CT_BINUTILS_DEVEL_VCS_git=y
CT_BINUTILS_DEVEL_VCS="git"
CT_BINUTILS_DEVEL_URL="https://github.com/espressif/binutils-gdb.git"
CT_BINUTILS_DEVEL_BRANCH="esp_based_on_binutils-2_31"
CT_BINUTILS_DEVEL_REVISION=""
CT_BINUTILS_DEVEL_SUBDIR=""
CT_BINUTILS_DEVEL_BOOTSTRAP=""
CT_GDB_V_8_1=y
CT_GDB_VERSION="8.1"
CT_GDB_SRC_DEVEL=y
CT_GDB_DEVEL_VCS_git=y
CT_GDB_DEVEL_VCS="git"
CT_GDB_DEVEL_URL="https://github.com/espressif/binutils-gdb.git"
CT_GDB_DEVEL_BRANCH="esp_based_on_gdb-8_1"
CT_GDB_DEVEL_REVISION=""
CT_GDB_DEVEL_SUBDIR=""
CT_GDB_DEVEL_BOOTSTRAP=""
CT_GDB_CROSS_PYTHON_BINARY="python2"

3
samples/xtensa-esp32s2-elf/reported.by

@ -0,0 +1,3 @@
reporter_name="Anton Maklakov <anton@espressif.com>"
reporter_url="https://github.com/espressif/crosstool-NG"
reporter_comment=""

80
samples/xtensa-esp32s3-elf/crosstool.config

@ -0,0 +1,80 @@
CT_CONFIG_VERSION="3"
CT_EXPERIMENTAL=y
CT_PREFIX_DIR="${CT_TOP_DIR}/builds/${CT_TARGET}"
CT_TARGET_CFLAGS="-mlongcalls"
CT_ARCH_XTENSA=y
CT_XTENSA_CUSTOM=y
CT_TARGET_VENDOR="esp32s3"
CT_CC_LANG_CXX=y
CT_CC_GCC_ENABLE_CXX_FLAGS="-ffunction-sections"
CT_CC_GCC_CORE_EXTRA_CONFIG_ARRAY="--enable-threads=posix"
CT_CC_GCC_EXTRA_CONFIG_ARRAY="--disable-libstdcxx-verbose --enable-threads=posix --enable-gcov-custom-rtio --enable-libstdcxx-time=yes"
# CT_CC_CXA_ATEXIT is not set
# CT_CC_GCC_STATIC_LIBSTDCXX is not set
# CT_CC_GCC_LDBL_128 is not set
CT_DEBUG_GDB=y
CT_MULTILIB=y
CT_OVERLAY_NAME="esp32s3"
CT_OVERLAY_LOCATION="${CT_TOP_DIR}/overlays"
# NOTE: crosstool-ng doesn't apply bundled patches in the case of using git repo
CT_NEWLIB_V_3_0_0=y
CT_NEWLIB_VERSION="3.0.0"
CT_NEWLIB_SRC_DEVEL=y
CT_NEWLIB_DEVEL_VCS_git=y
CT_NEWLIB_DEVEL_VCS="git"
CT_NEWLIB_DEVEL_URL="https://github.com/espressif/newlib-esp32.git"
CT_NEWLIB_DEVEL_BRANCH="esp_based_on_3_0_0"
CT_NEWLIB_DEVEL_REVISION=""
CT_NEWLIB_DEVEL_SUBDIR=""
CT_NEWLIB_DEVEL_BOOTSTRAP=""
CT_LIBC_NEWLIB_TARGET_CFLAGS=""
CT_LIBC_NEWLIB_EXTRA_CONFIG_ARRAY="--enable-newlib-long-time_t --enable-newlib-nano-malloc"
CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y
CT_LIBC_NEWLIB_REENT_SMALL=y
CT_LIBC_NEWLIB_IO_C99FMT=y
CT_LIBC_NEWLIB_IO_LL=y
CT_LIBC_NEWLIB_IO_FLOAT=y
CT_LIBC_NEWLIB_IO_POS_ARGS=y
CT_LIBC_NEWLIB_AUX_BUILD=y
CT_LIBC_NEWLIB_AUX_BUILD_NAME="nano"
CT_LIBC_NEWLIB_AUX_BUILD_EXTRA_CONFIG_ARRAY="--with-newlib --enable-multilib --disable-newlib-io-c99-formats --disable-newlib-supplied-syscalls --enable-newlib-nano-formatted-io --enable-newlib-reent-small --enable-target-optspace --enable-newlib-long-time_t --enable-newlib-nano-malloc"
CT_LIBC_NEWLIB_AUX_BUILD_TARGET_CFLAGS=""
# For compatibility with GCC 8, change it when update
CT_ISL_V_0_19=y
CT_GCC_V_8_4_0=y
CT_GCC_VERSION="8.4.0"
CT_GCC_SRC_DEVEL=y
CT_GCC_DEVEL_VCS_git=y
CT_GCC_DEVEL_VCS="git"
CT_GCC_DEVEL_URL="https://github.com/espressif/gcc.git"
CT_GCC_DEVEL_BRANCH="esp_based_on_8_4_0"
CT_GCC_DEVEL_REVISION=""
CT_GCC_DEVEL_SUBDIR=""
CT_GCC_DEVEL_BOOTSTRAP=""
CT_BINUTILS_V_2_31=y
CT_BINUTILS_VERSION="2.31.1"
CT_BINUTILS_SRC_DEVEL=y
CT_BINUTILS_DEVEL_VCS_git=y
CT_BINUTILS_DEVEL_VCS="git"
CT_BINUTILS_DEVEL_URL="https://github.com/espressif/binutils-gdb.git"
CT_BINUTILS_DEVEL_BRANCH="esp_based_on_binutils-2_31"
CT_BINUTILS_DEVEL_REVISION=""
CT_BINUTILS_DEVEL_SUBDIR=""
CT_BINUTILS_DEVEL_BOOTSTRAP=""
CT_GDB_V_8_1=y
CT_GDB_VERSION="8.1"
CT_GDB_SRC_DEVEL=y
CT_GDB_DEVEL_VCS_git=y
CT_GDB_DEVEL_VCS="git"
CT_GDB_DEVEL_URL="https://github.com/espressif/binutils-gdb.git"
CT_GDB_DEVEL_BRANCH="esp_based_on_gdb-8_1"
CT_GDB_DEVEL_REVISION=""
CT_GDB_DEVEL_SUBDIR=""
CT_GDB_DEVEL_BOOTSTRAP=""
CT_GDB_CROSS_PYTHON_BINARY="python2"

3
samples/xtensa-esp32s3-elf/reported.by

@ -0,0 +1,3 @@
reporter_name="Jack <jack@espressif.com>"
reporter_url=""
reporter_comment="If you find any bugs, just fix it or email to me!"
Loading…
Cancel
Save