From 228dadc99af25651cf2d67cec212951949320714 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Mon, 11 Jun 2007 15:50:35 +0100 Subject: 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. Signed-off-by: John Levon --- tools/Rules.mk | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'tools/Rules.mk') diff --git a/tools/Rules.mk b/tools/Rules.mk index 308f2dc022..4d0b193a53 100644 --- a/tools/Rules.mk +++ b/tools/Rules.mk @@ -37,18 +37,12 @@ $(eval $(check-y)) %.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) -- cgit v1.2.3