mirror of
https://git.yoctoproject.org/meta-zephyr
synced 2026-09-12 09:49:32 +02:00
meta-zephyr: add support for cortexm3 toolchain
Cortex-M3 is not supported natively by oe-embedded, so we need to
do it here. With these changes it should be possible to run:
To build all Zephyr tests:
$ MACHINE=qemuarm bitbake zephyr-kernel-test-all
$ MACHINE=qemuarm bitbake zephyr-kernel-test-all -ctestimage
To build "philosophers" sample:
$ MACHINE=qemuarm bitbake zephyr-philosophers
Once built, you can run the created "philosophers" image in qemu
(at this point the various paths have to be entered manually):
$ ./tmp/sysroots/x86_64-linux/usr/bin/qemu-system-arm \
-kernel ./tmp/deploy/images/qemuarm/philosophers.elf \
-cpu cortex-m3 -machine lm3s6965evb -nographic -vga none
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
This commit is contained in:
1
recipes-devtools/gcc/gcc-cross_6.%.bbappend
Normal file
1
recipes-devtools/gcc/gcc-cross_6.%.bbappend
Normal file
@@ -0,0 +1 @@
|
||||
EXTRA_OECONF_append_armv7m = " --with-arch=armv7-m --with-mode=thumb "
|
||||
Reference in New Issue
Block a user