From: Clifford Wolf Date: Tue, 11 Mar 2014 13:52:37 +0000 (+0100) Subject: OSX compatible creation of stdcells.inc, using code from github.com/Siesh1oo/yosys X-Git-Tag: yosys-0.3.0~63 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9087ece97c20d76359fb23cfd7a0f13552c1f2fd;p=yosys.git OSX compatible creation of stdcells.inc, using code from github.com/Siesh1oo/yosys (see https://github.com/cliffordwolf/yosys/pull/28) --- 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