forked from achamaikin/CCSModuleSW30Web
Standardize .gitignore and untrack build/IDE artifacts; keep firmware images only.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+84
-51
@@ -1,63 +1,96 @@
|
||||
# macOS
|
||||
.DS_Store
|
||||
**/.DS_Store
|
||||
# =============================================================================
|
||||
# STM32 / ARM GCC / STM32CubeIDE — standardized firmware .gitignore
|
||||
# Track: sources + final firmware images (*.elf *.bin *.hex *.srec)
|
||||
# Ignore: build intermediates, IDE noise, logs, captures, backups
|
||||
#
|
||||
# NOTE: Only root /Debug /Release /Build are build dirs.
|
||||
# Do NOT use **/Debug — on Windows (core.ignorecase) that also matches
|
||||
# source folders like Libs/**/DEBUG/.
|
||||
# =============================================================================
|
||||
|
||||
# Temporary/editor files
|
||||
*.swp
|
||||
*.swo
|
||||
*~
|
||||
*.tmp
|
||||
*.bak
|
||||
# -----------------------------------------------------------------------------
|
||||
# Build dirs (project root only): ignore all, then re-include firmware images
|
||||
# -----------------------------------------------------------------------------
|
||||
/Debug/*
|
||||
!/Debug/
|
||||
/Release/*
|
||||
!/Release/
|
||||
/Build/*
|
||||
!/Build/
|
||||
|
||||
# STM32CubeIDE build intermediates
|
||||
Debug/**/*.o
|
||||
Debug/**/*.d
|
||||
Debug/**/*.su
|
||||
Debug/**/*.cyclo
|
||||
Debug/**/*.mk
|
||||
Debug/**/*.lst
|
||||
Debug/**/*.log
|
||||
Debug/**/*.tmp
|
||||
Debug/**/*.a
|
||||
Debug/**/*.obj
|
||||
|
||||
Release/**/*.o
|
||||
Release/**/*.d
|
||||
Release/**/*.su
|
||||
Release/**/*.cyclo
|
||||
Release/**/*.mk
|
||||
Release/**/*.lst
|
||||
Release/**/*.log
|
||||
Release/**/*.tmp
|
||||
Release/**/*.a
|
||||
Release/**/*.obj
|
||||
|
||||
# Generic C/C++ intermediates
|
||||
# -----------------------------------------------------------------------------
|
||||
# Object / dependency / analysis outputs (any path)
|
||||
# -----------------------------------------------------------------------------
|
||||
*.o
|
||||
*.obj
|
||||
*.d
|
||||
*.su
|
||||
*.gch
|
||||
*.pch
|
||||
*.ilk
|
||||
*.exp
|
||||
*.idb
|
||||
*.pdb
|
||||
*.dSYM/
|
||||
*.cyclo
|
||||
|
||||
# Preserve firmware artifacts in git
|
||||
!*.hex
|
||||
!*.bin
|
||||
!*.srec
|
||||
!*.elf
|
||||
# -----------------------------------------------------------------------------
|
||||
# Generated make fragments (CubeIDE)
|
||||
# -----------------------------------------------------------------------------
|
||||
*.mk
|
||||
makefile
|
||||
Makefile
|
||||
objects.list
|
||||
objects.mk
|
||||
sources.mk
|
||||
subdir.mk
|
||||
|
||||
# Eclipse local workspace metadata
|
||||
.metadata/
|
||||
# -----------------------------------------------------------------------------
|
||||
# Linker listings (not needed in repo)
|
||||
# -----------------------------------------------------------------------------
|
||||
*.map
|
||||
*.list
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Backups / temp
|
||||
# -----------------------------------------------------------------------------
|
||||
**/Backup/
|
||||
*.bak
|
||||
*.tmp
|
||||
*.swp
|
||||
*.swo
|
||||
*~
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# IDE / tooling (local machine)
|
||||
# -----------------------------------------------------------------------------
|
||||
.settings/
|
||||
.mxproject
|
||||
.externalToolBuilders/
|
||||
|
||||
# Optional local launch configs
|
||||
.metadata/
|
||||
.idea/
|
||||
*.launch
|
||||
*.code-workspace
|
||||
|
||||
# VS Code local settings
|
||||
.vscode/
|
||||
# -----------------------------------------------------------------------------
|
||||
# Logs / analyzer captures
|
||||
# -----------------------------------------------------------------------------
|
||||
log.txt
|
||||
log*.txt
|
||||
*.log
|
||||
*.asc
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# OS junk
|
||||
# -----------------------------------------------------------------------------
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
# =============================================================================
|
||||
# Keep final firmware images under root build dirs
|
||||
# =============================================================================
|
||||
!/Debug/*.elf
|
||||
!/Debug/*.bin
|
||||
!/Debug/*.hex
|
||||
!/Debug/*.srec
|
||||
!/Release/*.elf
|
||||
!/Release/*.bin
|
||||
!/Release/*.hex
|
||||
!/Release/*.srec
|
||||
!/Build/*.elf
|
||||
!/Build/*.bin
|
||||
!/Build/*.hex
|
||||
!/Build/*.srec
|
||||
|
||||
Reference in New Issue
Block a user