2023-01-06 07:45 AM
I've written a script that basically builds everything based on this wiki - wiki.st.com/stm32mpu/wiki/How_to_compile_the_device_tree_with_the_Developer_Package#Updating_the_kernel_device_tree
With the script I can successfully build from the existing DK2 DTS files but not my custom DTS files.
2023-01-06 12:06 PM
Grep'ing for stm32mp15-m4-srm.dtsi I'm finding that it exists only in two places: the Linux kernel source DTS directory and U-Boot source DTS directory. Not sure if it should exist elsewhere though. I'm going to try copying it over to the OPTEE source DTS directory to see if that resolves the issue.
2023-01-06 12:11 PM
Nope, that failed miserably. Generates a parsing error during OPTEE build now. Back to square one.
2023-01-06 02:12 PM
Well I tried a couple other things and have broken it enough that now it gives this error
make[1]: *** No rule to make target 'core/arch/arm/dts/stm32mp15-m4-srm.dtsi', needed by '/home/...
Looking like its time to just delete the whole SDK and start over
2023-01-09 10:24 AM
Copied a couple m4-srm files into the optee directory which resolved the issue.