366 Commits

Author SHA1 Message Date
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
Juro Bystricky
d1cc929d4f 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 16:28:53 -08:00
Juro Bystricky
73e1e488ec qemu-*.conf: support for qemuboot
Add support to run qemus using runqemu.
All qemu machines will inherit the bbclass "zephyr-qemuboot",
which is responsible to set up everything that is needed
in order to use "runqemu".

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-30 16:20:37 -08:00
Juro Bystricky
052ed539d1 zephyrtest.bbclass: simplify names of test binaries
Drop the prefix "zephyr-kernel-test-".
Additional minor cleanup.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-30 16:15:58 -08:00
Juro Bystricky
3448d1ca44 zephyr-kernel-test-all: implement clean
support for:
    $ bitbake zephyr-kernel-test-all -c clean

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-30 16:12:54 -08:00
Juro Bystricky
d8bc17275d zephyr-getchar: minor cleanup
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-30 16:11:01 -08:00
Juro Bystricky
da18654229 zephyr-philosophers: use common naming conventions
Derive the name of the resulting image based on PN.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-30 16:07:59 -08:00
Juro Bystricky
d13bf35e1a zephyr-kernel-common.inc: also build qemus if needed
Also build qemus if a recipe is built for a MACHINE=qemuXXX.
Allow inheriting classes based on recipe context.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-30 15:12:13 -08:00
Juro Bystricky
f7f0536d96 README.txt: Updated for qemu-nios2
Also replaced all "qemux86" with "qemu-x86"

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-24 09:47:33 -08:00
Juro Bystricky
04f6539b7b zephyr-kernel-test.inc: exclude tests not suitable for Nios2
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-23 15:45:09 -08:00
Juro Bystricky
18d92a4e86 qemuzephyrrunner.py: support for qemu-nios2
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-23 15:45:09 -08:00
Juro Bystricky
d7dcbd54bd qemu-nios2: New MACHINE
Added support for Zephyr qemu-nios2 BOARD.
Nios2 CPU is not supported natively by upstream QEMU,
so a Nios2 specific patch needs to be applied.

[YOCTO#10660]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-23 15:43:35 -08:00
Juro Bystricky
c28b4eacf9 meta-zephyr: newlib support
This patch adds newlib libraries for cortex-m3, x86, IAMCU and ARC toolchains.

[YOCTO#10662]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-19 08:35:04 -08:00
Juro Bystricky
56fbee01e8 zephyr.bbclass: support for image configuration
New class to support commands such as:

$ MACHINE=xxx bitbake yyy -c menuconfig
$ MACHINE=xxx bitbake yyy -c devshell

Kernel options are typically configured via menuconfig.
The file "prj.conf" must be edited manually, hence the need for devshell.
Once in devshell, user can use their favorite editor to edit the file.

For proper operation, these two variables need to be set in
recipes:

ZEPHYR_SRC_DIR : path to the source, typically place with prj.conf
ZEPHYR_BASE: Zephyr kernel tree location

[YOCTO#10657]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-18 12:24:49 -08:00
Juro Bystricky
159b06b6c5 gcc (ARC): removed unneeded patches
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-18 11:06:51 -08:00
Juro Bystricky
e011e2b8b4 qemu-x86.conf: New MACHINE
MACHINE definition for Zephyr BOARD qemu_x86

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-18 11:01:39 -08:00
Juro Bystricky
fb6b386ffc qemu-cortex-m3.conf: updated NAME/DESCRIPTION
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-18 11:00:29 -08:00
Juro Bystricky
09381bd7c3 zephyr-philosophers: also deploy binary image
Deploy both binary and ELF images in order to make
it easier to flash the image on an actual board, such as Arduino-101.
(Some flashing tools require binary image)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-10 17:00:11 -08:00
Juro Bystricky
f47182e4f9 arduino-101-sss: New MACHINE
Added support for Zephyr arduino_101_sss board (ARC core).
The support requires ARC toolchain.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-10 16:57:03 -08:00
Juro Bystricky
057ad2504c meta-zephyr: Support for ARC toolchain
Added support for ARC toolchains: binutils, gcc, libgcc.
These are not upstreamed, but taken from Symantec ARC repos.

[YOCTO#10659]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-10 16:52:41 -08:00
Juro Bystricky
895c53de14 arduino-101: New MACHINE
Support for Arduino-101 board, Intel MCU CPU.
This board needs IAMCU cross-compiler.

[YOCTO#10658]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-10 16:46:21 -08:00
Juro Bystricky
7c3f7c10de meta-zephyr: Select BOARD via MACHINE
The meaning of BOARD in Zephyr environment is equivalent to MACHINE
in Yocto environment.
Specifying MACHINE will implicitly determine cross-compiler toolchain as well.

There is 1:1 correspondence between Zephyr BOARD and Yocto MACHINE so
a lookup table BOARD:MACHINE may be needed in the future, presently all
that is required is to convert "-" to "_". (Dash to undersocre)

This means that in order to support a new Zephyr board, we simply need to
create a corresponding MACHINE.conf file.

[YOCTO#10894]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-10 16:36:28 -08:00
Juro Bystricky
3a0d83fe89 zephyr-kernel: refactor common code
Several changes to simplify recipes by refactoring
common code. The code common to all Zephyr builds is
now in the file "zephyr-kernel-common.inc".

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-10 16:33:23 -08:00
Juro Bystricky
dca66adbe0 qemu-cortex-m3: new MACHINE
Various changes to properly handle QEMU for Cortex M3.
This was solved by creating a new MACHINE qemu-cortex-m3.
Specifying MACHINE=qemu-cortex-m3 will select proper tuning
for the cross-compiler.

Typical usage:

    $ MACHINE=qemu-cortex-m3 bitbake zephyr-philosophers

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-10 16:24:04 -08:00
Juro Bystricky
20cba15522 COPYING.MIT: Default license
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-04 11:10:46 -08:00