-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
README: include DTS flattening instructions
Adds instructions for flattening DTS files that include C and/or DTSI files.
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,22 @@ | ||
# cmsis-svd-generator | ||
Generates CMSIS-SVD xml files from DTS info and Register templates in the regmaps directory. | ||
|
||
# Generating a compatible DTS file | ||
|
||
Many DTS files are multi-level, and have both C and DSTI includes. | ||
|
||
To flatten the DTS file, one can run the C preprocessor and device tree compiler: | ||
|
||
```bash | ||
# run CPP to handle any C-style includes | ||
|
||
cpp -nostdinc -I include -I arch -undef -x assembler-with-cpp /path/to/input.dts > processed.dts | ||
|
||
# run DTC to handle any DTSI includes | ||
|
||
dtc -I dts -O dts -o output.dts processed.dts | ||
|
||
# finally, run generate-svd.py | ||
|
||
./generate-svd.py -o output.svd -d output.dts | ||
``` |