• Stars
    star
    174
  • Rank 217,865 (Top 5 %)
  • Language
    C
  • License
    Apache License 2.0
  • Created over 7 years ago
  • Updated 25 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Zephyr SDK (Toolchains, Development Tools)

Zephyr SDK

The Zephyr Software Development Kit (SDK) includes the toolchains for all supported target architectures as well as the host tools, such as QEMU and OpenOCD, for testing and debugging the Zephyr RTOS.

The toolchains for the following target architectures are supported:

  • ARC (32-bit and 64-bit; ARCv1, ARCv2, ARCv3)
  • ARM (32-bit and 64-bit; ARMv6, ARMv7, ARMv8; A/R/M Profiles)
  • Microblaze (32-bit)
  • MIPS (32-bit and 64-bit)
  • Nios II
  • RISC-V (32-bit and 64-bit; RV32I, RV32E, RV64I)
  • SPARC (32-bit and 64-bit; SPARC V8, SPARC V9)
  • x86 (32-bit and 64-bit)
  • Xtensa (sample_controller, intel_ace15_mtpm, intel_tgl_adsp, nxp_imx_adsp, nxp_imx8m_adsp, espressif_esp32, espressif_esp32s2, espressif_esp32s3)

The following host tools are available as part of the Zephyr SDK:

  • BOSSA
  • OpenOCD
  • QEMU
  • Xilinx QEMU

Releases

The Zephyr SDK bundle releases are available for the following host platforms:

  • Linux (AArch64, x86-64)
  • macOS (AArch64, x86-64)
  • Windows (x86-64)

These binaries can be downloaded from here.

For future release plans, please refer to the Release Plan document in the wiki.

Build Process

The Zephyr Project maintains the infrastructure necessary to build and test the Zephyr SDK, and it is highly recommended to utilise this infrastructure for generating the Zephyr SDK binaries.

When you submit a pull request to the Zephyr SDK repository, CI will automatically build and test the Zephyr SDK with the changes in the pull request and upload the binaries to the pull request check run, which you can download for further local testing as necessary.

Locally building the Zephyr SDK is currently not supported because setting up the environment to do so is highly complex and the resource requirements far exceed what is found on common developer machines.

Workflow to Test Patches with Zephyr SDK

The following workflow can be used to test a patch for GCC, for example, building the SDK remotely:

  • Submit your DRAFT gcc PR to Zephyr's GCC fork (etc.)
  • Update .gitmodules in sdk-ng to point to the fork with your gcc commit(s)
  • Resync submodules (git submodule sync --recursive && cd gcc && git pull)
  • Checkout the gcc commit hash in sdk-ng's gcc submodule and commit the .gitmodule changes (git add .gitmodules gcc && git commit -s)
  • Submit a DRAFT PR to sdk-ng with the submodule change(s)

Zephyr's CI will then build a new toolchain, which will be available in the PR check step. Verify that the GCC fix behaves as expected with the generated SDK.

Release Process

To create a new Zephyr SDK release:

  • Update the VERSION file with the new version (e.g. 0.11.0 or 0.11.0-beta1)
  • On https://github.com/zephyrproject-rtos/sdk-ng/releases, create a new tag named with the version number prefixed with v (e.g. for the version 0.11.0, the tag name should be v0.11.0) and add the release information.
  • Once the release is published, CI will build the Zephyr SDK bundles for all supported host platforms and will upload the binaries to the release page.

For more detailed information on the release process, please refer to the Release Process document in the wiki.

Submodule Update Process

The Zephyr SDK repository contains various submodules, such as binutils and gcc, required for building the Zephyr SDK.

When updating a submodule, the following procedure should be followed:

  • Push a topic branch to the submodule repository.
  • Create a pull request from the topic branch to the default (current) branch of the submodule repository.
  • Create a pull request in the Zephyr SDK repository to update the submodule reference to the tip of the topic (pull request) branch.
  • When the pull request in the Zephyr SDK repository passes the CI and the submodule pull request is sufficiently reviewed, merge the submodule pull request.
  • Update the pull request in the Zephyr SDK repository to reference the merged commit in the submodule repository.
  • Merge the pull request in the Zephyr SDK repository.

When updating the picolibc submodule, the picolibc module in the west.yml of the main Zephyr repository must also be updated to reference the same commit.

More Repositories

1

zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
C
10,521
star
2

west

West, Zephyr's meta-tool
Python
225
star
3

example-application

Example out-of-tree application that is also a module
C
214
star
4

windows-curses

Windows Curses Python module
C
162
star
5

docker-image

Docker image suitable for Zephyr development and CI
Shell
141
star
6

zscilib

An open-source scientific computing library for embedded systems running Zephyr OS or standalone.
C
131
star
7

hal_stm32

C
96
star
8

lvgl

C
64
star
9

liblc3codec

LC3 codec implementation
C++
60
star
10

hal_espressif

HAL and SDK for ESP32 and other hardware from Espressif
C
45
star
11

meta-zephyr-sdk

Zephyr SDK (obsolete)
C
45
star
12

gsoc-2022-arduino-core

Arduino Core Zephyr Module (GSoC 2022 Project)
C++
44
star
13

hal_nxp

HAL module for NXP SoCs
C
34
star
14

net-tools

Network tools for testing with Qemu
C
32
star
15

openthread

openthread module for Zephyr, not a mirror of the official openthread repository
C++
28
star
16

trusted-firmware-m

Zephyr repository tracking https://git.trustedfirmware.org/trusted-firmware-m.git/
C
28
star
17

mcumgr

Upstream repo is https://github.com/apache/mynewt-mcumgr
C
27
star
18

openocd

OpenOCD with Zephyr patches for building Zephyr SDK
C
27
star
19

rtos-benchmark

RTOS Benchmark
C
27
star
20

jlink-zephyr

J-Link Zephyr RTOS plugin
C
26
star
21

hal_nordic

C
25
star
22

loramac-node

Zephyr repository tracking https://github.com/Lora-net/LoRaMac-node
C
20
star
23

mbedtls

mbedtls module for Zephyr, this is not a mirror of the official mbedtls repository.
C
19
star
24

eclipse-plugin

Zephyr Eclipse Plugin
Java
15
star
25

littlefs

littlefs module for Zephyr, not a mirror of the official littlefs repository
C
15
star
26

python-devicetree

Python devicetree library
Python
15
star
27

hal_st

C
12
star
28

zephyr-testing

Test Repo, Do not clone! Use zephyr repo instead
C
12
star
29

hal_atmel

C
11
star
30

fatfs

This implementation of file system is developed by ELM Chan
C
11
star
31

canopennode

Zephyr repository tracking https://github.com/CANopenNode/CANopenNode
C
10
star
32

action-zephyr-setup

GitHub Action to set up Zephyr build environment
10
star
33

twister

[DEPRICATED] Project won't be continued.
Python
10
star
34

hal_infineon

HAL for Infineon ICs
C
10
star
35

cmsis

Zephyr repository tracking https://github.com/ARM-software/CMSIS_5
C
10
star
36

gsoc-2022-thrift

Thrift Zephyr Module (GSoC 2022 Project)
C++
10
star
37

hal_ti

C
9
star
38

libmetal

The libmetal module specific for use with Zephyr. This is not a mirror of the official libmetal repo.
C
9
star
39

ci-tools

CI Tools and Scripts (obsolete)
Python
9
star
40

open-amp

open-amp module for zephyr, this is not an official mirror of the open-amp repo
C
9
star
41

reqmgmt

Python
8
star
42

hal_silabs

C
8
star
43

chre

Context Hub Runtime Environment (CHRE)
C++
8
star
44

infrastructure-old

Zephyr Infrastructure Issue Tracker (obsolete)
8
star
45

action-manifest

Python
7
star
46

qm

Quality Management and QA/Verification plans and reports
Perl
7
star
47

segger

C
6
star
48

hal_microchip

HAL module for Microchip devices
C
6
star
49

test_results

Consolidated test results
Python
6
star
50

hal_gigadevice

HAL for GigaDevice devices
C
6
star
51

ci-dockerfiles

The content of this repository has moved to https://github.com/zephyrproject-rtos/docker-image
6
star
52

oss-eu-2022-zephyr-app

Application for the OSS EU 2022 Zephyr Mini-Summit
C
6
star
53

mipi-sys-t

C
6
star
54

tinycbor

Concise Binary Object Representation (CBOR) Library
C
5
star
55

hal_xtensa

Zephyr repository tracking https://github.com/foss-xtensa/xtensa-hal
C
4
star
56

nffs

C
4
star
57

Kconfiglib

Canonical upstream for https://pypi.org/project/kconfiglib/ (replaces inactive https://github.com/ulfalizer/Kconfiglib)
Python
3
star
58

uoscore-uedhoc

Zephyr downstream of https://github.com/eriptic/uoscore-uedhoc
C
3
star
59

hal_renesas

HAL for Renesas devices
C
3
star
60

optiga-trust

Zephyr repository tracking Infineon's Optiga Trust X and M frameworks
3
star
61

hal_wurthelektronik

HAL for WΓΌrth Elektronik devices
C
3
star
62

hal_altera

C
3
star
63

hal_ethos_u

HAL for Arm Ethos-U NPUs
C++
3
star
64

hal_nuvoton

HAL module for Nuvoton ICs
C
2
star
65

action_scancode

Python
2
star
66

sdk-ng-testing

For testing purposes only.
C
2
star
67

git2cl

Perl
2
star
68

docker-sdk-build

Docker image for building the Zephyr SDK
Dockerfile
2
star
69

docker-scancode

Docker image with scanode for Github actions
Dockerfile
2
star
70

system-dt-playground

Temp repo for sharing activities around system devicetree and Zephyr
C
2
star
71

proposals

Zephyr Enhancement Proposals and Blue Prints
2
star
72

hal_unisoc

C
2
star
73

tf-m-tests

Zephyr repository tracking https://git.trustedfirmware.org/TF-M/tf-m-tests.git
C
2
star
74

nrf_hw_models

Mirror of https://github.com/BabbleSim/ext_NRF_hw_models/ (PRs or issues should be filed there)
C
2
star
75

tinycrypt

Zephyr repository tracking https://github.com/intel/tinycrypt
C
2
star
76

newlib-cygwin

Newlib source for building Zephyr SDK
C
2
star
77

hal_nrfx

DEPRECATED repository. Do **not** change or delete.
C
2
star
78

hal_quicklogic

HAL for QuickLogic devices
C
1
star
79

infrastructure

Zephyr Project Infrastructure Management
HCL
1
star
80

hardware_test_results

A repo for collecting test results and for managing validation reports.
Python
1
star
81

hal_cypress

HAL module for Cypress devices
C
1
star
82

docker-image-testing

For testing purpose only.
Shell
1
star
83

hal_qmsi

C
1
star
84

esp-idf

C
1
star
85

.github

Special repository for GitHub public organisation profile
1
star
86

swg-scripts

Security Working Group Scripts
Rust
1
star
87

ci-test

This repository is obsolete
Shell
1
star
88

libjaylink

C
1
star
89

tests_influx_grafana

Used for footprint tracking
Python
1
star
90

edtt

Mirror of https://github.com/EDTTool/EDTT (PRs or issues should be filed there)
Python
1
star
91

docker-ci-internal

Private Docker image for Zephyr CI (inactive, for testing only)
Dockerfile
1
star
92

babblesim-manifest

Automated replica of https://github.com/BabbleSim/bsim_west. Send PR or issues there.
1
star
93

crosstool-ng-old

Zephyr fork of crosstool-NG - for building Zephyr GNU toolchains (obsolete)
Shell
1
star
94

hal_telink

HAL for Telink devices
C
1
star
95

docs-theme

Zephyr Project Documentation Theme
CSS
1
star
96

hal_hpmicro

HPMicro HAL
C
1
star
97

actions_sandbox

A sandbox for testing GH Actions
1
star
98

hal_openisa

C
1
star
99

hal_wch

HAL module for WCH CH32V
C
1
star
100

hal_ambiq

HAL for Ambiq devices
C
1
star