# Zephyr Module .gitignore
# For Æther Stack - Zephyr RTOS LoRa Mesh Networking Module

## Zephyr Build Artifacts
build/
build-*/
**/build/
**/build-*/

# West workspace files (if this repo is used as a workspace)
.west/
modules/
bootloader/
tools/

# Zephyr configuration cache
.config
.config.old
autoconf.h
zephyr/.config
**/zephyr/.config

# Compilation artifacts
*.o
*.a
*.elf
*.hex
*.bin
*.map
*.lst
*.dis
*.dts.pre.tmp
*.d

# CMake generated files
CMakeFiles/
CMakeCache.txt
cmake_install.cmake
CTestTestfile.cmake
Makefile
compile_commands.json

# Ninja build files
build.ninja
.ninja_deps
.ninja_log

# Generated device tree files
zephyr.dts
zephyr.dts.pre.tmp
devicetree_unfixed.h
devicetree_fixups.h
**/zephyr.dts
**/devicetree_*.h

# Kconfig generated files
.config.sysbuild
**/autoconf.h

# Documentation builds
docs/_build/
docs/build/
doc/_build/
doc/build/

# Python cache
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
env/
venv/
.venv/
pip-log.txt
pip-delete-this-directory.txt

# IDEs and editors
.vscode/
.idea/
*.swp
*.swo
*~
.DS_Store
Thumbs.db

# Tags files
tags
TAGS
.tags
.ctags

# Temporary files
*.tmp
*.temp
*.log
*.bak
*.orig

# Test artifacts
test-results/
coverage/
*.gcda
*.gcno
*.gcov

# Flash/debug artifacts
openocd.log
.gdbinit
core

# Platform-specific ignores

## ESP32/ESP-IDF
sdkconfig
sdkconfig.old
sdkconfig.defaults.esp32*

## Nordic nRF
nrf52840_xxaa.ld
**/nrf52840_xxaa.ld

## STM32
*.axf
*.scvd

# Sample application specific
samples/**/build/
samples/**/build-*/

# Distribution/packaging
.eggs/
*.egg-info/
dist/
downloads/
wheels/
*.egg

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Jupyter Notebook
.ipynb_checkpoints

# Environment files
.env
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# nyc test coverage
.nyc_output

# Dependency directories
node_modules/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# Local development files
local/
scratch/
playground/

# Hardware-specific files (if any)
*.jlink
*.segger

# Personal notes and TODO files (keep project TODOs)
NOTES.md
notes.txt
personal-todo.md

# Backup files
*.backup
*~

# Custom build scripts output
scripts/output/
scripts/build/

# Flash images and bootloaders (keep in separate repo)
*.img
bootloader.bin
partition-table.bin

# Mentor Graphics files
*.wdb
*.hier.info

# Simulator files
*.ghw
*.cf

# MCUXpresso IDE files
.metadata/
.recommenders/

# IAR embedded workbench files
*.eww
*.ewp
*.ewd
*.dep

# Keil uVision files
*.uvproj
*.uvprojx
*.uvopt
*.uvoptx

# Atollic TrueSTUDIO files
*.cproject
*.project
.settings/

# Vi/Vim temporary files
.*.swp
.*.swo

# Archive files (unless specifically needed)
*.tar.gz
*.zip
*.7z
*.rar

# Keep these important files (negative patterns)
!README.md
!LICENSE
!CHANGELOG.md
!CONTRIBUTING.md
!.gitkeep
!docs/**/*.md
!samples/**/README.md