366 Commits

Author SHA1 Message Date
Andrei Gherzan
08a40a7de7 zephyr-flash-pyocd.bbclass: Add missing do_flash_usb dependency on do_deploy
Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-02-17 11:51:01 +08:00
Andrei Gherzan
6dbedd2083 zephyr-flash-dfu.bbclass: Add missing do_flash_usb dependency on do_deploy
Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-02-17 11:51:01 +08:00
Naveen Saini
2502e9507f arduino-101-ble.conf: drop machine configuration
No longer supported.
66d60d2941

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-02-09 09:45:54 +08:00
Naveen Saini
ba5aade399 arduino-101-sss.conf: drop machine configuration
No longer supported.
ffaba63b10

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-02-09 09:45:54 +08:00
Naveen Saini
6813c75d03 arduino-101: drop machine configuration
No longer supported.
ffaba63b10

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-02-09 09:45:54 +08:00
Naveen Saini
ea627c7977 zephyr-ipm: drop recipe
ipm moved to driver folder. Sample is no longer available.

Ref:
131cfa2043

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-02-09 09:45:54 +08:00
Naveen Saini
fcd20d1016 zephyr-hci-uart: set COMPATIBLE_MACHINE to 96b-nitrogen machine
Fix recipe to build.
Support for Board arduino-101-ble already dropped from v1.12

Ref:
https://github.com/zephyrproject-rtos/zephyr/blob/v2.4-branch/samples/bluetooth/hci_uart/README.rst
https://github.com/zephyrproject-rtos/zephyr/blob/v2.4-branch/samples/bluetooth/hci_uart/boards/96b_nitrogen.conf

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-02-09 09:45:54 +08:00
Naveen Saini
ce1c9febfa zephyr-kernel-common.inc: use ZEPHYR_MODULES var
Use ZEPHYR_MODULES variable to pass list of absolute source paths of
additional external modules.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-02-09 09:45:54 +08:00
Wojciech Zmuda
2fc3697f99 zephyr-peripheral-esp: fix compilation
Bluetooth peripheral ESP sample application does not compile
because of:
 - broken source directory path passing to cmake,
 - broken paths in do_deploy,
 - unnecessary call for do_install,
 - missing tinycrypt.

The first issue caused the following error:

    <...>/gcc/arm-yocto-eabi/9.3.0/ld: <...>/recipe-sysroot/usr/lib/libc.a(lib_a-exit.o): in function `exit':
    /usr/src/debug/newlib/3.2.0-r0/newlib-3.2.0/newlib/libc/stdlib/exit.c:64: undefined reference to `_exit'
    collect2: error: ld returned 1 exit status

Fix the issue by providing Zephyr source directory to cmake
via OECMAKE_SOURCEPATH variable. On the do_configure step cmake
now gets the full path to the sample source code instead of
Zephyr root directory.

The second and third issue caused errors because of missing files.
Don't execute do_install and use the same paths in deploy as the
other sample apps do.

Inspecting meta-zephyr commits history shows that similar approach
was used in bb files of other sample application when updating
them to work with Zephyr 2.0.

For the missing Tinycrypt, append its location to cmake.

Signed-off-by: Wojciech Zmuda <wojciech.zmuda@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-02-05 16:14:27 +08:00
Wojciech Zmuda
fe509167cb zephyr-kernel: clone Tinycrypt
Tinycrypt is a library used in some sample applications,
i.e. in zephyr-peripheral-esp. Add it to kernel bbclass,
so it can be referenced in applications recipes that
use it.

Signed-off-by: Wojciech Zmuda <wojciech.zmuda@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-02-05 16:14:26 +08:00
Wojciech Zmuda
bc8d845e38 conf: machine: add 96boards Avenger96 support
The board is based on STMicro STM32MP157AAC 2xCortex-A7+2xCortex-M4
system-on-chip.

Add STM32MP1 family machine config. STM32MP1 support depends on
STM32 HAL and OpenAMP for inter-core communication.

This change has been verified with zephyr-philosophers
and zephyr-shell sample applications on by loading Zephyr image
to Cortex-M4 core from Linux using remoteproc framework.

Signed-off-by: Wojciech Zmuda <wojciech.zmuda@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2020-12-16 09:07:43 +08:00
Wojciech Zmuda
86fcab0456 zephyr-kernel: clone OpenAMP
OpenAMP is a framework providing software components enabling
development of software applications for AMP systems.
It is downloaded by default by west from two Zephyr Project
repositories based on original OpenAMP repositories:

 - open-amp - IPC layer that implements rpmsg communication
              between cores,
 - libmetal - HAL abstraction layer used by open-amp.

Clone the repositories so they can be used for building images
for boards with multicore chips.

Signed-off-by: Wojciech Zmuda <wojciech.zmuda@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2020-12-16 09:07:43 +08:00
Wojciech Zmuda
a181f90bf8 zephyr-kernel: clone STM32 HAL
HAL for STM32 chipsets is one of Zephyr subprojects. It is downloaded
by default by west. Clone the HAL repository so it can be used for
building images for boards with STM32 chips.

Signed-off-by: Wojciech Zmuda <wojciech.zmuda@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2020-12-16 09:07:43 +08:00
Wojciech Zmuda
4814135be3 classes: build zephyr-kernel-test-all for non-qemu boards
Machines not inheriting zephyr-qemuboot did not have
IMGDEPLOYDIR variable set, which is required for building
zephyr-kernel-test-all. The build was fine for qemu-xxx machines,
but for physical boards it failed somewhere inside python code
when .join() got an empty argument incoming from IMGDEPLOYDIR.
Move IMGDEPLOYDIR to zephyr class, so it's defined for
qemu and non-qemu machines.

Signed-off-by: Wojciech Zmuda <wojciech.zmuda@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2020-12-14 08:16:12 +08:00
Wojciech Zmuda
b74dee01fc zephyr-flash-pyocd.bbclass: support for flashing via pyocd
Implement do_flash_usb for boards supported by pyocd:

    MACHINE=xxx bitbake yyy -c flash_usb

Pyocd support abundance of boards, however for now this
meta-layer supports only one board that can be flashed
using pyocd, that is 96Boards Nitrogen.

Describe the feature in README.

Signed-off-by: Wojciech Zmuda <wojciech.zmuda@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2020-12-14 08:16:12 +08:00
Wojciech Zmuda
1247d07c6c conf: machine: add 96boards Nitrogen support
The board is based on Nordic nRF52832 Cortex-M4 chip.
The support depends on Nordic HAL. It has been verified
with zephyr-philosophers and zephyr-shell sample applications.

Signed-off-by: Wojciech Zmuda <wojciech.zmuda@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2020-12-14 08:16:12 +08:00
Wojciech Zmuda
4dee0261c1 conf: machine: add support for Nordic nRF52832 Cortex-M4 chip
Add include for Cortex-M4 tunes and nRF52832. The nRF config
appends 'nordic' to MACHINEOVERRIDES, so the kernel recipe
can include Nordic HAL when this override is detected.

Signed-off-by: Wojciech Zmuda <wojciech.zmuda@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2020-12-14 08:16:12 +08:00
Wojciech Zmuda
33fde6e6bc zephyr-kernel: clone Nordic HAL
HAL for Nordic chipsets is one of Zephyr subprojects. It is downloaded
by default by west. Clone the HAL repository so it can be used for
building images for boards with Nordic chips.

Signed-off-by: Wojciech Zmuda <wojciech.zmuda@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2020-12-14 08:16:12 +08:00
yockgenm
36e7d48141 zephyr: Yocto Image Tests Fix
Fix bug on Image Test, previously the Image Tests was not working
due to update on Yocto Image Test Framework.

The fix has rewritten and restructured existing Image Tests code
to latest Yocto testimage class requirement to make meta-zephyr
able to run Image Tests as expected.

Signed-off-by: yockgenm <yock.gen.mah@intel.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2020-11-09 12:27:14 +08:00
Naveen Saini
26571f7b89 zephyr-kernel-test: drop fatal kernel testcase
kernel 'fatal' testcase has directory structure changes in v2.4.0
version, which does not fit in current meta-zephyr test
build structure. So excluding it for now.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2020-11-03 10:06:14 +08:00
Jon Mason
ecfdc7c69e zephyr-kernel: add Zephyr RTOS version 2.4.0 support
Update Zephyr to the latest version.  Tested via zephyr-philosophers on
qemu-cortex-m3.

Signed-off-by: Jon Mason <jon.mason@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2020-10-30 12:52:22 +08:00
Naveen Saini
78b3556956 qemu-cortex-m3.conf: Disable RNG passthrough
Qemu system does not passthroth RNG on x86 host.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2020-10-22 13:05:35 +08:00
Ross Burton
5117e90e61 README: add patch submission details
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2020-10-21 18:47:20 +08:00
Ross Burton
71dd975d79 layer.conf: add layer dependency on meta-python
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2020-10-21 18:47:20 +08:00
Ross Burton
b6938016f4 zephyr: use TCLIBC=newlib directly
Instead of setting TCLIBC=baremetal and then adding newlib in various places,
just set TCLIBC=newlib directly.

This also means we can use the standard DEPENDS instead of reinventing them.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2020-10-21 18:47:20 +08:00
Ross Burton
4df23ca31f layer.conf: add compatibility with Gatesgarth
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2020-10-20 09:35:15 +08:00
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