diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-03-11 14:52:37 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-03-11 14:52:37 +0100 |
commit | 9087ece97c20d76359fb23cfd7a0f13552c1f2fd (patch) | |
tree | d9144191ed331346c0f5538b1d17f4a6ed636761 | |
parent | 7aa2d746b76a354daedd4c8a7b4d8c15b1805b21 (diff) | |
download | yosys-9087ece97c20d76359fb23cfd7a0f13552c1f2fd.tar.gz yosys-9087ece97c20d76359fb23cfd7a0f13552c1f2fd.tar.bz2 yosys-9087ece97c20d76359fb23cfd7a0f13552c1f2fd.zip |
OSX compatible creation of stdcells.inc, using code from github.com/Siesh1oo/yosys
(see https://github.com/cliffordwolf/yosys/pull/28)
-rw-r--r-- | passes/techmap/Makefile.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/passes/techmap/Makefile.inc b/passes/techmap/Makefile.inc index ae1ebbb56..85d580ce8 100644 --- a/passes/techmap/Makefile.inc +++ b/passes/techmap/Makefile.inc @@ -11,8 +11,9 @@ GENFILES += passes/techmap/stdcells.inc passes/techmap/stdcells.inc: techlibs/common/stdcells.v echo "// autogenerated from $<" > $@.new - od -v -td1 -w1 $< | awk 'BEGIN { print "static char stdcells_code[] = {"; } $$2 != "" { print $$2 ","; } \ - END { print 0 "};"; }' | fmt >> $@.new + echo "static char stdcells_code[] = {" >> $@.new + od -v -td1 -An $< | $(SED) -e 's/[0-9][0-9]*/&,/g' >> $@.new + echo "0};" >> $@.new mv $@.new $@ passes/techmap/techmap.o: passes/techmap/stdcells.inc |