Skip to content

Instantly share code, notes, and snippets.

View gist:837b75088f71620783021ac78b6fa71f
$ west build -b bbc_microbit -s samples/basic/blinky -p
-- west build: making build dir /home/mbolivar/zp/zephyr/build pristine
-- west build: build configuration:
source directory: /home/mbolivar/zp/zephyr/samples/basic/blinky
build directory: /home/mbolivar/zp/zephyr/build
BOARD: bbc_microbit (origin: command line)
-- west build: generating a build system
loading initial cache file /home/mbolivar/zp/initial-cache.cmake
-- Zephyr version: 2.2.0-rc3
-- Found PythonInterp: /home/mbolivar/.virtualenvs/west-dev/bin/python (found suitable version "3.8.1", minimum required is "3.6")
View differ
#!/usr/bin/env python
import argparse
from collections import namedtuple
from pathlib import Path
import colorama
STRICT_REDEFINITION = False
View gist:b1e46f743fed9331d3a554a0857f46bc
# prop: a Property with type "phandle-array"
#
# Results depend on:
#
# - how many edtlib.ControllerAndData items there are in prop.val
# - whether or not the property 'foos' has a parallel 'foo-names'
# property in the same node
#
# If there's just one ControllerAndData item, like this example:
#
View gist:ddd9851ebf7cebeed2b488f2fca8247e
GLOB sdist-make: C:\Users\Marti\src\west\setup.py
py3-windows inst-nodeps: C:\Users\Marti\src\west\.tox\.tmp\package\1\west-0.7.0rc1.zip
py3-windows installed: atomicwrites==1.3.0,attrs==19.3.0,colorama==0.4.3,configobj==5.0.6,coverage==5.0.3,docopt==0.6.2,entrypoints==0.3,flake8==3.7.9,importlib-metadata==1.5.0,mccabe==0.6.1,more-itertools==8.2.0,packaging==20.1,pluggy==0.13.1,py==1.8.1,pycodestyle==2.5.0,pyflakes==2.1.1,pykwalify==1.7.0,pyparsing==2.4.6,pytest==5.3.5,pytest-cov==2.8.1,python-dateutil==2.8.1,PyYAML==5.3,setuptools-scm==3.4.3,six==1.14.0,wcwidth==0.1.8,west==0.7.0rc1,zipp==2.1.0
py3-windows run-test-pre: PYTHONHASHSEED='291'
py3-windows run-test: commands[0] | flake8 '--config=C:\Users\Marti\src\west/tox.ini' 'C:\Users\Marti\src\west'
py3-windows run-test: commands[1] | py.test --cov=west -x
================================================================================ test session starts ================================================================================= platform win32 -- Pyt
View gist:614e9bb41c399a2b7a80616ddd5c7e9d
$ mkdir -p template-module/zephyr
$ touch template-module/zephyr/{CMakeLists.txt,Kconfig}
$ cat zephyr/samples/hello_world/CMakeLists.txt
# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1)
set(ZEPHYR_EXTRA_MODULES "/home/mbolivar/zp/template-module")
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
View manifests
==> m/west.yml <==
manifest:
projects:
- name: west.yml:project
url: u
- name: ignore-test # this one should get ignored
url: not-a-real-url
path: this-should-not-appear
self:
import:
View gist:46dbd6d3f9fdc9e762dc087759a1397c
ncs-loot before the mergeup:
- 7ddb13d5b748568adff7af00c93739591c767b60 [nrf noup] ci: Add Jenkins-based CI for zephyr
- 4a309fb9baa47cef7242e9c46f951653321ae907 [nrf temphack] ci: work around sanitycheck issue
- 171d34b1a4eb69f9bfe1cfc71a7455b923256a7f [nrf fromlist] tests/settings/functional/file: fix nRF targets
- 5cac7c881ca6d1fc0ee51117704fa781091ddde8 [nrf toup] tests: drivers: counter: Add clock stabilization nRF
- 213816bea3195b4ffc67225a0b690ad0049663ef [nrf toup] bluetooth: Selecting ENTROPY_GENERATOR for crypto
- 7b202ccbbb77e912f1c540d090636f36d3d4e69a [nrf noup] bluetooth: controller: default to SPLIT architecture
- cf6690e45a0627b5eb81536e921f72a6b175cabf [nrf toup] drivers: sensors: Fix compilation after HAL update
- 4c24a6465be42be352ab58ed7552a4c11fc98de9 [nrf noup] include: net: add nRF91 extensions
View gist:cd82dd45dd0d2ea153425c9506d61929
diff --git a/doc/zephyr.doxyfile.in b/doc/zephyr.doxyfile.in
index 83f9573f57..6f61408f58 100644
--- a/doc/zephyr.doxyfile.in
+++ b/doc/zephyr.doxyfile.in
@@ -1999,7 +1999,8 @@ PREDEFINED = "CONFIG_SYS_CLOCK_EXISTS=y" \
"__aligned(x)=" \
"__printf_like(x, y)=" \
"__attribute__(x)=" \
- "__syscall="
+ "__syscall=" \
View gist:221d9023876e48b404ff070bcb552025
$ west ncs-loot zephyr
=== zephyr (zephyr) outstanding downstream patches: NOTE: upstream/master *must* be up to date
- d2d3866252c65523809f7403d0ea6686df677199 [nrf noup] ci: Add Jenkins-based CI for zephyr
- 616ba690d0304cfe1cd3640e08100300a4a3aef5 [nrf temphack] include: arm: linker.ld
- b388c29a6e3041aae65a67668c63a92c407c804c [nrf noup] ci: Applied fix for compliance script parameters
- 83d7ad9dc6006002231daffc163b702f6fea229a [nrf noup] ci: Adapt Jenkinsfile to zephyr modules
- fd6c9dace92510cabc3176357b5a3ee47cd61c79 [nrf noup] jenkinsfile: Update NCS toolchain version
- 4cc4339719d422995e65a48c09b8ed6572505bd4 [nrf temphack] cortex_m: linker: Add ext_abi section
- ab080f15de12d5da27ea5cd2363d7cc843644b88 [nrf noup] jenkinsfile: Multiple fixes
- b6e47f84655b6a2e40d7ed9512da6dfed1719684 [nrf noup] ci: limit build agent selection
View gist:c5d36baf581fc47a6d51257164adfe78
Bluetooth monitor ver 5.50
= Note: Linux version 5.1.8-arch1-1-ARCH (x86_64) 0.845379
= Note: Bluetooth subsystem version 2.22 0.845381
= New Index: DC:8B:28:2D:87:9A (Primary,USB,hci0) [hci0] 0.845382
= Open Index: DC:8B:28:2D:87:9A [hci0] 0.845383
= Index Info: DC:8B:28:2D:87:9A (Intel Corp.) [hci0] 0.845383
@ MGMT Open: bluetoothd (privileged) version 1.14 {0x0001} 0.845384
@ MGMT Open: btmon (privileged) version 1.14 {0x0002} 0.848556
@ RAW Open: mcumgr (privileged) version 2.22 {0x0003} 65.263344
< HCI Command: Reset (0x03|0x0003) plen 0 #1 [hci0] 65.263406