- Introduced `kicad_cli.sh` for local and Docker-based kicad-cli execution. - Created `schops.py` for schematic operations including ERC, BOM, netlist exports, and bulk edits. - Added README.md for schops with installation and usage instructions. - Included requirements.txt for necessary Python packages. - Implemented rules engine for applying field defaults and renaming nets. - Added tests for rules engine functionality. - Introduced scope guard script to enforce file modification policies based on PR labels. - Created watch script to monitor KiCad files and trigger hardware gate on changes.
31 lines
855 B
Markdown
31 lines
855 B
Markdown
# Compliance (profiles)
|
||
|
||
Ce repo propose **2 profils** sélectionnables :
|
||
|
||
- `prototype` : démonstrateur interne (pas de CE/RED)
|
||
- `iot_wifi_eu` : produit UE Wi‑Fi/BLE (CE/RED + cyber + RoHS/REACH/WEEE)
|
||
|
||
## Changer de profil
|
||
|
||
```bash
|
||
python tools/compliance/use_profile.py prototype
|
||
python tools/compliance/use_profile.py iot_wifi_eu
|
||
```
|
||
|
||
## Valider
|
||
|
||
```bash
|
||
python tools/compliance/validate.py
|
||
```
|
||
|
||
## Intégration KiCad
|
||
|
||
Le gate hardware exporte déjà `erc.json` + `drc.json` via `kicad-cli`.
|
||
Les paramètres DRC de base peuvent être **générés** depuis le profil :
|
||
|
||
```bash
|
||
python tools/hw/drc/generate_custom_rules.py --profile prototype > artifacts/custom_rules_prototype.kicad_dru
|
||
```
|
||
|
||
⚠️ KiCad gère normalement le fichier `.kicad_dru` automatiquement : on utilise ici un **snippet** à coller/importer via Board Setup → Custom Rules.
|