← スキル一覧に戻る

vela-build
by XuNeo
⭐ 6🍴 0📅 2026年1月21日
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
| Type | Location | Build Method |
|---|---|---|
| NuttX/Board | nuttx/boards/ | CMake+Ninja (preferred) or Makefile |
| Vela-Specific | vendor/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 Type | Output Directory | Binary Location |
|---|---|---|
| CMake | build/ (configurable) | build/nuttx |
| Makefile | nuttx/ | nuttx/nuttx |
| Vela | out/<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 -Lfor NuttX orlunchmenu for Vela - Build failure: Check
m menuconfigfor config issues - Missing tools: Install cmake, ninja, or make
- Missing build/envsetup.sh: Remove stale
build/dir and runrepo 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
レビュー
💬
レビュー機能は近日公開予定です