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

Zephyr 3.7.0 · Develop · Toolchains · ARC

DesignWare ARC MWDT

MetaWare compiler와 Zephyr SDK의 GNU·host tool을 결합해 ARC build 환경을 구성합니다.

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

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

Part 1

요약·해설

ARC MWDT 설치, 보조 도구용 Zephyr SDK, arcmwdt variant와 ARCMWDT_TOOLCHAIN_PATH, METAWARE_ROOT 기반 경로와 자동 탐지를 설명합니다.

Compiler

ARC MWDT

Support

Zephyr SDK

Path

METAWARE_ROOT

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 F8F2231966852C71760002A061B5B1817DFD9E93D2BF22EF1E3B26FDCA3FF386
.. _toolchain_designware_arc_mwdt:

DesignWare ARC MetaWare Development Toolkit (MWDT)
##################################################

#. You need to have `ARC MWDT <https://www.synopsys.com/dw/ipdir.php?ds=sw_metaware>`_ installed on
   your host.

#. You need to have :ref:`Zephyr SDK <toolchain_zephyr_sdk>` installed on your host.

   .. note::
      A Zephyr SDK is used as a source of tools like device tree compiler (DTC), QEMU, etc...
      Even though ARC MWDT toolchain is used for Zephyr RTOS build, still the GNU preprocessor & GNU
      objcopy might be used for some steps like device tree preprocessing and ``.bin`` file
      generation. We used Zephyr SDK as a source of these ARC GNU tools as well.
      To setup ARC GNU toolchain please use SDK Bundle (Full or Minimal) instead of manual installation
      of separate tarballs. It installs and registers toolchain and host tools in the system,
      that allows you to avoid toolchain related issues while building Zephyr.

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

   - Set :envvar:`ZEPHYR_TOOLCHAIN_VARIANT` to ``arcmwdt``.
   - Set :envvar:`ARCMWDT_TOOLCHAIN_PATH` to the toolchain installation directory. MWDT installation
     provides :envvar:`METAWARE_ROOT` so simply set :envvar:`ARCMWDT_TOOLCHAIN_PATH` to
     ``$METAWARE_ROOT/../`` (Linux) or ``%METAWARE_ROOT%\..\`` (Windows).

   .. tip::
      If you have only one ARC MWDT toolchain version installed on your machine you may skip setting
      :envvar:`ARCMWDT_TOOLCHAIN_PATH` - it would be detected automatically.

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

   .. code-block:: console

      # Linux:
      $ echo $ZEPHYR_TOOLCHAIN_VARIANT
      arcmwdt
      $ echo $ARCMWDT_TOOLCHAIN_PATH
      /home/you/ARC/MWDT_2023.03/

      # Windows:
      > echo %ZEPHYR_TOOLCHAIN_VARIANT%
      arcmwdt
      > echo %ARCMWDT_TOOLCHAIN_PATH%
      C:\ARC\MWDT_2023.03\

Part 3

한국어 전문 번역

ARC MWDT 설정

  1. Host에 ARC MetaWare Development Toolkit을 설치합니다.
  2. Zephyr SDK도 host에 설치합니다.
  3. 환경 변수 설정 안내에 따라 ZEPHYR_TOOLCHAIN_VARIANT=arcmwdt으로 설정하고 ARCMWDT_TOOLCHAIN_PATH를 MWDT 설치 directory로 지정합니다.

METAWARE_ROOT가 MWDT 설치 과정에서 제공되므로 Linux에서는 $METAWARE_ROOT/../, Windows에서는 %METAWARE_ROOT%\..\를 ARCMWDT_TOOLCHAIN_PATH로 사용할 수 있습니다. 설치된 MWDT version이 하나뿐이면 이 변수는 생략해도 자동 탐지됩니다.

현재 환경의 값을 확인하는 Linux와 Windows 예:

# Linux:
$ echo $ZEPHYR_TOOLCHAIN_VARIANT
arcmwdt
$ echo $ARCMWDT_TOOLCHAIN_PATH
/home/you/ARC/MWDT_2023.03/

# Windows:
> echo %ZEPHYR_TOOLCHAIN_VARIANT%
arcmwdt
> echo %ARCMWDT_TOOLCHAIN_PATH%
C:\ARC\MWDT_2023.03\

Source

출처

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