sel4: prevent stdout/stderr truncation in cmake

Remove the "excellent" idea to re-open /dev/stdout etc. for redirection as
cmake uses open(O_TRUNC) and, thus, truncates log output of outer
redirections.
This commit is contained in:
Christian Helmuth 2024-03-27 08:56:09 +01:00
parent 9971f41f8c
commit f3610dc3a8
2 changed files with 15 additions and 1 deletions

View File

@ -0,0 +1,14 @@
Prevent truncation of stdout/stderr on open(O_TRUNC) in cmake.
--- src/kernel/sel4/config.cmake
+++ src/kernel/sel4/config.cmake
@@ -168,9 +168,6 @@ if(DEFINED KernelDTSList AND (NOT "${KernelDTSList}" STREQUAL ""))
"${device_dest}" --hardware-config "${config_file}" --hardware-schema
"${config_schema}" --yaml --yaml-out "${platform_yaml}" --arch "${KernelArch}"
--addrspace-max "${KernelPaddrUserTop}"
- INPUT_FILE /dev/stdin
- OUTPUT_FILE /dev/stdout
- ERROR_FILE /dev/stderr
RESULT_VARIABLE error
)
if(error)

View File

@ -1 +1 @@
4cbe95411a514cec9492e32455db68d8c82b9766
e6fe0a48d0479e6f7ba8243f3e1e860c7d42407a