Versions Compared

Key

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

...

간단한 응용 예제 빌드하기

1. Go to the project's make directory.
    프로젝트의 메이크 디렉토리로 이동한다.

Code Block
languagetext
cd ubinos
cd make

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

  • Working directory 작업 디렉토리: "<project directory>/make"
Code Block
languagetext
make all

...

메이크 타겟 "all"은 메이크 타겟 "config"와 "build"를 순차적으로 실행한다.

The make target "config" configures the project with the configuration specified by the variable "CONFIG_NAME" in the file "Makefile".

메이크 타겟 "config"는 파일 "Makefile"의 변수 "CONFIG_NAME"이 지정하는 구성으로 프로젝트를 구성한다.

The default value of the variable "CONFIG_NAME" is "helloworld_mt_nrf52dk", which is a configuration that creates an executable binary file containing the application "helloworld_mt" running on the target board "nRF52 DK".

변수 "CONFIG_NAME"의 기본 값은 "helloworld_mt_nrf52dk"이며, 이는 타겟 보드 "nRF52 DK"를 위한 응용 "helloworld_mt"를 포함한 실행 이진 파일을 생성하는 구성이다. 

The make target "build" builds the project. If the build is completed normally, the result is created in the output directory "output/<config name>".

메이크 타겟 "build"는 프로젝트를 빌드한다. 빌드가 정상적으로 완료되면 결과물 디렉토리 "output/<config name>"에 결과물이 생성된다.

A list of available configuration names can be found in the file "batch.mk".

...

You can also specify the configuration name in the CLI as follows.

다음과 같이 CLI에서 구성 이름을 지정할 수도 있다.

Code Block
languagetext
make all CONFIG_NAME=<config name>

...


메이크 변수 "CONFIG_DIR"과 "LIBRARY_DIR" 도 파일 "Makefile" 또는 CLI에서  지정할 수 있다. 이 변수는 영문자만 포함할 수 있다. 공백은 포함할 수 없다.

...

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

...

languagetext

...

이 과정은 브이에스코드에서 수행한다.


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

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


4. 다음 메뉴를 선택해 소스 트리를 선택한 구성으로 빌드한다.

  • VSCode → Menu → Terminal → Run Build Task...
    • make rebuildd