develop/west/moving-to-west.html · develop/west/moving-to-west.rst 공식 원문 ↗

Zephyr 3.7.0 · Develop · West · Moving to West

기존 Zephyr 환경을 West로 이전하기

기존 저장소를 그대로 보존하면서 Zephyr의 여러 project를 관리하는 West workspace로 옮깁니다.

Official pathdevelop/west/moving-to-west.html
Source filedevelop/west/moving-to-west.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

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

Part 1

요약·해설

OS별 West 설치, 기존 zephyr 저장소 이동, west init -l local manifest 초기화, west update 동기화 순서를 설명합니다.

Install

Linux · Windows · macOS

Workspace

local manifest · .west

Sync

west update · west list

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 C498E0C31B172B3F1E02E5C45A0AA68E52650B306F7F5429B1A2F760D70E7766
.. _moving-to-west:

Moving to West
##############

To convert a "pre-west" Zephyr setup on your computer to west, follow these
steps. If you are starting from scratch, use the :ref:`getting_started`
instead. See :ref:`west-troubleshooting` for advice on common issues.

#. Install west.

   On Linux::

     pip3 install --user -U west

   On Windows and macOS::

     pip3 install -U west

   For details, see :ref:`west-install`.

#. Move your zephyr repository to a new :file:`zephyrproject` parent directory,
   and change directory there.

   On Linux and macOS::

     mkdir zephyrproject
     mv zephyr zephyrproject
     cd zephyrproject

   On Windows ``cmd.exe``::

     mkdir zephyrproject
     move zephyr zephyrproject
     chdir zephyrproject

   The name :file:`zephyrproject` is recommended, but you can choose any name
   with no spaces anywhere in the path.

#. Create a :ref:`west workspace <west-workspace>` using the zephyr
   repository as a local manifest repository::

     west init -l zephyr

   This creates :file:`zephyrproject/.west`, marking the root of your
   workspace, and does some other setup. It will not change the contents of
   the zephyr repository in any way.

#. Clone the rest of the repositories used by zephyr::

     west update

   **Make sure to run this command whenever you pull zephyr.** Otherwise, your
   local repositories will get out of sync. (Run ``west list`` for current
   information on these repositories.)

You are done: :file:`zephyrproject` is now set up to use west.

Part 3

한국어 전문 번역

West로 이전하기

컴퓨터에 이미 있는 "pre-west" Zephyr checkout을 West 방식으로 바꾸려면 아래 순서를 따릅니다. 새로 시작한다면 Zephyr 3.7.0 시작 안내를 사용하고, 문제가 생기면 West 문제 해결을 참고합니다.

  1. West를 설치합니다. Linux에서는 다음 command를 실행합니다.
    pip3 install --user -U west
    Windows와 macOS에서는 다음 command를 실행합니다.
    pip3 install -U west
    자세한 설치 방식은 West 설치를 참고합니다.
  2. 기존 zephyr 저장소를 새 parent directory zephyrproject 아래로 옮기고 그 directory로 이동합니다. Linux와 macOS에서는 다음과 같습니다.
    mkdir zephyrproject
    mv zephyr zephyrproject
    cd zephyrproject
    Windows cmd.exe에서는 다음과 같습니다.
    mkdir zephyrproject
    move zephyr zephyrproject
    chdir zephyrproject
    zephyrproject라는 이름을 권장하지만 path 어디에도 공백이 없다면 다른 이름을 쓸 수 있습니다.
  3. Local zephyr 저장소를 manifest 저장소로 사용해 West workspace를 만듭니다.
    west init -l zephyr
    이 command는 workspace root를 표시하는 zephyrproject/.west를 만들고 필요한 설정을 수행합니다. 기존 zephyr 저장소 내용은 전혀 바꾸지 않습니다.
  4. Zephyr가 사용하는 나머지 저장소를 clone합니다.
    west update
    이후 zephyr를 pull할 때마다 반드시 west update도 실행해야 project 저장소 revision이 manifest와 어긋나지 않습니다. 현재 저장소 상태는 west list로 확인합니다.

이 과정을 마치면 zephyrproject가 West workspace로 준비됩니다.

Source

출처

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