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] proper way to build out-of-tree module

To: "Xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] proper way to build out-of-tree module
From: "Cihula, Joseph" <joseph.cihula@xxxxxxxxx>
Date: Wed, 24 Oct 2007 23:47:53 -0700
Delivery-date: Wed, 24 Oct 2007 23:49:48 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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
Thread-index: AcgW0ve1nD+c642GQzmyf9WS4fwQyA==
Thread-topic: proper way to build out-of-tree module
I'm trying to build a kernel module for dom0 where the source code for
the module resides in a directory other than the linux src tree (it is
is $(XEN_ROOT)/tboot/txt-test).

I though that what I needed to do was to first build the .o in the local
dir then do:
        $(MAKE) -C $(XEN_ROOT)/build-linux-2.6.18-xen_x86_64 M=$(CURDIR)
modules

And for the .o build, I set the include path to be
-I$(XEN_ROOT)/linux-2.6.18-xen.hg/include.

However, when the source file tries to #include <linux/delay.h> it
returns an error:
        In file included from txt-test.c:39:
        /xen/xen-txt.hg/tboot/txt-test/../../linux-2.6.18-
xen.hg/include/linux/delay.h:12:23: error: asm/delay.h: No such file or
directory
since there is no 'asm' link to 'asm-x86_64' in the linux src tree.

Suggestions?

Joe

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

<Prev in Thread] Current Thread [Next in Thread>