sonic-buildimage/rules/sonic-dash-api.dep
xumia e73f1110ad
[Build] Fix the dash cache dependency issue (#15851)
#### Why I did it
[Build] Fix the dash cache dependency issue
```
12:47:34  [ finished ] [ target/files/bullseye/ctrmgrd.service ]
12:47:36  fatal: Unable to hash src/sonic-dash-api/sonic-dash-api
12:47:36  make: *** [Makefile.cache:528: target/debs/bullseye/libdashapi_1.0.0_amd64.deb.smdep] Error 123
12:47:36  make: *** Waiting for unfinished jobs....
```

##### Work item tracking
- Microsoft ADO **(number only)**: 24547630
2023-07-19 15:56:24 -07:00

14 lines
635 B
Plaintext

SPATH := $($(LIB_SONIC_DASH_API)_SRC_PATH)
DEP_FILES := $(SONIC_COMMON_FILES_LIST) rules/sonic-dash-api.mk rules/sonic-dash-api.dep
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
DEP_FILES += $(shell git ls-files $(SPATH) | grep -v sonic-dash-api)
SMDEP_FILES := $(addprefix $(SPATH)/sonic-dash-api/,$(shell cd $(SPATH)/sonic-dash-api && git ls-files))
$(LIB_SONIC_DASH_API)_CACHE_MODE := GIT_CONTENT_SHA
$(LIB_SONIC_DASH_API)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
$(LIB_SONIC_DASH_API)_DEP_FILES := $(DEP_FILES)
$(LIB_SONIC_DASH_API)_SMDEP_FILES := $(SMDEP_FILES)
$(LIB_SONIC_DASH_API)_SMDEP_PATHS := $(SPATH)