Commit Graph

90 Commits

Author SHA1 Message Date
Jon Mason
0f75e5e827 zephyr.bbclass: Add ability to set board
Currently, there is no ability to set the board used by Zephyr.  This
limits the ability to set the board to something other than the machine
name.  By setting up an intermediate variable, ZEPHYR_BOARD, this can be
set by those that know better (with the default to use the machine name
as before).

Signed-off-by: Jon Mason <jon.mason@arm.com>
2020-09-29 15:46:42 +08:00
Naveen Saini
887da6a9f0 acrn.conf: set tune corei7-64
Added CONFIG_X86_64 since ACRN hypervisor supports x86_64 capable
platforms only.

Ref:
d0126a037d

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2020-09-28 09:55:25 +08:00
Mah, Yock Gen
6bfb2769b4 zephyr-kernel: add Zephyr RTOS version 2.3.0 support
Signed-off-by: Mah, Yock Gen <yock.gen.mah@intel.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2020-09-23 09:03:21 +08:00
Naveen Saini
4dd1f5b782 README.txt: update doc
Add python dependencies.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2020-09-22 09:17:19 +08:00
Jon Mason
cb293402bf zephyr-kernel: Add python dependencies
Zephyr refuses to compile due to missing python dependencies.

Signed-off-by: Jon Mason <jon.mason@arm.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
2020-09-22 09:17:07 +08:00
Naveen Saini
bc2b0968bf newlib: instead of carry locally use from oe-core
Drop local newlib recipe and use it from oe-core

TODO: enable arc support
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2020-04-02 08:16:40 +08:00
Naveen Saini
a0155c573e zephyr-kernel-test.inc: remove 'boot_page_table' kernel test
'boot_page_table' moved from kernel tests.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2020-04-02 08:16:40 +08:00
Naveen Saini
5d3bbae52d zephyr-kernel: add Zephyr RTOS version 2.2.0 support
Release notes:
https://github.com/zephyrproject-rtos/zephyr/releases/tag/zephyr-v2.2.0

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2020-04-02 08:16:40 +08:00
Naveen Saini
a8d73dba49 qemu: update recipe version
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2020-04-02 08:16:40 +08:00
Naveen Saini
4182c9bc4a layer.conf: update LAYERSERIES_COMPAT to dunfell
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2020-04-02 08:16:40 +08:00
Naveen Saini
4766b6b17f tune-cortexm3.inc: set '-mfloat-abi=soft' floating-point ABI
Due to default -mfloat-abi=softfp facing below error log:
"Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"

Ref: https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2020-03-31 17:23:22 +08:00
Naveen Saini
f42b7073cb zephyr-getchar_git: remove sample program
This sample program does not exist anymore.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2020-03-31 17:23:14 +08:00
Naveen Saini
6ce72628e4 zephy-kernel-test: update the testcase list for x86
Updated the test recipes to build against Zephyr v2.0
Code clean up

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2019-12-17 15:25:24 +08:00
Naveen Saini
e1c1e883da zephyr.conf: Enable uninative
Use uninative by default to allow to build multiple distro
and re-use sstate cache

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2019-12-17 15:24:52 +08:00
Naveen Saini
fca20d945d zephyr-philosophers: update recipe to build against v2.0
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2019-12-09 13:08:38 +08:00
Naveen Saini
c9feff3799 zephyr-helloworld: code clean up
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2019-12-09 13:08:38 +08:00
Naveen Saini
4d518195da zephyr-kernel: drop obsolete v1.6
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2019-12-09 13:08:38 +08:00
Naveen Saini
3fc929d555 acrn.conf: add new machine
Add new acrn machine, which actually is $BOARD

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2019-12-09 13:08:38 +08:00
Naveen Saini
0fb7ad1dae zephyr-helloworld: update recipe to build against zephyr v2.0
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2019-12-09 13:08:38 +08:00
Naveen Saini
cdb64bf3cf qemu-x86.conf: drop deprecated qemu flags
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2019-12-09 13:08:38 +08:00
Naveen Saini
b5d4f0fb63 zephyr-kernel: add Zephyr RTOS version 2.0.0 support
Release notes:
https://github.com/zephyrproject-rtos/zephyr/releases/tag/zephyr-v2.0.0

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2019-12-09 13:08:38 +08:00
Naveen Saini
7eb056d1ee zephyr-kernel: drop v1.7
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2019-12-09 13:08:38 +08:00
Naveen Saini
37d6c949d4 qemu-x86.conf: remove invalid options
Throw below error:

runqemu - ERROR - Failed to run qemu: qemu-system-i386: -clock: invalid option

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2019-12-09 13:08:38 +08:00
Naveen Saini
396aafbd99 zephyr-helloworld: add
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2019-12-09 13:08:38 +08:00
Naveen Saini
6d426f08d5 zephyr-kernel-src: updated SRC_URI to point to github
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2019-12-09 13:08:38 +08:00
Naveen Saini
e2cb3f84b1 qemu: updated version to bbappend latest bb
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2019-12-09 13:08:38 +08:00
Naveen Saini
7b6e87ddac layer.conf: add LAYERSERIES_COMPAT to warrior & zeus
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2019-12-09 13:08:38 +08:00
Juro Bystricky
ec70aa457d README.txt: updated
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-04-10 15:25:13 -07:00
Juro Bystricky
bd4e0ee3e6 siteinfo-zephyr.bbclass: refactor siteinfo
Move all SITEINFO_EXTRA_DATAFUNCS and PACKAGEQA_EXTRA_MACHDEFFUNCS
from various tune files (tune-arc.inc, tune-iamcu.inc, tune-nios2.inc)
into a a new siteinfo-zephyr.bbclass file. Although the original code did
not result in any obvious errors, in fact it did cause some multiconfig
problems.

[YOCTO#11166]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-04-10 15:11:05 -07:00
Juro Bystricky
d861fa09fd binutils (ARC): remove unneeded patch
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-04-03 08:59:14 -07:00
Juro Bystricky
58f40114cc zephyr-flash-dfu.bbclass: modified PATH handling
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-04-03 08:57:44 -07:00
Juro Bystricky
4f2f6233a8 zephyr-kernel-common.inc: modify ZEPHYR_MAKE_ARGS
Pass ARCH as well. Remove V=1, if needed can be added in
a specific recipe.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-03-17 09:35:40 -07:00
Juro Bystricky
a3331c52ff MACHINE*: specify ARCH for each MACHINE
Some Makefiles may need to have ARCH set.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-03-17 09:35:22 -07:00
Juro Bystricky
eace735c7f gcc (ARC): upgrade to 6.3.0
Upgrade needed to avoid some compiler bugs with -Os.
https://jira.zephyrproject.org/browse/ZEP-1882

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-03-17 09:34:47 -07:00
Juro Bystricky
5031445cfc zephyr-kernel-test.inc: remove some tests
Removed tests not present in Zephyr 1.7.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-03-17 09:34:22 -07:00
Juro Bystricky
4280a8d4e3 zephyr-peripheral-esp.bb: GATT/ESP BLE sample code
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-03-17 09:33:56 -07:00
Juro Bystricky
5dff4e936e zephyr-kernel-ser_1.7.bb: pack Zephyr 1.7 sources
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-03-17 09:33:11 -07:00
Juro Bystricky
38238f8ea7 zephyr-kernel.inc: also support Zephyr 1.7.0
Build kernel tests suite and kernel samples based on
PREFERRED_VERSION_zephyr-kernel

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-03-17 09:30:25 -07:00
Juro Bystricky
6fb096ca45 zephyr-qemuboot.bbclass: no rootfs
Explicitly state we don't have rootfs, otherwise default
rootfs QEMU settings may be forced by runqemu.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-03-08 10:11:25 -08:00
Juro Bystricky
2d028986e7 zephyr-hci-uart.bb: Zephyr BLE stack
Builds an image for Arduino 101 board needed to be flashed for its
nRF51 Bluetooth LE controller.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-03-06 14:20:44 -08:00
Juro Bystricky
99fdd89220 zephyr-ipm.bb: Zephyr sample for IPM
The recipe to build IPM sample demonstrating messaging between
ARC core and IAMCU core on Arduino 101.
The recipe can build two different images, based on BOARD.
Useful to demonstrate multiconfig.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-03-06 14:16:32 -08:00
Juro Bystricky
b0a4c54057 arduino-101-ble: new MACHINE
Support for Arduino BLE ARM core.
The core is based on Cortex-M0, so a corresponding tune/toolchain
is required as well.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-03-06 14:14:36 -08:00
Juro Bystricky
6637130c74 zephyrtargetcontrol: new argument
An additional argument "target_modules_path" is needed in order
to work with the current master. The whole external controller code
handling will be changed in the near future, so this is most likely
only a temporary fix.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-03-06 09:49:30 -08:00
Juro Bystricky
1a611eda3a arduino-101: Support for flashing via USB
Implement a class allowing flashing Arduino-101 using dfu-util.
User needs to have dfu-utils installed on the host machine.
All three cores supported (x86, ARM, ARC).

Sample usage:
    $ MACHINE=arduino-101 bitbake xxx
    $ MACHINE=arduino-101 bitbake xxx -c flash_usb

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-03-06 09:47:09 -08:00
Juro Bystricky
59e602693e binutils (ARC): fix build
Fix the error:
ERROR: binutils-cross-arc-2.26+gitarc-r0 do_fetch:
Fetcher failure: Unable to find file file://no-tooldirpaths.patch anywhere

This is a consequence of including recipes-devtools/binutils/binutils-cross.inc
which uses the patch in SRC_URI. (This patch was not used previously).

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-02-06 07:12:20 -08:00
Juro Bystricky
441877bb11 qemu_2.8: disable Nios2 for now
Disable build of QEMU for Nios2 as the patch
for QEMU 2.7 does not apply cleanly for QEMU 2.8.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-02-05 20:54:14 -08:00
Juro Bystricky
32e3cf773e testimage: performance improvements
Refactored processing of QEMU logs.
The original code read QEMU logs every 30 seconds, which
resulted in each test taking at least 30 seconds to finish.
In reality, most tests take only a few seconds.
Although the tests run in parallel, on systems with only a few
CPUs this can make a very noticable difference.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-02-05 20:54:03 -08:00
Juro Bystricky
c42423e291 zephyr-qemuboot.bbclass: disable QEMU network
Setting QB_NET = "none" bypasses network configuration in runqemu.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-02-05 20:19:02 -08:00
Juro Bystricky
59c5fb9c27 zephyrtest.bbclass: refactor
Only keep code/variables related to individual test/package names.
Moved ZEPHYR_TEST_SRCDIR into zephyr-kernel.inc as it is
zephyr kernel version specific.
Moved ZEPHYR_MAKE_OUTPUT into zephyr-kernel-common.inc as it is
as it is not zephyr test specific but applicable to all
zephyr images.
Generate additional files expected by testimage.bbclass:
testdata.json and a dummy  manifest file

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-02-05 20:01:38 -08:00
Juro Bystricky
3ef84e9439 zephyr-qemuboot.bbclass
A bbclass used to generate qemuboot.conf and various symbolic
links needed to properly run "runqemu".

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-30 17:03:00 -08:00