Include Solaris kernel headers
PATCH 1/1 Include Solaris kernel headers
# HG changeset patch
# User [email protected]
# Date 1181572844 25200
# Node ID 7cbae102fc26e947f42b9dc086ba346d381009b3 # Parent a8a76ef93a8915e286d8b50ac628156a1ce3eac7 Include Solaris kernel headers
Add the Solaris kernel headers used be the userspace tools to the distribution. The same setup as used by Linux is taken. We modify the Linux kernel headers to also install in /usr/include/xen/sys/ - without a kernel-neutral path, it can make using the headers very difficult, and encourages errors (as fixed in the final change here, an include of xen/linux/evtchn.h in xenfb.c).
Signed-off-by John Levon <[email protected]>
tools/Rules.mk +5 -13
@@ -37,18 +37,12 @@ check-$(CONFIG_X86) = $(call cc-ver-chec %.o: %.cc $(CC) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< -.PHONY: mk-symlinks mk-symlinks-xen mk-symlinks-$(XEN_OS) +.PHONY: mk-symlinks -mk-symlinks-SunOS: - -mk-symlinks-Linux: LINUX_ROOT=$(XEN_ROOT)/tools/include/Linux -mk-symlinks-Linux: - mkdir -p xen/linux - ( cd xen/linux && \ - ln -sf ../../$(LINUX_ROOT)/*.h . ) - ( cd xen && rm -f sys && ln -sf linux sys ) - -mk-symlinks-xen: +mk-symlinks: + mkdir -p xen/sys + ( cd xen/sys && \ + ln -sf ../../$(XEN_ROOT)/tools/include/$(XEN_OS)/*.h . ) mkdir -p xen ( cd xen && ln -sf ../$(XEN_ROOT)/xen/include/public/*.h . ) mkdir -p xen/hvm
@@ -62,5 +56,3 @@ mk-symlinks-xen: ( cd xen/foreign && ln -sf ../../$(XEN_ROOT)/xen/include/public/foreign/reference.size . ) ( cd xen/foreign && ln -sf ../../$(XEN_ROOT)/xen/include/public/foreign/*.py . ) $(MAKE) -C xen/foreign - -mk-symlinks: mk-symlinks-xen mk-symlinks-$(XEN_OS)
tools/guest-headers/Makefile +4 -8
@@ -7,15 +7,11 @@ all: .PHONY: check check: -.PHONY: install install-Linux install-SunOS +.PHONY: install -install-Linux: - mkdir -p $(DESTDIR)/usr/include/xen/linux - $(INSTALL_DATA) $(XEN_ROOT)/tools/include/Linux/*.h $(DESTDIR)/usr/include/xen/linux - -install-SunOS: - -install: install-$(XEN_OS) +install: + mkdir -p $(DESTDIR)/usr/include/xen/sys + $(INSTALL_DATA) $(XEN_ROOT)/tools/include/$(XEN_OS)/*.h $(DESTDIR)/usr/include/xen/sys .PHONY: clean clean:
tools/include/SunOS/evtchn.h new file +94 -0
94 lines not on this page · raw message
tools/include/SunOS/privcmd.h new file +85 -0
85 lines not on this page · raw message
tools/include/SunOS/xenbus.h new file +42 -0
42 lines not on this page · raw message
tools/xenfb/xenfb.c +0 -1
@@ -17,7 +17,6 @@#include <string.h> #include <time.h> #include <xs.h> -#include <xen/linux/evtchn.h> #include "xenfb.h"