WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] put xenstore headers in linux-public

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] put xenstore headers in linux-public
From: Chris Wright <chrisw@xxxxxxxx>
Date: Mon, 8 Aug 2005 15:45:07 -0700
Cc: rusty@xxxxxxxxxxxxxxx
Delivery-date: Mon, 08 Aug 2005 22:43:34 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6i
Directly including ../tools breaks building in separate object tree,
as well as building from mkpatch patch (I believe Rik hit that one).
This puts xenstore headers in linux-public.

Signed-off-by: Chris Wright <chrisw@xxxxxxxx>

--- a/linux-2.6-xen-sparse/drivers/xen/xenbus/Makefile  Mon Aug  8 18:43:57 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/Makefile  Mon Aug  8 15:15:06 2005
@@ -4,7 +4,3 @@
 xenbus-objs += xenbus_comms.o
 xenbus-objs += xenbus_xs.o
 xenbus-objs += xenbus_probe.o 
-
-XEN_TOOLS_DIR := "../tools"
-vpath %.h $(XEN_TOOLS_DIR)
-EXTRA_CFLAGS += -I $(XEN_TOOLS_DIR)
diff -r 0229efe8ffe4 linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c
--- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c       Mon Aug  8 
18:43:57 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c       Mon Aug  8 
15:15:06 2005
@@ -30,7 +30,6 @@
 
 #include <linux/errno.h>
 #include <linux/types.h>
-#include "xenstore/xenstored.h"
 #include <linux/uio.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
@@ -39,6 +38,7 @@
 #include <linux/fcntl.h>
 #include <linux/kthread.h>
 #include <asm-xen/xenbus.h>
+#include <asm-xen/linux-public/xenstored.h>
 #include "xenbus_comms.h"
 
 #define streq(a, b) (strcmp((a), (b)) == 0)
diff -r 0229efe8ffe4 linux-2.6-xen-sparse/mkbuildtree
--- a/linux-2.6-xen-sparse/mkbuildtree  Mon Aug  8 18:43:57 2005
+++ b/linux-2.6-xen-sparse/mkbuildtree  Mon Aug  8 15:15:06 2005
@@ -74,6 +74,25 @@
   )
 }
 
+# relative_lnfiles <target_dir> <target_files>
+# Creates a tree of symlinks in the current working directory that mirror
+# <target_files> in <target_dir>. <target_dir> should be relative to the 
current
+# working directory. Symlinks in <target_dir> are ignored. Source-control files
+# are ignored.
+relative_lnfiles ()
+{
+  local SYMLINK_DIR REAL_DIR pref i
+  SYMLINK_DIR=$PWD
+  REAL_DIR=$1
+  shift
+  (
+  cd $REAL_DIR
+  for i in "$*"; do
+    ln -sf ${REAL_DIR}/$i ${SYMLINK_DIR}/$i
+  done
+  )
+}
+
 [ "$1" == "" ] && { echo "Syntax: $0 <linux tree to xenify>"; exit 1; }
 
 # Get absolute path to the destination directory
@@ -109,3 +128,6 @@
 cd     ${AD}/include/asm-xen/xen-public
 relative_lndir ../../../${RS}/../xen/include/public
 
+# More header links, specific to shared defn's for xenbus/xenstore
+cd     ${AD}/include/asm-xen/linux-public
+relative_lnfiles ../../../${RS}/../tools/xenstore xenstored.h

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] put xenstore headers in linux-public, Chris Wright <=