sifive / freedom

Source files for SiFive's Freedom platforms
Apache License 2.0
1.11k stars 284 forks source link

Make verilog fails on OSX #2

Closed impedimentToProgress closed 7 years ago

impedimentToProgress commented 7 years ago

sed -r 's/(([A-Za-z0-9]+),([A-Za-z0-9]+))/`define \1 \2/' /Users/maXXXX/Desktop/sifive/builds/u500vc707devkit/sifive.freedom.unleashed.u500vc707devkit.U500VC707DevKitConfig.prm >> /Users/maXXXX/Desktop/sifive/builds/u500vc707devkit/sifive.freedom.unleashed.u500vc707devkit.U500VC707DevKitConfig.vh sed: illegal option -- r usage: sed script [-Ealn] [-i extension] [file ...] sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...] make: *** [/Users/maXXXX/Desktop/sifive/builds/u500vc707devkit/sifive.freedom.unleashed.u500vc707devkit.U500VC707DevKitConfig.vh] Error 1

wumpus commented 7 years ago

http://stackoverflow.com/questions/30003570/how-to-use-gnu-sed-on-mac-os-x

richardxia commented 7 years ago

Thanks for reporting this. While we probably won't guarantee 100% support for OS X (most FPGA synthesis tools don't support it), I looked into this particular case and it turns out that the .prm file referenced in the sed command is deprecated in rocket-chip anyway, so I was able to remove it altogether.