mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 06:03:23 +00:00
Adjust makefiles to work with out-of-tree builds
This is based on work done by Larry Doolittle
This commit is contained in:
parent
c43f38c81b
commit
e4ef000b70
12 changed files with 32 additions and 41 deletions
|
@ -3,16 +3,9 @@ ifneq ($(SMALL),1)
|
|||
OBJS += techlibs/common/synth.o
|
||||
endif
|
||||
|
||||
EXTRA_TARGETS += techlibs/common/blackbox.v
|
||||
|
||||
techlibs/common/blackbox.v: techlibs/common/blackbox.sed techlibs/common/simlib.v techlibs/common/simcells.v
|
||||
$(P) cat techlibs/common/simlib.v techlibs/common/simcells.v | $(SED) -rf techlibs/common/blackbox.sed > techlibs/common/blackbox.v.new
|
||||
$(Q) mv techlibs/common/blackbox.v.new techlibs/common/blackbox.v
|
||||
|
||||
$(eval $(call add_share_file,share,techlibs/common/simlib.v))
|
||||
$(eval $(call add_share_file,share,techlibs/common/simcells.v))
|
||||
$(eval $(call add_share_file,share,techlibs/common/techmap.v))
|
||||
$(eval $(call add_share_file,share,techlibs/common/blackbox.v))
|
||||
$(eval $(call add_share_file,share,techlibs/common/pmux2mux.v))
|
||||
$(eval $(call add_share_file,share,techlibs/common/adff2dff.v))
|
||||
$(eval $(call add_share_file,share,techlibs/common/cells.lib))
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
#!/bin/sed -r
|
||||
/^(wire|assign|reg|event|integer|localparam|\/\/|[\/ ]\*| *$|`)/ d;
|
||||
/^(genvar|generate|always|initial|task|function)/,/^end/ d;
|
||||
/^endmodule/ s/$/\n/;
|
||||
s/ reg / /;
|
Loading…
Add table
Add a link
Reference in a new issue