diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-06-11 15:50:35 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-06-11 15:50:35 +0100 |
commit | 228dadc99af25651cf2d67cec212951949320714 (patch) | |
tree | f0ef0830bd6859925ffe78549a81dc99b04523ea /tools/Rules.mk | |
parent | 3bc0cc4ae09620741451b53c13a055227bbb727a (diff) | |
download | xen-228dadc99af25651cf2d67cec212951949320714.tar.gz xen-228dadc99af25651cf2d67cec212951949320714.tar.bz2 xen-228dadc99af25651cf2d67cec212951949320714.zip |
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 <john.levon@sun.com>
Diffstat (limited to 'tools/Rules.mk')
-rw-r--r-- | tools/Rules.mk | 18 |
1 files changed, 5 insertions, 13 deletions
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) |