File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,12 +23,11 @@ host_target(gen-crc64be gen-crc64be.c)
2323macro (generate_crctbl proc path name table rows poly trans )
2424 add_custom_command (
2525 TARGET ${proc} POST_BUILD
26- COMMAND bash -c \"
27- mkdir -p ${BFDEV_GENERATED_PATH} /bfdev/crypto &&
28- ${PROJECT_BINARY_DIR} /scripts/${proc}
29- ${name} ${table} ${rows} ${poly} ${trans} >
30- ${BFDEV_GENERATED_PATH} /bfdev/crypto/${path}
31- \"
26+ COMMAND ${CMAKE_COMMAND} -E make_directory
27+ ${BFDEV_GENERATED_PATH} /bfdev/crypto
28+ COMMAND ${PROJECT_BINARY_DIR} /scripts/${proc}
29+ ${name} ${table} ${rows} ${poly} ${trans} >
30+ ${BFDEV_GENERATED_PATH} /bfdev/crypto/${path}
3231 )
3332endmacro ()
3433
Original file line number Diff line number Diff line change @@ -26,11 +26,11 @@ macro(print_type output name)
2626 endif ()
2727endmacro ()
2828
29- if (CMAKE_SYSTEM_NAME MATCHES "Linux|Darwin|GNU" )
29+ if (CMAKE_SYSTEM_NAME MATCHES "Linux|Android| Darwin|GNU" )
3030 set (BFDEV_PORT_TYPE "posix" )
3131endif ()
3232
33- if (CMAKE_SYSTEM_NAME MATCHES "MSYS|CYGWIN" )
33+ if (CMAKE_SYSTEM_NAME MATCHES "Windows| MSYS|CYGWIN" )
3434 set (BFDEV_PORT_TYPE "posix" )
3535endif ()
3636
You can’t perform that action at this time.
0 commit comments