File tree Expand file tree Collapse file tree 3 files changed +30
-17
lines changed Expand file tree Collapse file tree 3 files changed +30
-17
lines changed Original file line number Diff line number Diff line change @@ -307,22 +307,19 @@ add_subdirectory(OpenFPGA)
307
307
set (IPO_LINK_WARN_SUPRESS_FLAGS " " )
308
308
309
309
310
- # Sub-project 'planning' (aka planner)
311
- add_subdirectory (planning )
312
- add_dependencies (planning vpr )
313
-
314
310
# Script to build vpr_latest.
315
311
# We cannot add vpr_latest as cmake dependency because VPR external utilities
316
312
# cmake-targets conflict with OpenFPGA versions of the same targets.
317
- message ( STATUS " \n ------------ \n " )
318
- message ( STATUS "-- begin vpr_latest build script: VPR_LATEST_DEST_DIR= ${VPR_LATEST_DEST_DIR} \n " )
319
- set ( SCRIPT_STATUS 111 )
320
- execute_process (
313
+
314
+ add_custom_target ( build_vpr_latest )
315
+ add_custom_command (
316
+ TARGET build_vpr_latest
321
317
COMMAND bash build_vpr_latest.sh
322
318
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /vpr_latest
323
- RESULT_VARIABLE SCRIPT_STATUS
324
- )
325
- message (STATUS "" )
326
- message (STATUS "-- end vpr_latest build script: SCRIPT_STATUS= ${SCRIPT_STATUS} \n " )
327
- message (STATUS "--------------\n " )
319
+ )
320
+
321
+
322
+ # Sub-project 'planning' (aka planner)
323
+ add_subdirectory (planning )
324
+ add_dependencies (planning vpr build_vpr_latest )
328
325
Original file line number Diff line number Diff line change 1
- static const char * _pln_VERSION_STR = " pln0339 " ;
1
+ static const char * _pln_VERSION_STR = " pln0340 " ;
2
2
3
3
#include " RS/rsEnv.h"
4
4
#include " util/pln_log.h"
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- printf " \n building vpr_latest in $( pwd) \n"
3
+ cur_dir=$( pwd)
4
+ printf " \n building vpr_latest in $cur_dir \n"
4
5
5
6
hw_num_cores=` grep -F " model name" /proc/cpuinfo | wc -l`
6
7
7
8
export CPU_CORES=${CPU_CORES:= " $hw_num_cores " }
8
9
9
- printf " CPU_CORES= $CPU_CORES hw_num_cores= $hw_num_cores \n\n"
10
+ printf " CPU_CORES= $CPU_CORES hw_num_cores= $hw_num_cores \n"
11
+
12
+ vpr_latest_bin_dir=" $cur_dir /vtr/build/vpr"
13
+ printf " \n vpr_latest_bin_dir= $vpr_latest_bin_dir \n\n"
14
+
10
15
11
16
cd vtr && make -j $CPU_CORES
12
17
18
+
13
19
vtr_make_status=$?
14
20
15
21
printf " \n vtr_make_status= $vtr_make_status \n"
16
- printf " \n done building vpr_latest in $( pwd) \n\n"
22
+ printf " vpr_latest_bin_dir= $vpr_latest_bin_dir \n"
23
+
24
+ printf " \n "
25
+ ls -1 " $vpr_latest_bin_dir /vpr"
26
+ file_status=$?
27
+ if (( $file_status == 0 )) ; then
28
+ printf " \ncopying to vpr_latest..\n"
29
+ cp -v " $vpr_latest_bin_dir /vpr" " $cur_dir /vpr_latest"
30
+ fi
31
+
32
+ printf " \n done building vpr_latest in $cur_dir \n\n"
17
33
You can’t perform that action at this time.
0 commit comments