knob_os/.gitignore

56 lines
1.8 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# ============================================================
# KnobOS 固件仓库 .gitignore
# 原则:只收「人写的源码 + 生成后不能再生的资源」,
# 编译产物、缓存、系统垃圾一律不入库。
# ============================================================
# ---------- Arduino 编译产物 ----------
# build.sh 用 --build-path build/.cache 做增量编译,
# --output-dir build 导出 bin/elf/map/partition 表;两者都是纯产物,体积上百 MB
build/
build_slave/
# 中断过的缓存现场(build.sh clean 会把旧缓存挪成 .cache.broken-<时间>)
build*.broken-*
*.broken-*
# ---------- 固件二进制 ----------
# release/ 里是历史版本的 .bin(每个 ~2.7MB)。
# 想给仓库瘦身就不入库,用 git tag + 服务端/Release 附件分发;
# 要让历史固件跟着仓库走的话,把下面一行注释掉即可。
release/*.bin
# ---------- 串口调试/截图临时产物 ----------
*.log
shots/
screenshot*.png
serial_*.txt
# ---------- Python 工具(tools/*.py)----------
__pycache__/
*.py[cod]
.venv/
venv/
# ---------- 编辑器 / IDE ----------
.vscode/
.idea/
*.swp
*.swo
*~
# ---------- macOS ----------
.DS_Store
._*
.Spotlight-V100
.Trashes
.fseventsd
# ============================================================
# 注意:以下文件是「生成物」但故意保留入库,别加进忽略列表
# - src/assets/lv_font_*.c 由 tools/gen_font.sh 生成,但 build.sh 只做
# 字符集覆盖校验、不会重新生成;不入库则新克隆编不过
# (单个 media_16 就有 3.4MB,属必要成本)
# - src/assets/icons.c tools/gen_icons.py 生成,情况同上
# ============================================================