build/snippets/index.html · build/snippets/index.rst 공식 원문 ↗

Zephyr 3.7.0 · Build · Snippets

Zephyr Snippet

공통 build system 설정을 application과 분리해 이름으로 재사용합니다.

Official pathbuild/snippets/index.html
Source filebuild/snippets/index.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

본문 기준: Zephyr 3.7.0 LTS3 · 이후 유지보수 패치는 별도입니다.

Part 1

요약·해설

Console backend, debugging option, AMP multi-core 설정 같은 대표 사용 사례를 설명합니다.

Store

Build settings

Reuse

여러 app

Example

Debug · console

Scope

Multi-core

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 E23389101883431D99E0FE16376E7DFBE735A2481515AAD61E3C631230E5CEDB
.. _snippets:

Snippets
########

Snippets are a way to save build system settings in one place, and then use
those settings when you build any Zephyr application. This lets you save common
configuration separately when it applies to multiple different applications.

Some example use cases for snippets are:

- changing your board's console backend from a "real" UART to a USB CDC-ACM UART
- enabling frequently-used debugging options
- applying interrelated configuration settings to your "main" CPU and a
  co-processor core on an AMP SoC

The following pages document this feature.

.. toctree::
   :maxdepth: 1

   using.rst
   /snippets/index.rst
   writing.rst
   design.rst

Part 3

한국어 전문 번역

Snippet

Snippet은 build system setting을 한곳에 저장한 뒤 어떤 Zephyr application을 build할 때도 재사용하는 방법입니다. 여러 application에 공통인 configuration을 application과 분리해 보관할 수 있습니다.

대표 사용 사례

  • Board console backend를 실제 UART에서 USB CDC-ACM UART로 변경
  • 자주 쓰는 debugging option enable
  • AMP SoC의 main CPU와 coprocessor core에 서로 연관된 설정 적용

문서 구성

  • Snippet 사용법
  • Zephyr가 제공하는 built-in snippet 목록
  • Snippet 작성법
  • Snippet 설계 목표

Source

출처

영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.