develop/toolchains/gnu_arm_embedded.html · develop/toolchains/gnu_arm_embedded.rst 공식 원문 ↗

Zephyr 3.7.0 · Develop · Toolchains · Arm GCC

GNU Arm Embedded

GNU Arm Embedded 설치 경로를 등록하고 Linux·macOS·Windows에서 값을 검증합니다.

Official pathdevelop/toolchains/gnu_arm_embedded.html
Source filedevelop/toolchains/gnu_arm_embedded.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

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

Part 1

요약·해설

GNU Arm Embedded 다운로드와 gnuarmemb variant, 설치 경로 확인, Windows 경로, macOS Gatekeeper와 비공식 Homebrew 대안을 설명합니다.

Variant

gnuarmemb

Path

GNUARMEMB_TOOLCHAIN_PATH

OS

Linux · macOS · Windows

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 C243231C9A04A7BEF22C6F843BD3A6BE9A6D72318EBDA9C8346F0220579E6596
.. _toolchain_gnuarmemb:

GNU Arm Embedded
################

#. Download and install a `GNU Arm Embedded`_ build for your operating system
   and extract it on your file system.

   .. note::

      On Windows, we'll assume for this guide that you install into the directory
      :file:`C:\\gnu_arm_embedded`. You can also choose the default installation
      path used by the ARM GCC installer, in which case you will need to adjust the path
      accordingly in the guide below.

   .. warning::

      On macOS Catalina or later you might need to :ref:`change a security
      policy <mac-gatekeeper>` for the toolchain to be able to run from the
      terminal.

#. :ref:`Set these environment variables <env_vars>`:

   - Set :envvar:`ZEPHYR_TOOLCHAIN_VARIANT` to ``gnuarmemb``.
   - Set :envvar:`GNUARMEMB_TOOLCHAIN_PATH` to the toolchain installation
     directory.

#. To check that you have set these variables correctly in your current
   environment, follow these example shell sessions (the
   :envvar:`GNUARMEMB_TOOLCHAIN_PATH` values may be different on your system):

   .. code-block:: console

      # Linux, macOS:
      $ echo $ZEPHYR_TOOLCHAIN_VARIANT
      gnuarmemb
      $ echo $GNUARMEMB_TOOLCHAIN_PATH
      /home/you/Downloads/gnu_arm_embedded

      # Windows:
      > echo %ZEPHYR_TOOLCHAIN_VARIANT%
      gnuarmemb
      > echo %GNUARMEMB_TOOLCHAIN_PATH%
      C:\gnu_arm_embedded

   .. warning::

      On macOS, if you are having trouble with the suggested procedure, there is an unofficial package on brew that might help you.
      Run ``brew install gcc-arm-embedded`` and configure the variables

      - Set :envvar:`ZEPHYR_TOOLCHAIN_VARIANT` to ``gnuarmemb``.
      - Set :envvar:`GNUARMEMB_TOOLCHAIN_PATH` to the brew installation directory (something like ``/usr/local``)

.. _GNU Arm Embedded: https://developer.arm.com/open-source/gnu-toolchain/gnu-rm

Part 3

한국어 전문 번역

GNU Arm Embedded 설정

  1. 운영체제에 맞는 GNU Arm Embedded build를 내려받아 file system에 풉니다.
  2. 환경 변수 설정 안내에 따라 ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb으로 설정하고 GNUARMEMB_TOOLCHAIN_PATH를 설치 directory로 지정합니다.
  3. Shell에서 두 변수의 값을 출력해 실제 설치 위치와 일치하는지 확인합니다.

Linux, macOS와 Windows에서 설정을 확인하는 예:

# Linux, macOS:
$ echo $ZEPHYR_TOOLCHAIN_VARIANT
gnuarmemb
$ echo $GNUARMEMB_TOOLCHAIN_PATH
/home/you/Downloads/gnu_arm_embedded

# Windows:
> echo %ZEPHYR_TOOLCHAIN_VARIANT%
gnuarmemb
> echo %GNUARMEMB_TOOLCHAIN_PATH%
C:\gnu_arm_embedded

macOS에서 권장 절차가 동작하지 않으면 비공식 Homebrew package인 gcc-arm-embedded가 도움이 될 수 있습니다. brew install gcc-arm-embedded 후 ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb과 GNUARMEMB_TOOLCHAIN_PATH를 brew 설치 directory, 예를 들어 /usr/local로 설정합니다.

Source

출처

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