[Buildroot] [PATCH v2 0/5] Fixes/improvements in Xtensa handling

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sun Sep 25 09:09:15 UTC 2022


Hello,

This is a v2 of my patches to fix/improve xtensa handling.

The starting point is that commit
4cbf7336914f25478aea943456ba7dc3c892c21a ("arch/xtensa: custom
configuration requires an overlay") broke external Xtensa toolchain
configurations, which select a custom core. Indeed, this commit made
the assumption that it is not possible to have an empty overlay file
with a custom core, but that is not a correct assumption.

So instead, commit 1/5 in this series fixes the original issue
(autobuilders reporting problems of endianness) by making it not
possible to select "big endian" with internal toolchain when the
overlay file is empty. Indeed, with an empty overlay file, the CPU
will always be little endian.

We then revert commit 4cbf7336914f25478aea943456ba7dc3c892c21a in
PATCH 2/5, which allows two of the runtime tests to build again
properly.

In patch 3 to 5, we add explicit support for the DC233C Xtensa core.

Thomas

Thomas Petazzoni (5):
  arch/Config.in.xtensa: adjust endianness logic to avoid bogus
    configurations
  Revert "arch/xtensa: custom configuration requires an overlay"
  arch/Config.in.xtensa: use one line per case in BR2_ENDIAN definition
  arch/{Config.in,arch.mk}.xtensa: add explicit support for DC233C core
  configs/qemu_xtensa_lx60*: use new BR2_xtensa_dc233c option

 arch/Config.in.xtensa                    | 13 +++++++++++--
 arch/arch.mk.xtensa                      | 13 +++++++------
 configs/qemu_xtensa_lx60_defconfig       |  3 +--
 configs/qemu_xtensa_lx60_nommu_defconfig |  3 +--
 4 files changed, 20 insertions(+), 12 deletions(-)

-- 
2.37.3




More information about the buildroot mailing list