Skip to content

Commit 0c73a0b

Browse files
committed
Makefile common, let COPY_STATS add extra deps
If Makefile defines a need to copy over xdp_stats, when create dependencies to common/xdp_stats_kern*.h. Signed-off-by: Jesper Dangaard Brouer <[email protected]>
1 parent e90fd89 commit 0c73a0b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

common/common.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ ifdef COPY_STATS
6565
$(COPY_STATS): $(LOADER_DIR)/${COPY_STATS:=.c} $(COMMON_H)
6666
make -C $(LOADER_DIR) $(COPY_STATS)
6767
cp $(LOADER_DIR)/$(COPY_STATS) $(COPY_STATS)
68+
# Needing xdp_stats imply depending on header files:
69+
EXTRA_DEPS := $(COMMON_DIR)/xdp_stats_kern.h $(COMMON_DIR)/xdp_stats_kern_user.h
6870
endif
6971

7072
# For build dependency on this file, if it gets updated

0 commit comments

Comments
 (0)