-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DTS overlay files must include full path name #20576
Comments
CONF_FILE supports project-relative file paths so DTC_OVERLAY_FILE should too. I see that Kconfig supports this by running kconfig with an appropriate working directory:
whereas DT uses the binary directory as the working directory.
if we could change the working directory for DT preprocessing without breaking backwards compatiblity or increasing the complexity significantly then we can be consistent with Kconfig and support this for DT as well. |
This is still a problem
|
@jefffhaynes |
CMake handles overlay files inconsistently. My sample directory contains an overlay file:
-rw-rw-r-- 1 pflykt pflykt 204 Nov 8 15:11 frdm_uart2_dts.overlay
But when I run cmake, cc1 does not find the DTS overlay file:
Adding the full path to the command succeeds:
The same thing happens when
DTC_OVERLAY_FILE
is defined inCMakeLists.txt
.Documentation in https://docs.zephyrproject.org/latest/application/index.html#devicetree-overlays is very quiet about including the full path name, and the above handling of DTS overlay files shows inconsistent behavior against project overlay files. All overlay files must be handled in a consistent manner, please fix.
The text was updated successfully, but these errors were encountered: