zephyrproject-rtos / meta-zephyr-sdk

Zephyr SDK (obsolete)
MIT License
44 stars 29 forks source link

Xtensa cross compilers should also support little-endian targets #73

Closed zephyrbot closed 7 years ago

zephyrbot commented 7 years ago

Reported by Leandro Pereira:

The Xtensa cross-compilers shipped with SDK 0.9 are for big-endian targets only. We need to also support little-endian targets (i.e. enable -mlittle-endian/-EL) so ESP32 is also supported.

(Imported from Jira SDK-55)

zephyrbot commented 7 years ago

by Leandro Pereira:

The SDK 0.9 release notes specifies that the compiler has been patched to support little-endian, but -mlittle-endian is not supported, and that doesn't seem to be the default either. Linking with libhal.a, which is a binary-only static library provided by Espressif and found in their FreeRTOS port, fails with the following error (repeating for every object file in the library archive):

libhal.a(cache.o): compiled for a little endian system and target is big endian
zephyrbot commented 7 years ago

by Juro Bystricky:

There is going to be a new version of the Xtensa toolchain in SDK 0.9.1 which should resolve the issue.

zephyrbot commented 7 years ago

Blocks GH-58