Skip to content

Commit

Permalink
override VVP_EXECUTABLE from script
Browse files Browse the repository at this point in the history
  • Loading branch information
mmicko committed May 16, 2022
1 parent 409985f commit 0821e6f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions default/scripts/iverilog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ sh autoconf.sh
make DESTDIR=${OUTPUT_DIR} -j${NPROC} install
rm -rf ${OUTPUT_DIR}${INSTALL_PREFIX}/include
rm -rf ${OUTPUT_DIR}${INSTALL_PREFIX}/lib/*.a
sed -i -re 's|^flag:VVP_EXECUTABLE=.*$||g' ${OUTPUT_DIR}${INSTALL_PREFIX}/lib/ivl/vvp.conf
sed -i -re 's|^flag:VVP_EXECUTABLE=.*$||g' ${OUTPUT_DIR}${INSTALL_PREFIX}/lib/ivl/vvp-s.conf
3 changes: 1 addition & 2 deletions scripts/package-darwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ EOT
fi
if [ ! -z "$(basename $binfile | grep iverilog)" ]; then
cat >> $binfile << EOT
sed -i 'bak' 's|^flag:VVP_EXECUTABLE=.*$|flag:VVP_EXECUTABLE=/usr/bin/env '\$release_topdir_abs'/bin/vvp|g' \$release_topdir_abs/lib/ivl/vvp.conf
sed -i 'bak' 's|^flag:VVP_EXECUTABLE=.*$|flag:VVP_EXECUTABLE=/usr/bin/env '\$release_topdir_abs'/bin/vvp|g' \$release_topdir_abs/lib/ivl/vvp-s.conf
set -- "-p" "VVP_EXECUTABLE=\$release_topdir_abs/bin/vvp" "\$@"
EOT
fi
if [ ! -z "$(basename $binfile | grep ghdl)" ]; then
Expand Down
3 changes: 1 addition & 2 deletions scripts/package-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ EOT
fi
if [ ! -z "$(basename $binfile | grep iverilog)" ]; then
cat >> $binfile << EOT
sed -i -re 's|^flag:VVP_EXECUTABLE=.*$|flag:VVP_EXECUTABLE='\$release_topdir_abs'/bin/vvp|g' \$release_topdir_abs/lib/ivl/vvp.conf
sed -i -re 's|^flag:VVP_EXECUTABLE=.*$|flag:VVP_EXECUTABLE='\$release_topdir_abs'/bin/vvp|g' \$release_topdir_abs/lib/ivl/vvp-s.conf
set -- "-p" "VVP_EXECUTABLE=\$release_topdir_abs/bin/vvp" "\$@"
EOT
fi
if [ ! -z "$(strings libexec/$(basename $binfile) | grep ghdl)" ]; then
Expand Down

0 comments on commit 0821e6f

Please sign in to comment.