Skip to contentSkip to conversation

stubdom: fix link farm runes

PATCH In review Wei Liu 2 participants 2 messages Feb 16, 2016

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH v2 1/1 stubdom: fix link farm runes

Previously in the three problematic libraries all public headers were linked to source code directory. We should have created an include directory for each library and linked public headers there.

Note that there was no breakage for those three libraries before this patch. This patch merely changes the location headers are linked to so that all libraries follow the same pattern.

---
v2: update commit log

Cc Ian Jackson <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Ian Campbell <[email protected]>
Cc Wei Liu <[email protected]>
Cc Samuel Thibault <[email protected]>
---
 stubdom/Makefile | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
stubdom/Makefile +6 -6
index 6f68e98..2044d76 100644
@@ -314,9 +314,9 @@ mk-headers-$(XEN_TARGET_ARCH): $(IOEMU_LINKFARM_TARGET)
 	  ln -sf $(wildcard $(XEN_ROOT)/tools/include/xen-foreign/*) include/xen-foreign/ && \
 	  $(MAKE) DESTDIR= -C include/xen-foreign/ && \
 	  ( [ -h include/xen/foreign ] || ln -sf ../xen-foreign include/xen/foreign )
-	mkdir -p libs-$(XEN_TARGET_ARCH)/toollog
+	mkdir -p libs-$(XEN_TARGET_ARCH)/toollog/include
 	[ -h libs-$(XEN_TARGET_ARCH)/toollog/Makefile ] || ( cd libs-$(XEN_TARGET_ARCH)/toollog && \
-	  ln -sf $(XEN_ROOT)/tools/libs/toollog/include/*.h . && \
+	  ln -sf $(XEN_ROOT)/tools/libs/toollog/include/*.h include/ && \
 	  ln -sf $(XEN_ROOT)/tools/libs/toollog/*.c . && \
 	  ln -sf $(XEN_ROOT)/tools/libs/toollog/Makefile . )
 	mkdir -p libs-$(XEN_TARGET_ARCH)/evtchn/include
@@ -343,17 +343,17 @@ mk-headers-$(XEN_TARGET_ARCH): $(IOEMU_LINKFARM_TARGET)
 	  ln -sf $(XEN_ROOT)/tools/libs/foreignmemory/include/*.h include/ && \
 	  ln -sf $(XEN_ROOT)/tools/libs/foreignmemory/*.c . && \
 	  ln -sf $(XEN_ROOT)/tools/libs/foreignmemory/Makefile . )
-	mkdir -p libxc-$(XEN_TARGET_ARCH)
+	mkdir -p libxc-$(XEN_TARGET_ARCH)/include
 	[ -h libxc-$(XEN_TARGET_ARCH)/Makefile ] || ( cd libxc-$(XEN_TARGET_ARCH) && \
 	  ln -sf $(XEN_ROOT)/tools/libxc/*.h . && \
-	  ln -sf $(XEN_ROOT)/tools/libxc/include/*.h . && \
+	  ln -sf $(XEN_ROOT)/tools/libxc/include/*.h include/ && \
 	  ln -sf $(XEN_ROOT)/tools/libxc/*.c . && \
 	  ln -sf $(XEN_ROOT)/tools/libxc/Makefile . )
-	mkdir -p xenstore
+	mkdir -p xenstore/include
 	[ -h xenstore/Makefile ] || ( cd xenstore && \
 	  ln -sf $(XEN_ROOT)/tools/xenstore/*.c . && \
 	  ln -sf $(XEN_ROOT)/tools/xenstore/*.h . && \
-	  ln -sf $(XEN_ROOT)/tools/xenstore/include/*.h . && \
+	  ln -sf $(XEN_ROOT)/tools/xenstore/include/*.h include/ && \
 	  ln -sf $(XEN_ROOT)/tools/xenstore/Makefile . )
 	$(MAKE) DESTDIR= -C $(MINI_OS) links
 	touch mk-headers-$(XEN_TARGET_ARCH)
Signature · 1 line
2.1.4
#1 lore raw

Wei Liu writes ("[PATCH v2] stubdom: fix link farm runes"):

Quoted 10 lines

Previously in the three problematic libraries all public headers were linked to source code directory. We should have created an include directory for each library and linked public headers there.

Note that there was no breakage for those three libraries before this patch. This patch merely changes the location headers are linked to so that all libraries follow the same pattern.