cmake: .x generation simplified

Now runs with cmake for Windows. Could not spawn the process reading
from the pipe with the cmake's path formatting.

Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
This commit is contained in:
Marcin Maka 2019-01-25 11:24:34 +01:00 committed by Liam Girdwood
parent c098d091ea
commit 8fe363041b
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ function(sof_add_ld_script binary_name script_name)
endforeach() endforeach()
add_custom_command(OUTPUT ${lds_out} add_custom_command(OUTPUT ${lds_out}
COMMAND cat ${lds_in} | ${CMAKE_C_COMPILER} -E -P ${iflags} - > ${lds_out} COMMAND ${CMAKE_C_COMPILER} -E -P ${iflags} - < ${lds_in} > ${lds_out}
DEPENDS ${lds_in} ${LINK_DEPS} genconfig DEPENDS ${lds_in} ${LINK_DEPS} genconfig
WORKING_DIRECTORY ${PROJECT_BINARY_DIR} WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
COMMENT "Generating linker script: ${lds_out}" COMMENT "Generating linker script: ${lds_out}"