@@ -78,14 +78,13 @@ if (${WITH_PARMYS})
78
78
79
79
# Synlig integration (manages Surelog and UHDM internally)
80
80
81
- # Synlig integration (manages Surelog and UHDM internally)
82
81
set (SYNLIG_PREFIX_DIR "${CMAKE_BINARY_DIR} /synlig" )
83
82
set (SYNLIG_SOURCE_DIR "${SYNLIG_PREFIX_DIR} /src/synlig" )
84
-
83
+
85
84
# Clone Synlig repository and ensure submodules are synced before building
86
85
ExternalProject_Add (synlig
87
86
PREFIX ${SYNLIG_PREFIX_DIR}
88
-
87
+
89
88
# Clone the Synlig repository
90
89
GIT_REPOSITORY https://github.com/chipsalliance/synlig.git
91
90
GIT_TAG main
@@ -100,11 +99,6 @@ if (${WITH_PARMYS})
100
99
# Disable submodule update command (not needed, since it's included in cloning)
101
100
UPDATE_COMMAND ""
102
101
103
- # Ensure build directory exists before building
104
- ##BUILD_COMMAND ${MAKE_PROGRAM} -C ${SYNLIG_SOURCE_DIR} install DESTDIR=${CMAKE_BINARY_DIR}/bin/synlig_install -j4
105
- ##INSTALL_COMMAND ""
106
- ##CONFIGURE_COMMAND ""
107
-
108
102
# Pass necessary paths and set environment variables
109
103
CMAKE_CACHE_ARGS
110
104
"-DCMAKE_BUILD_TYPE:STRING=Release"
@@ -113,17 +107,19 @@ if (${WITH_PARMYS})
113
107
"-DUHDM_INSTALL_DIR=${CMAKE_BINARY_DIR} "
114
108
"-DBUILD_DIR=${CMAKE_BINARY_DIR} /synlig-build"
115
109
"-DEXPORT_PATH=${CMAKE_BINARY_DIR} /synlig_install/usr/local/bin:$ENV{PATH} "
110
+ "-DCMAKE_JOB_POOLS:STRING=compile=1;link=1"
116
111
117
112
LOG_BUILD ON
118
113
LOG_UPDATE ON
119
114
LOG_INSTALL ON
120
115
LOG_CONFIGURE OFF
121
116
LOG_OUTPUT_ON_FAILURE ON
122
117
123
- # Ensure dependencies like Yosys are built first
124
- DEPENDS yosys
118
+ # Ensure dependencies like Yosys and Surelog are built first
119
+ DEPENDS yosys
125
120
)
126
121
122
+
127
123
endif ()
128
124
endif ()
129
125
0 commit comments