スキル一覧に戻る
XuNeo

vela-build

by XuNeo

6🍴 0📅 2026年1月21日
GitHubで見るManusで実行

SKILL.md


name: vela-build description: Build Vela RTOS (NuttX-based) with automatic detection of NuttX and Vela-specific targets. Supports CMake+Ninja, Makefile, and Vela envsetup build system (lunch + m). compatibility: Requires cmake, ninja, or make. Linux/macOS environment.

Vela Build Skill

Build Vela RTOS with automatic detection of target type and appropriate build method.

Target Types

TypeLocationBuild Method
NuttX/Boardnuttx/boards/CMake+Ninja (preferred) or Makefile
Vela-Specificvendor/xxx/envsetup (lunch + m)

Quick Start

# NuttX target (CMake)
cmake -Bbuild -GNinja -DBOARD_CONFIG=qemu-armv8a:nsh_smp nuttx
ninja -C build

# NuttX target (Makefile)
cd nuttx && ./tools/configure.sh -l <board>:<config> && make -j$(nproc)

# Vela target
source build/envsetup.sh
lunch vendor/xx-board/configs/ap
m

Build Workflow

1. Detect Target Type

# Vela target: starts with vendor/
if [[ "$TARGET" == vendor/* ]]; then
    BUILD_TYPE="vela"
# NuttX target: exists in nuttx/boards/
elif [[ -d "nuttx/boards/*/$TARGET" ]]; then
    BUILD_TYPE="nuttx"
fi

2. Build

NuttX (CMake - preferred):

cmake -B{OUTDIR} -GNinja -DBOARD_CONFIG={BOARD}:{CONFIG} nuttx
ninja -C {OUTDIR}

NuttX (Makefile):

cd nuttx
./tools/configure.sh -l {BOARD}:{CONFIG}
make -j$(nproc)

Vela:

source build/envsetup.sh
lunch vendor/xx-board/configs/ap
m

3. Common Vela Commands

m menuconfig      # Configure
m savedefconfig   # Save config changes
m distclean       # Clean all

Output Locations

Build TypeOutput DirectoryBinary Location
CMakebuild/ (configurable)build/nuttx
Makefilenuttx/nuttx/nuttx
Velaout/<vendor>_<board>_<config>/out/<vendor>_<board>_<config>/vela_xx.elf

Finding Build Targets

NuttX targets: Use ./tools/configure.sh -L to find valid BOARD:CONFIG:

cd nuttx
./tools/configure.sh -L | grep <keyword>

Vela targets: Use lunch menu interactively or browse vendor/ directory.

Error Handling

  • Target not found: Use ./tools/configure.sh -L for NuttX or lunch menu for Vela
  • Build failure: Check m menuconfig for config issues
  • Missing tools: Install cmake, ninja, or make
  • Missing build/envsetup.sh: Remove stale build/ dir and run repo sync build

References

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です