File tree Expand file tree Collapse file tree 3 files changed +22
-7
lines changed
include/CMAKE_fix/PATCHED_vpr_latest Expand file tree Collapse file tree 3 files changed +22
-7
lines changed Original file line number Diff line number Diff line change @@ -314,7 +314,7 @@ set(IPO_LINK_WARN_SUPRESS_FLAGS " ")
314
314
add_custom_target (build_vpr_latest )
315
315
add_custom_command (
316
316
TARGET build_vpr_latest
317
- COMMAND bash build_vpr_latest.sh
317
+ COMMAND bash build_vpr_latest.sh ${PATCH_DIR} /CMAKE_fix/PATCHED_vpr_latest/CMakeLists.txt
318
318
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /vpr_latest
319
319
)
320
320
Original file line number Diff line number Diff line change @@ -411,9 +411,9 @@ endif()
411
411
412
412
add_subdirectory (libs ) #libs/CMakeLists.txt handles adding warnings flags to non-external libraries
413
413
414
- if (${WITH_PARMYS} )
415
- add_subdirectory (parmys )
416
- endif ()
414
+ # if(${WITH_PARMYS})
415
+ # add_subdirectory(parmys)
416
+ # endif()
417
417
418
418
#Add the various tools
419
419
add_compile_options (${WARN_FLAGS} ) #Add warn flags for VTR tools
Original file line number Diff line number Diff line change @@ -10,12 +10,21 @@ export CPU_CORES=${CPU_CORES:="$hw_num_cores"}
10
10
printf " CPU_CORES= $CPU_CORES hw_num_cores= $hw_num_cores \n"
11
11
12
12
vpr_latest_bin_dir=" $cur_dir /vtr/build/vpr"
13
- printf " \n vpr_latest_bin_dir= $vpr_latest_bin_dir \n\n"
14
13
14
+ mkdir -p vtr
15
+ pushd vtr
16
+ ls -1 Makefile || git submodule update --init --recursive
17
+ popd
15
18
16
- cd vtr && make -j $CPU_CORES
17
-
19
+ # copy the patched CMakefile
20
+ # include/CMAKE_fix/PATCHED_vpr_latest/CMakeLists.txt
21
+ if (( $# > 0 )) ; then
22
+ cp -v $1 vtr
23
+ fi
18
24
25
+ # do make in vtr
26
+ echo
27
+ cd vtr && make -j $CPU_CORES
19
28
vtr_make_status=$?
20
29
21
30
printf " \n vtr_make_status= $vtr_make_status \n"
@@ -27,6 +36,12 @@ file_status=$?
27
36
if (( $file_status == 0 )) ; then
28
37
printf " \ncopying to vpr_latest..\n"
29
38
cp -v " $vpr_latest_bin_dir /vpr" " $cur_dir /vpr_latest"
39
+ echo " build_vpr_latest SUCCEEDED"
40
+ else
41
+ echo
42
+ echo " build_vpr_latest: vpr binary not found: $vpr_latest_bin_dir /vpr"
43
+ echo " build_vpr_latest FAILED"
44
+ echo
30
45
fi
31
46
32
47
printf " \n done building vpr_latest in $cur_dir \n\n"
You can’t perform that action at this time.
0 commit comments