Ken Van Hoeylandt 4b6ed871a9
Implemented TactilityKernel and DevicetreeCompiler, updated licenses & copyrights (#452)
**New features**

- Created a devicetree DTS and YAML parser in Python
- Created new modules:
  - TactilityKernel (LGPL v3.0 license)
  - Platforms/PlatformEsp32 (LGPL v3.0 license) 
  - Platforms/PlatformPosix (LGPL v3.0 license)
  - Tests/TactilityKernelTests

Most boards have a placeholder DTS file, while T-Lora Pager has a few devices attached.

**Licenses**

Clarified licenses and copyrights better.

- Add explanation about the intent behind them.
- Added explanation about licenses for past and future subprojects
- Added more details explanations with regards to the logo usage
- Copied licenses to subprojects to make it more explicit
2026-01-24 15:47:11 +01:00

19 lines
674 B
Python

import os
def find_bindings(directory_path: str) -> list[str]:
yaml_files = []
for root, dirs, files in os.walk(directory_path):
for file in files:
if file.endswith(".yaml"):
full_path = os.path.join(root, file)
yaml_files.append(os.path.abspath(full_path))
return yaml_files
def find_all_bindings(directory_paths: list[str]) -> list[str]:
yaml_files = []
for directory_path in directory_paths:
new_paths = find_bindings(directory_path)
if len(new_paths) == 0:
raise Exception(f"No bindings found in {directory_path}")
yaml_files += new_paths
return yaml_files