Skip to contentSkip to conversation

tools/libs: honor build dependencies for recently moved subdirs

PATCH In review Jan Beulich 2 participants 2 messages Jan 22, 2021 – Jan 26, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/libs: honor build dependencies for recently moved subdirs

While the lack of proper dependency tracking of #include-d files is wider than just the libs/ subtree, dealing with the problem universally there or in tools/Rules.mk is too much of a risk at this point in the release cycle. Add the missing inclusion of $(DEPS_INCLUDE) only in the specific Makefile-s, after having checked that their prior Makefile-s had such includes.

Interestingly the $(DEPS_RM) use is present in tools/libs/libs.mk's clean target, so doesn't need taking care of in individual Makefile-s.

tools/libs/ctrl/Makefile +2 -0
@@ -62,6 +62,8 @@ $(eval $(genpath-target))
 
 $(LIB_OBJS) $(PIC_OBJS): _paths.h
 
+-include $(DEPS_INCLUDE)
+
 clean: cleanlocal
 
 .PHONY: cleanlocal
tools/libs/guest/Makefile +2 -0
@@ -108,6 +108,8 @@ $(eval $(genpath-target))
 
 xc_private.h: _paths.h
 
+-include $(DEPS_INCLUDE)
+
 .PHONY: cleanlocal
 cleanlocal:
 	rm -f libxenguest.map
tools/libs/light/Makefile +2 -0
@@ -271,3 +271,5 @@ cleanlocal:
 	$(RM) -f libxenlight.map
 	$(RM) -f $(AUTOSRCS) $(AUTOINCS)
 	$(MAKE) -C $(ACPI_PATH) ACPI_BUILD_DIR=$(CURDIR) clean
+
+-include $(DEPS_INCLUDE)
tools/libs/store/Makefile +2 -0
@@ -31,6 +31,8 @@ else
 PKG_CONFIG_REMOVE += -ldl
 endif
 
+-include $(DEPS_INCLUDE)
+
 .PHONY: install
 install: install-headers
 
tools/libs/util/Makefile +2 -0
@@ -52,6 +52,8 @@ $(LIB_OBJS) $(PIC_OBJS): $(AUTOINCS) _pa
 genpath-target = $(call buildmakevars2header,_paths.h)
 $(eval $(genpath-target))
 
+-include $(DEPS_INCLUDE)
+
 clean: cleanlocal
 
 .PHONY: cleanlocal
tools/libs/vchan/Makefile +1 -0
@@ -11,6 +11,7 @@ SRCS-y += io.c
 NO_HEADERS_CHK := y
 
 include $(XEN_ROOT)/tools/libs/libs.mk
+-include $(DEPS_INCLUDE)
 
 clean: cleanlocal
 
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Jan Beulich

While the lack of proper dependency tracking of #include-d files is wider than just the libs/ subtree, dealing with the problem universally there or in tools/Rules.mk is too much of a risk at this point in the release cycle. Add the missing inclusion of $(DEPS_INCLUDE) only in the specific Makefile-s, after having checked that their prior Makefile-s had such includes.

Quoted 5 lines

Interestingly the $(DEPS_RM) use is present in tools/libs/libs.mk's clean target, so doesn't need taking care of in individual Makefile-s.