Stephanos Ioannidis
19965f8173
cmake: qemu: Support delayed expansion of QEMU_KERNEL_OPTION
...
This commit allows the `QEMU_KERNEL_OPTION` variable, which can be
overridden by the `board.cmake`, to contain references to the variables
that are not available at the time of `board.cmake` inclusion, by
expanding its escpaed variable references in `cmake/emu/qemu.cmake`
which is included nearby the end of the root `CMakeLists.txt`.
With this change, the `board.cmake` can escape variable references as
follows and allow them to be expanded later:
set(QEMU_KERNEL_OPTION "-device;loader,file=\$<TARGET_FILE:$\{...}>")
Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2020-04-02 09:22:38 +02:00
Stephanos Ioannidis
95bdbe35bd
boards: qemu_cortex_r5: Remove ignore tags for working tests
...
This commit removes the ignore tags for the tests that work after the
changes in the PR #23636 .
Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2020-04-02 09:22:38 +02:00
Stephanos Ioannidis
3a405409c5
tests: kernel: interrupt: Enable nested interrupt test for Cortex-R
...
This commit enables nested interrupt test for the Cortex-R platforms
that use the ARM Generic Interrupt Controller (GIC).
Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2020-04-02 09:22:38 +02:00
Stephanos Ioannidis
b63a028fbc
arch: arm: aarch32: Rework non-Cortex-M context preservation
...
The current context preservation implementation saves the spsr and
lr_irq registers, which contain the cpsr and pc register values of the
interrupted context, in the thread callee-saved block and this prevents
nesting of interrupts because these values are required to be part of
the exception stack frame to preserve the nested interrupt context.
This commit reworks the AArch32 non-Cortex-M context preservation
implementation to save the spsr and lr_irq registers in the exception
stack frame to allow preservation of the nested interrupt context as
well as the interrupted thread context.
Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2020-04-02 09:22:38 +02:00
Andrew Boie
cc680a83dd
doc: syscalls: expand docs on data copying
...
Show best practices when handling parameters passed to
system calls by reference.
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2020-04-01 23:34:02 -04:00
Andrew Boie
68a2fe8262
doc: usermode: fix terminology
...
Handler functions are now referred to as verification functions,
update documentation to reflect this.
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2020-04-01 23:34:02 -04:00
Frank Li
9162e7d812
kconfig: add CODE_SEMC for CODE_LOCATION
...
Add CODE_SEMC to support nxp-rt series
code run in external sdram.
Signed-off-by: Frank Li <lgl88911@163.com>
2020-04-01 16:51:55 -05:00
Anas Nashif
29c0c08fd4
ci: do full sanitycheck if not a PR
...
Cover the cases where we run sanitycheck on a merged PR.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2020-04-01 17:20:56 -04:00
Anas Nashif
d295672bbb
CODEOWNER: add owner for scripts/ci
...
Add files under scripts/ci to CODEOWNERS file.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2020-04-01 14:00:57 -04:00
Anas Nashif
270165428c
ci: do not run full sanitycheck if not needed...
...
if we are changing a test or a sample, there is not need to run
everything, it is enough to just build/run the changed test/sample.
Also, some files have impact on the code and if they are being changed,
do not run fully sanitycheck.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2020-04-01 14:00:57 -04:00
Anas Nashif
0e558059d1
ci: detect what changed in a PR and if full sanitycheck is needed.
...
Script to detect if full sanitycheck should run or if we can skip it and
just run the code that actuallt changed (in samples/tests).
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2020-04-01 14:00:57 -04:00
Ruslan Mstoi
e5f714575e
net: tcp2: Fix handling of the END TCP option
...
End option indicates the end of the option list. Hence, correct way to
handle it is to break out of the option parsing routine.
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com>
2020-04-01 20:58:40 +03:00
Johan Hedberg
0c4b87dc9f
net: openthread: Fix timeout passed to k_sleep()
...
k_sleep() now takes a k_timeout_t so an integer value needs to be
wrapped through the appropriate macro, in this case K_SECONDS().
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2020-04-01 20:03:15 +03:00
Johan Hedberg
b3f39226ec
net: tests: Fix timeout passed to k_sleep()
...
Use the appropriate K_SECONDS() or K_MSEC() macros to pass a timeout to
k_sleep() and other kernel APIs.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2020-04-01 20:03:15 +03:00
Johan Hedberg
a03a54f00c
net: samples: Fix timeout passed to k_sleep()
...
Use the appropriate K_SECONDS() macro to pass a timeout to k_sleep().
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2020-04-01 20:03:15 +03:00
Johan Hedberg
31ad7b455b
Bluetooth: tests: Fix timeout passed to k_sleep()
...
Use the appropriate K_SECONDS() macro to pass a timeout to k_sleep().
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2020-04-01 20:03:15 +03:00
Johan Hedberg
7d4682e302
Bluetooth: samples: Fix timeout passed to k_sleep()
...
Use the appropriate K_SECONDS() macro to pass a timeout to k_sleep().
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2020-04-01 20:03:15 +03:00
Kumar Gala
a44f4cf484
samples: sensor: sht3xd: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
666c39a3cb
samples: basic: servo_motor: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
77450c950a
samples: bluetooth: hci_uart: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
a027c94613
samples: net: wifi: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
0cd03a6ebe
samples: net: gsm_modem: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
14903e49f0
samples: sensor: ti_hdc: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
1605c312a0
samples: sensor: tmp116: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
d270a07d1e
samples: sensor: bme280: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
7908daf5ef
samples: sensor: adxl372: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
9c688bb5cb
samples: sensor: ms5837: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
9898c51641
samples: sensor: bme680: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
b8a36f665b
samples: drivers: ht16k33: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
2d7cc8f774
samples: subsys: canbus: canopen: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
ce41833a10
samples: subsys: fs: fat_fs: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
a21afb83b1
samples: bluetooth: central: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
caa6c06f73
samples: bluetooth: peripheral_ht: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
cb98936b83
samples: bluetooth: scan_adv: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
1252388c6d
samples: bluetooth: peripheral_hr: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
2dfd21b2e8
samples: bluetooth: beacon: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
e51b896cfb
samples: bluetooth: peripheral_dis: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
d1b934d068
samples: bluetooth: peripheral_sc_only: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
a92be467cc
samples: bluetooth: mesh_demo: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
43b74049de
samples: bluetooth: mesh: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
9b76cb113f
samples: bluetooth: ipsp: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
4921f2a292
samples: bluetooth: peripheral_hids: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
7712f5d025
samples: bluetooth: peripheral_esp: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
3f76fa958b
samples: bluetooth: hci_spi: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
5b74caa808
samples: bluetooth: peripheral: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
a5f718214c
samples: bluetooth: central_hr: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
9b897eab70
samples: bluetooth: eddystone: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
77b8bb9c57
samples: bluetooth: peripheral_csc: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
dd7a4d93ef
samples: bluetooth: ibeacon: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00
Kumar Gala
5cd4ce3b79
samples: subsys: ipc: openamp: Move dts overlays under boards
...
Move the dts overlay under a boards/ dir to make it match conf files.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-01 10:44:31 -04:00