Commit Graph

193 Commits

Author SHA1 Message Date
Bartosz Golaszewski
744cb49fbb zephyr-kernel-src: order git repos alphabetically
As the number of repos pulled gets bigger it's easier to parse them
if they are ordered alphabetically.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@huawei.com>
Signed-off-by: Eilís Ní Fhlannagáin <elizabeth.flanagan@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-11-17 12:56:32 +08:00
Naveen Saini
f12b76c94b zephyr-kernel-src: use the preferred coding style for multi-line assignments
This type of multi-line assignments is the most prevalent in well-known
layers and is more visually pleasing.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@huawei.com>
Signed-off-by: Eilís Ní Fhlannagáin <elizabeth.flanagan@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-11-17 12:56:32 +08:00
Bartosz Golaszewski
0da45d99a9 zephyr-kernel-src: order the SRCREV assignments alphabetically
It's easier to parse visually when those assignments are ordered.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@huawei.com>
Signed-off-by: Eilís Ní Fhlannagáin <elizabeth.flanagan@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-11-17 12:56:32 +08:00
Ross Burton
fd8bf39779 zephyr-kernel-src: fix build with latest dtc
dtc is now built with Meson, which changes the version string in the
--version output.  Zephyr matches this in a regular expression which now
fails, so update it to match both Make and Meson formats.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-11-16 20:08:34 +08:00
Jon Mason
2e67c62084 zephyr-kernel-test: remove unnecessary "+="
bitbake is now warning when "+=" is used with "remove", as it is not a
recommended combination.  Change the commented out versions that have
this combination to prevent anyone from using it.

Signed-off-by: Jon Mason <jon.mason@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-11-12 17:37:36 +08:00
Jon Mason
a67a190d6d zephyr-kernel-src: specify nobranch to avoid warnings
bitbake is now warning on git trees not having branches specified, with
errors similar to below:
WARNING: URL: git://github.com/zephyrproject-rtos/cmsis.git;protocol=https;destsuffix=git/modules/cmsis;name=cmsis does not set any branch parameter. The future default branch used by tools and repositories is uncertain and we will therefore soon require this is set in all git urls.

To get around this issue, specify "no-branch=1" for all SRC_URIs that do
not have a branch listed.

Signed-off-by: Jon Mason <jon.mason@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-11-08 17:30:29 +08:00
Naveen Saini
c01462a65a zephyr-kernel-src: set default preferred version to 2.7.0
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-10-25 09:30:14 +08:00
Naveen Saini
252a7a8912 zephyr-kernel/2.7.0: update to release tag Zephyr v2.7.0
https://github.com/zephyrproject-rtos/zephyr/releases/tag/zephyr-v2.7.0

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-10-25 09:30:14 +08:00
Ross Burton
9944d69567 lib/oeqa/controllers: extend search path
When multiple locations can provide modules in the same package, the
search path needs to be extended with pkgutil.extend_path.  Otherwise
the search will end early and not iterate through each of the providers.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-10-21 13:44:02 +08:00
Naveen Saini
8178bc751e zephyr-kernel/2.5.0: drop recipe
As v2.7.0 is being added, drop this version support

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-10-21 13:44:02 +08:00
Naveen Saini
0e58b3ef37 zephyr-kernel/2.7.0: add recipe
https://github.com/zephyrproject-rtos/zephyr/commits/v2.7-branch

Keeping the default PREFERRED_VERSION to 2.6.1 for now.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-10-21 13:44:02 +08:00
Jon Mason
44dcaa095d zephyr-kernel-test: disable broken tests
Add tests that don't currently compile successfully to the remove
list for each specific machine.

Signed-off-by: Jon Mason <jon.mason@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-10-07 11:24:17 +08:00
Arnaud Pouliquen
2e66889f20 zephyr-kernel: add openamp-rsc-table sample
The recipe to build rpmsg sample demonstrating messaging between
main core dunning Linux and and the coprocessor running Zephyr.
Useful to demonstrate inter-processing communication.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-10-06 13:27:22 +08:00
Arnaud Pouliquen
55524eacc4 conf: machine: add stm32mp157c-dk2 support
The board is based on STMicroelectronics STM32MP157 processor based on
a dual Cortex-A7 core and a Cortex-M4 core.

STM32MP1 family 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: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-10-06 13:27:22 +08:00
Jon Mason
e05b125c9c qemuzephyrrunner.py: use os._exit instead of sys.exit
sys.exit(0) can cause an error to be reported when the child exits, even
though not an error.  Since this is a child process, os._exit(0) is the
proper way to exit and not cause this issue.

Signed-off-by: Jon Mason <jon.mason@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-09-27 11:07:52 +08:00
Naveen Saini
c9e88ab72c zephyr-kernel: upgrade 2.6.0 -> 2.6.1
It has GCC-11 fixes.
https://github.com/zephyrproject-rtos/zephyr/issues/35707

Commits included:
2d6322d74a demand_paging: eviction/nru: fix incorrect dirty bit return val
25771e6928 drivers: clock_control: stm32: enable PWR clock unconditionally
92e36185e8 [Backport v2.6-branch] Microchip: XEC GPIO driver interrupt enable part 2
68d33e3834 libc/minimal: locate the memory pool for malloc() to .bss
7f3abab9bf net: tcp: accept [FIN, PSH, ACK] in TCP_FIN_WAIT_2 state
533dcaf374 lib/os/cbprintf_nano.c: avoid sign extension on unsigned formats
ea55ebfa74 tests: schedule_api: use stack array extern macro
95bb8841b8 tests: mem_protect: fix warning on uninitialized variable
1f8c53dfaf tests: kernel/common: avoid using compiler builtin popcount
7bb7454a00 kernel: use proper macro to declare extern interrupt stacks
25fd176014 kernel: add macros to allow declaring extern stack arrays
e1cde092ac kernel: move Z_KERNEL_STACK_LEN higher in thread_stack.h
244049bd71 x86: type cast to uint8_t* for bit ops
5dae0c1bf0 kernel: ignore array bound warnings for generated syscall funcs
5666e4d525 cmake: force GCC to emit DWARF version 4
91a78866ca Bluetooth: Controller: Fix advertising after connections from same peer
0afddb2341 x86/cache: fix issues in arch dcache flush function
9bcf9b6a53 json: fix parsing first array-array element
2595cce714 cmake: oneApi: add oneApi support on windows.
18d314e750 cmake: oneApi: add oneApi support on windows
c8755e0b46 (tag: v2.6.1-rc1) tests/benchmarks: add dynamic memory allocation measurement
a4d35f0a3e doc: 2.6.1 release notes
7094aaee55 release: Bump release to 2.6.1-rc1
585c03a0b6 drivers/clock_control: stm32: Fix macro to get HCLK freq
cacb0a4e59 Bluetooth: L2CAP: Fix missing net_buf_unref()
78ab750540 timer: hpet: convert register access to functions
d9df404d47 timer: hpet: don't force TIMER_READS_ITS_FREQUENCY_AT_RUNTIME
8e80955511 timer: hpet: allow overriding MIN_DELAY
99dc33faaf timer: hpet: extract Counter Clock Period into a macro
02fbe652a5 logging: fs: fix leak of opened directories in check_log_file_exist()
80b406d784 x86: acpi: limit search on where EBDA can be

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-09-27 11:07:51 +08:00
Naveen Saini
ed0060926e zephyr-qemuboot: fix parse build failure
As OE-core explicitly have added depends for qemu-helper addto_recipe_sysroot task, which
breaks zephyr-qemuboot implementation of adding build dependencies
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=282d596b8cc81d650b6d20c6131fdc236bad2c20

ERROR: Error for meta-zephyr/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb:
do_bootconf_write[depends], dependency qemu-helper-native:do_addto_recipe_sysroot:do_addto_recipe_sysroot in
' qemu-helper-native:do_addto_recipe_sysroot:do_addto_recipe_sysroot qemu-helper-native:do_addto_recipe_sysroot:do_populate_sysroot' does not contain exactly one ':' character.
 Task 'depends' should be specified in the form 'packagename:task'
ERROR: Command execution failed: Exited with 1

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-09-27 11:07:51 +08:00
Naveen Saini
a021a1ab4e layer.conf: update machine confs with new tune locations
Added logic to make sure, it does not break with old releases.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-08-24 09:25:37 +08:00
Naveen Saini
b2365dddc6 zephyr-kernel-src-dev.inc: add dev recipe
It allow to build against latest main branch. User need
to have following config locally to use it.

PREFERRED_VERSION_zephyr-kernel = "dev"

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-08-13 09:47:29 +08:00
Naveen Saini
b6c8a61dbb zephyr-kernel-src: switch to main branch for hal_stm32 module repo
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-08-13 09:47:29 +08:00
Naveen Saini
34d3ab5a81 layer.conf: add honister to LAYERSERIES_COMPAT
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-08-05 17:07:51 +08:00
Naveen Saini
de481c4b3b Convert to new override syntax
Use the convert-overrides.py to convert to new syntax and fixed
some additional changes manually.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-08-05 17:07:51 +08:00
Naveen Saini
80276ffd01 intel-x86-32.conf: drop machine configuration
Support for 'minnowboard' and 'up_squared_32' BOARDS have been removed.

ec5e3017ac
11b8dd85b9

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-07-27 11:11:01 +08:00
Stefan Schmidt
14a33ef85f zephyr-openthread-echo-client: Add new echo-client variant for OpenThread
Similar to the normal echo-client example it demonstrates socket usage,
but in this variant we enable the OpenThread config overlay and add the
needed module to the build.

Signed-off-by: Stefan Schmidt <stefan.schmidt@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-07-16 14:10:23 +08:00
Stefan Schmidt
a16a5d4318 zephyr-kernel-src.inc: Add backport patch for storage partition
Patch already merged upstream, but after the 2.6 release we are based
on. Taking the backport in here until we can figure out if that can go
to the Zephyr 2.6 LTS branch.

The storage partition itself is needed on the Arduino Nano e.g. for
OpenThread or applications needed a storage space.

Signed-off-by: Stefan Schmidt <stefan.schmidt@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-07-16 14:10:09 +08:00
Naveen Saini
58b9d677f1 zephyr-kernel: install .efi image if available
EFI images are being generated for x86 platforms.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-07-08 15:33:47 +08:00
Naveen Saini
50fd22800f zephyr-kernel/2.6.0: update to include latest commits
Switched to v2.6-branch. It included x86 EFI binary fix.

It requried rebasing of yocto toolchain patch.

Commits included:
837ab4a915 ARC: save/restore accumulator registers on all ARCv2 HS CPUs by default
0943608550 riscv: openisa_rv32m1: Fix booting of rv32m1_vega
3c56e0df0b cmake: ld: Disable manual linking of libgcc components for host
b0cb7412b9 cmake: host-gcc: Remove libgcc library path resolution
80e1b785dc cmake: host-gcc: Detect libgcc for all archs
e72a327107 cmake: gcc: Remove no_libgcc exclusion for libgcc detection
1cf1d75d3f Bluetooth: Controller: Fix Data Length Update node Rx reservations
e43afd10f7 Bluetooth: Controller: Fix free rx buffer MFIFO enqueue
6d9b318dca Bluetooth: Controller: Minor change to use IS_ENABLED
d4d362d081 doc: api: fix devicetree modification version
d0dca15734 arch/x86/zefi: Fix entry-nop hack for EFI entry
218e438f3e drivers: bluetooth: hci driver for stm32wb includes clock control
f66d0cea06 Tracing: TraceRecorder CMake update
d5a1a22b1a python-devicetree: tox: fix mypy
c77f8fae83 doc/guides/dts: bindings: Fix code snippet for 'signal-gpios'
3ec1caa504 dts/arm: st: g0: closes parenthesis for soc
a221f358eb drivers: flash_stm32_v1: fix a potential unaligned access
f5a6110b4a tests: cpp: libcxx: Test with full and nano variants of newlib
1d6106fd5e tests: cpp: libcxx: Use full version of newlib for testing
4b87e90167 cpp: Fix C++ exception handling newlib dependency
1d4d16b748 linker: cpp: Fix C++ exception handling info section linking
4a564cdef0 version: add EXTRAVERSION to VERSION file

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-07-08 15:33:47 +08:00
Amit Kucheria
c1622d9548 zephyr-coap-client: Add recipe for CoAP client
This sample application provides an example coap-client using the the MBEDTLS library.

Signed-off-by: Amit Kucheria <amit.kucheria.ext@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-06-23 11:03:47 +08:00
Amit Kucheria
f92b08d05e zephyr-coap-server: Add recipe for CoAP server
This sample application provides an example coap-server using the the MBEDTLS library.

Signed-off-by: Amit Kucheria <amit.kucheria.ext@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-06-23 11:03:47 +08:00
Stefan Schmidt
c904d23d71 zephyr-kernel: Add OpenThread add module to build
OpenThread support in Zephyr is realised as an external module. Make
sure we pull it in and have it available for applications to use it.

Signed-off-by: Stefan Schmidt <stefan.schmidt@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-06-15 14:29:01 +08:00
Davide Ricci
00d8b2fbf3 zephyr-blinky: add sample app recipe
Blinky is the most referenced sample in Zephyr's documentation and
recall Arduino's first sketch example. This .bb file allows to build
such example.

Signed-off-by: Davide Ricci <davide.ricci@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-06-15 14:18:31 +08:00
Nagesh Shamnur
5660376db7 zephyr-flash-bossac.bbclass: Enable board flashing via bossac
Currently only dfu and pyocd flashing are supported. Some boards
such as Arduino Nano 33 BLE can be flashed via bossac which is
released by Arduino repo. Find the installed Arudino version of
bossac and flash using that tool.

Signed-off-by: Nagesh Shamnur <nagesh.shamnur@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-06-15 14:14:34 +08:00
Nagesh Shamnur
6e155307b8 arduino-nano-33-ble.conf: Add Arduino Nano 33 BLE and BLE Sense support
Signed-off-by: Nagesh Shamnur <nagesh.shamnur@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-06-15 14:14:34 +08:00
Nagesh Shamnur
098501ca0e zephyr-kernel: install .bin image if available
Some boards (e.g. Arduino Nano 33 BLE) require image in bin format
for flashing with `-c flash_usb`. Provide that image along with ELF
image on do_deploy step.

Signed-off-by: Nagesh Shamnur <nagesh.shamnur@huawei.com>
Signed-off-by: Stefan Schmidt <stefan.schmidt@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-06-15 14:14:34 +08:00
Nagesh shamnur
fce191d5c7 zephyr-kernel-test: fix Cortex-M tests failure with 2.6.0 kernel
Edit the test recipe removing obj_tracing tests that have
been removed from Zephyr 2.6.0 release.

Signed-off-by: Nagesh Shamnur <nagesh.shamnur@huawei.com>
Signed-off-by: Wojciech Zmuda <wojciech.zmuda@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-06-15 14:14:34 +08:00
Naveen Saini
cf5dde0416 zephyr-kernel-src: drop 2.4.0 support
v2.6.0 is available now.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-06-10 11:34:21 +08:00
Naveen Saini
8e1781058d zephyr-kernel-src-2.4.0.inc: add srcrev for mbedtls module
Ref: https://github.com/zephyrproject-rtos/zephyr/blob/zephyr-v2.4.0/west.yml#L93

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-06-10 11:34:21 +08:00
Naveen Saini
dab78807cb zephyr-kernel-src-2.6.0.inc: add srcrev for mbedtls module
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-06-10 11:34:21 +08:00
Wojciech Zmuda
530e0a46c5 zephyr-kernel-src set default preferred version to 2.6.0
Signed-off-by: Wojciech Zmuda <wojciech.zmuda@huawei.com>
2021-06-10 11:34:21 +08:00
Wojciech Zmuda
426c7d9db3 zephyr-kernel-src: add 2.6.0 release
Zephyr 2.6.0 release notes:
  https://github.com/zephyrproject-rtos/zephyr/releases/tag/zephyr-v2.6.0

Update the following submodules to most recent revisions:
- hal_nordic:
    nrfx_dppi: Fix variable used in logging function
- hal_stm32:
    dts/st: use a pull-down for SPI SCK pin
- openamp:
    lib: update open-amp lib to release v2021.04.0
- libmetal:
    lib: update libmetal to release v2021.04.0 + VERSION path fix

Signed-off-by: Wojciech Zmuda <wojciech.zmuda@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-06-10 11:34:21 +08:00
Amit Kucheria
a55ccd8097 zephyr-mqtt-publisher: Add recipe for mqtt publisher
This sample application provides an example of using the the MBEDTLS library.

Signed-off-by: Amit Kucheria <amit.kucheria.ext@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-06-10 11:34:21 +08:00
Amit Kucheria
f9fcc08ec4 zephyr-websocket-client: Add recipe for websocket client
This sample application provides an example of using the the MBEDTLS library.

Signed-off-by: Amit Kucheria <amit.kucheria.ext@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-06-10 11:34:21 +08:00
Amit Kucheria
61cc9c3a98 zephyr-http-client: Add recipe for http client
This sample application provides an example of using the the MBEDTLS library.

Signed-off-by: Amit Kucheria <amit.kucheria.ext@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-06-10 11:34:21 +08:00
Amit Kucheria
df7b83f4e9 zephyr-echo-client: Add recipe for echo client
This sample application provides an example of using the the MBEDTLS library.

Signed-off-by: Amit Kucheria <amit.kucheria.ext@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-06-10 11:34:21 +08:00
Amit Kucheria
20e58fedfe zephyr-kernel: Clone mbedtls
MBed TLS is a library that implements cryptographic primitives and
SSL/TLS and DTLS protocols that are needed in secure network
communications.

Add it to the kernel include files to build and link against
applications that need mbedtls.

Signed-off-by: Amit Kucheria <amit.kucheria.ext@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-06-10 11:34:21 +08:00
Naveen Saini
630783f77c zephyrtargetcontrol.py: fix testimage 'testimage_dump_monitor' argument issue
Error log:
Exception: TypeError: __init__() got an unexpected keyword argument 'testimage_dump_monitor'

Ref:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=3acbec85b00d693d2d731bc2b09cc40be1cc68e9

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-05-27 17:59:59 +08:00
Naveen Saini
3ef4794c14 qemu-x86: set new -machine value for QEMU
-machine type=pc-1.3 is deprecated with QEMU 5.1.0

Error:
machine runqemu - ERROR - Failed
to run qemu: qemu-system-i386: unsupported machine type

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-05-24 10:40:19 +08:00
Jon Mason
48c5116712 qemuzephyrrunner.py: use existing qemu conf file
Read the generated QEMU conf file, instead of using hard coded values.
This allows for machines not conforming to the hard coded values to work
with testimage.

Signed-off-by: Jon Mason <jon.mason@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-05-21 09:41:26 +08:00
Naveen Saini
99a97250cc acrn.conf: drop acrn machine configuration
zephyr can be build for 'acrn' with following configuration:

MACHINE = "intel-x86-64"
ZEPHYR_BOARD = "acrn"

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-05-21 09:01:50 +08:00
Naveen Saini
98663003d7 intel-x86-32.conf: add common MACHINE for x86 (32-bit) BOARDS
User need to specify board value to ZEPHYR_BOARD in local.conf
ZEPHYR_BOARD = "minnowboard"

By default it set to MinnowBoard Max 'minnowboard'

Currently 32-bit supported boards:
* up_squared_32
* minnowboard

Ref:
https://docs.zephyrproject.org/latest/boards/x86/index.html

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-05-21 09:01:41 +08:00