Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
These are the steps to build newlib used in ESP32 ROM and ESP-IDF
git clone https://github.com/espressif/newlib-esp32.git &&
cd newlib-esp32 && \
./configure \
--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 \
--program-transform-name="s&^&xtensa-esp32-elf-&" \
--disable-option-checking \
--with-target-subdir=xtensa-esp32-elf \
--target=xtensa-esp32-elf \
--prefix=$(TARGET_DIR) \
&& CROSS_CFLAGS="-DSIGNAL_PROVIDED -DABORT_PROVIDED -DMALLOC_PROVIDED" make all install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.