radiance.mk: Fix source lookup logic when fd not available
This commit is contained in:
@@ -37,9 +37,11 @@ radpie:
|
|||||||
cd $(RADPIE_SRC_DIR) && cargo build --release
|
cd $(RADPIE_SRC_DIR) && cargo build --release
|
||||||
|
|
||||||
EXTRA_SIM_REQS += vortex_vsrc.$(CONFIG)
|
EXTRA_SIM_REQS += vortex_vsrc.$(CONFIG)
|
||||||
# doesn't work if we use $(call lookup_srcs) from common.mk, the variable
|
# below manipulation of VORTEX_VLOG_SOURCES doesn't work if we try to reuse
|
||||||
# doesn't expand somehow
|
# $(call lookup_srcs) from common.mk, the variable doesn't expand somehow
|
||||||
ifneq ($(shell which fd 2> /dev/null),)
|
ifeq ($(shell which fd 2> /dev/null),)
|
||||||
|
VORTEX_VLOG_SOURCES := $(shell find -L $(VORTEX_SRC_DIR) -type f -iname "*.sv" -o -iname "*.vh" -o -iname "*.v")
|
||||||
|
else
|
||||||
VORTEX_VLOG_SOURCES := $(shell fd -L -t f -e "sv" -e "vh" -e "v" . $(VORTEX_SRC_DIR))
|
VORTEX_VLOG_SOURCES := $(shell fd -L -t f -e "sv" -e "vh" -e "v" . $(VORTEX_SRC_DIR))
|
||||||
endif
|
endif
|
||||||
# VORTEX_COLLATERAL := $(patsubst $(VORTEX_SRC_DIR)%,$(GEN_COLLATERAL_DIR)%,$(VORTEX_VLOG_SOURCES))
|
# VORTEX_COLLATERAL := $(patsubst $(VORTEX_SRC_DIR)%,$(GEN_COLLATERAL_DIR)%,$(VORTEX_VLOG_SOURCES))
|
||||||
|
|||||||
Reference in New Issue
Block a user