Fix missing config_reg.h error when non-author .git repository
This commit is contained in:
parent
5771ea48ef
commit
d34bc6f304
|
|
@ -46,6 +46,10 @@ export OBJCACHE_JOBS := -j $(shell objcache --jobs "$(OBJCACHE_HOSTS)")
|
||||||
export OBJCACHE := @objcache --read --write
|
export OBJCACHE := @objcache --read --write
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
UNDER_GIT = $(wildcard ../.git)
|
||||||
|
|
||||||
|
#*********************************************************************
|
||||||
|
|
||||||
obj_opt:
|
obj_opt:
|
||||||
mkdir $@
|
mkdir $@
|
||||||
obj_dbg:
|
obj_dbg:
|
||||||
|
|
@ -71,7 +75,7 @@ dbg: ../verilator_bin_dbg
|
||||||
|
|
||||||
prefiles::
|
prefiles::
|
||||||
|
|
||||||
ifeq ($(VERILATOR_AUTHOR_SITE),1) # Local... Else don't burden users
|
ifneq ($(UNDER_GIT),) # If local git tree... Else don't burden users
|
||||||
prefiles:: config_rev.h
|
prefiles:: config_rev.h
|
||||||
# This output goes into srcdir, as we need to distribute it as part of the kit.
|
# This output goes into srcdir, as we need to distribute it as part of the kit.
|
||||||
config_rev.h: config_rev.pl ../.git/index
|
config_rev.h: config_rev.pl ../.git/index
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue