Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 19 Next »

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


1. 메이크 디렉토리("<project base directory>/make")로 이동한다.

cd ubinos/make


2. 구성 및 빌드한다.

make all


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

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

변수 "CONFIG_NAME"의 기본 값은 "helloworld_nrf52dk_baremetal"이며, 이는 OS kernel를 사용하지 않는 nRF52 DK 보드를 위한 helloworld 응용을 포함한 실행 이진 파일을 생성하는 구성을 나타낸다.

메이크 타겟 "build"는 프로젝트를 빌드한다.

빌드가 정상적으로 완료되면 결과물 디렉토리("<project base directory>/output/<config name>")에 결과물이 생성된다.


선택 가능한 구성 이름은 파일 "batch.mk"에서 확인할 수 있다.

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

make all CONFIG_NAME=<config name>


다음 명령으로 기본 구성 정보 및 사용 가능한 <make target> 목록을 확인할 수 있다.

make help
  • No labels