diff --git a/build/avr b/build/avr index 9657a27..2e4de29 100755 --- a/build/avr +++ b/build/avr @@ -172,8 +172,10 @@ then run_yosys="false" else echo "frontend" >> $OUT_PATH/fconfig - cp -R $BM_PATH/$fname $OUT_PATH/$fname echo "yosys" >> $OUT_PATH/fconfig + + cp -R $BM_PATH/$fname $OUT_PATH/$fname + run_yosys="true" fi @@ -186,7 +188,7 @@ then YOSYS_CMD=$OUT_PATH/yosys.tcl rm -f $YOSYS_CMD - echo "yosys read_verilog -noopt -nolatches -Idir=$OUT_PATH/ -sv $OUT_PATH/$fname;" >> $YOSYS_CMD + echo "yosys read_verilog -noopt -nolatches -I $BM_PATH -sv $OUT_PATH/$fname;" >> $YOSYS_CMD if [ $AUTOTOP -eq 1 ] then echo "yosys hierarchy -auto-top;" >> $YOSYS_CMD