Bug 10659

Summary: Support for ARC baremetal toolchain for Zephyr images
Product: [Build System, Metadata & Runtime] Other YP Layers Reporter: Juro Bystricky <juro.bystricky>
Component: meta-zephyrAssignee: Juro Bystricky <juro.bystricky>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Medium+    
Version: 2.3   
Target Milestone: 2.3 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)
Bug Depends on: 10655    
Bug Blocks:    

Description Juro Bystricky 2016-11-14 23:25:22 UTC
Zephyr images can run on various hardware platforms. Some of these do not have native yocto/oe-core support. In order to support platforms with ARC CPUs (for example Arduino 101), we need the corresponding toolchain.
Comment 1 Juro Bystricky 2016-11-22 23:08:03 UTC
There is support for ARC toolchain in Zephyr SDK, so it should be straightforward to re-use the recipes.
Comment 2 Juro Bystricky 2016-11-22 23:23:20 UTC
The Zephyr SDK toolchain for ARC contains several variants of libgcc (multilib).
The library that is actually used (being linked in) is selected via gcc command line arguments. The BSP for ARC contains only trivial tunes. We may have to implement all available tunes for ARC in order to be able  to reproduce the Zephyr binaries.
Comment 3 Juro Bystricky 2017-01-10 22:48:29 UTC
I did manage to cross-compile a zephyr image for ARC CPU, in particular the sample "philosophers" for Arduino 101 board. Other ARC board will be eventually supported as well (EM Starter Kit).