Re: New Working GCC for ESP8266
Posted: Mon May 03, 2021 5:51 pm
eriksl wrote:Newlib needs patches for lx106. If you just select "newlib 3.0", it will abort with "no support for lx106 in newlib".
OK so next step is to mod the config and pull Espressif's version of newlib - if that works we can then diff and see what's changed, and maybe even push the changes upstream
Code: Select all
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="-fdata-sections -ffunction-sections"
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="-fdata-sections -ffunction-sections"