mirror of https://github.com/YosysHQ/yosys.git
- passes/techmap/Makefile.inc: POSIX 'od' has no '-w' option. Use '-An' instead. Replace awk by simple shell commands for portability.
This commit is contained in:
parent
876c016904
commit
707b46956e
|
@ -10,10 +10,12 @@ OBJS += passes/techmap/extract.o
|
||||||
GENFILES += passes/techmap/stdcells.inc
|
GENFILES += passes/techmap/stdcells.inc
|
||||||
|
|
||||||
passes/techmap/stdcells.inc: techlibs/common/stdcells.v
|
passes/techmap/stdcells.inc: techlibs/common/stdcells.v
|
||||||
echo "// autogenerated from $<" > $@.new
|
echo "// autogenerated from $<\n" > $@.new
|
||||||
od -v -td1 -w1 $< | awk 'BEGIN { print "static char stdcells_code[] = {"; } $$2 != "" { print $$2 ","; } \
|
echo "static char stdcells_code[] = {" >> $@.new
|
||||||
END { print 0 "};"; }' | fmt >> $@.new
|
for c in `od -v -td1 -An $<` ; do echo " $$c," >> $@.new ; done
|
||||||
mv $@.new $@
|
echo " 0 };" >> $@.new
|
||||||
|
fmt $@.new > $@
|
||||||
|
rm -f $@.new
|
||||||
|
|
||||||
passes/techmap/techmap.o: passes/techmap/stdcells.inc
|
passes/techmap/techmap.o: passes/techmap/stdcells.inc
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue