summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiesh1oo <siesh1oo@siesh1oo.no>2014-03-11 14:06:41 +0100
committerSiesh1oo <siesh1oo@siesh1oo.no>2014-03-11 14:06:41 +0100
commit707b46956e7de08ae44ec1d8812fe0393e60457b (patch)
tree4fd250503223f673e781f2dceaeea96b60d8760e
parent876c016904989bc54eafada1363e31f291854542 (diff)
- passes/techmap/Makefile.inc: POSIX 'od' has no '-w' option. Use '-An' instead. Replace awk by simple shell commands for portability.
-rw-r--r--passes/techmap/Makefile.inc10
1 files changed, 6 insertions, 4 deletions
diff --git a/passes/techmap/Makefile.inc b/passes/techmap/Makefile.inc
index ae1ebbb5..b83ab849 100644
--- a/passes/techmap/Makefile.inc
+++ b/passes/techmap/Makefile.inc
@@ -10,10 +10,12 @@ OBJS += passes/techmap/extract.o
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
- mv $@.new $@
+ echo "// autogenerated from $<\n" > $@.new
+ echo "static char stdcells_code[] = {" >> $@.new
+ for c in `od -v -td1 -An $<` ; do echo " $$c," >> $@.new ; done
+ echo " 0 };" >> $@.new
+ fmt $@.new > $@
+ rm -f $@.new
passes/techmap/techmap.o: passes/techmap/stdcells.inc