Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Building a Sample Application Example 간단한 응용 예제 빌드하기


1. Go to Open the project 's make directorywith VSCode by typing the following command.
    프로젝트의 메이크 디렉토리로 이동한다.

Code Block
languagetext
cd ubiworks
cd make

2. Configure and build.
    구성 및 빌드한다.

다음 명령을 입력해 브이에스코드로 프로젝트를 연다.

  • Working directory 작업 디렉토리: "<project directory>/make<my workspace directory>"
Code Block
languagetext
make CONFIG_DIR=../library/ubinos/app CONFIG_NAME=helloworld_mt_nrf52840dk all

If the make variables "CONFIG_DIR" and "CONFIG_NAME" are not specified, values in the file "Makefile" are used.
The make target "all" performs make target "config" and "build" sequentially.
The make target "config" configures the project with the configuration specified by the variables "CONFIG_DIR" and "CONFIG_NAME".
The make target "build" builds the project. If the build is completed successfully, the result is created in the output directory "output/<config name>".
A list of available configurations can be found in the "app" directory in the project or in the library.

...

The make variables "CONFIG_DIR" and "LIBRARY_DIR" can contain only English characters. It can not contain spaces. 

메이크 변수 "CONFIG_DIR"과 "LIBRARY_DIR"는 영문자만 포함할 수 있다. 공백은 포함할 수 없다.

...

다음 명령으로 현재 구성 정보 및 사용 가능한 메이크 타겟 목록을 확인할 수 있다.

Code Block
languagetext
make helpcode ubiworks


2. Select configuration by selecting the following menu

    다음 메뉴를 선택해 구성을 선택한다.

  • VSCode → Terminal → Run Build Task...
    • make xsel
      • ubinos - hello_world_nrf52840dk
      • Select


2. Configure and build by selecting the following menu

    다음 메뉴를 선택해 구성 및 빌드한다.

  • VSCode → Terminal → Run Build Task...
    • make all