<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.4.4">
</HEAD>
<BODY>
Hello,<BR>
<BR>
You can build the LiSA kernel module outside of its own linux tree like this:<BR>
<BR>
<UL>
    <LI>go to the net/switch subdirectory
    <LI>change the Makefile like this:
    <BLOCKQUOTE>
        <LI>comment out the <TT>KDIR := ../..</TT> line
        <LI>uncomment the other 2 lines above, which define <TT>KVER</TT> and <TT>KDIR</TT>
    </BLOCKQUOTE>
    <LI>build the module using make (with no arguments)
    <LI>remove the currently loaded kernel module version (<TT>rmmod switch</TT>)
    <LI>add your compiled module version (<TT>insmod ./switch.ko</TT> - from the net/switch subdirectory)
</UL>
<BR>
To build the userspace LiSA against that particular version of the module (assuming that you made changes to the header files), you don't have to change anything or compile the whole tree. The only requirements are these:
<UL>
    <LI>the linux directory is called linux-2.6 and it's placed in the root of the LiSA git tree
    <LI>the environment variable LINUX_DIR is <B>not</B> defined
</UL>
You can figure this out (or further look into it) in the userspace/scripts/Makefile.includes file.<BR>
<BR>
I have tested all of this information as I assembled this mail, so the procedures should be clean and functional.<BR>
<BR>
Cheers,<BR>
<BR>
Radu<BR>
<BR>
On Tue, 2013-03-05 at 01:36 +0200, Claudiu Ghioc wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
    Hello,
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    I am working on a CentOS virtual machine with LiSA running from precompiled packages and I made some small changes in the kernel module. I was wondering what exactly do I have to configure in order to test the changes?
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    Thank you!
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    -- <BR>
    Claudiu Ghioc
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    Software&nbsp;Developer<BR>
    CloudBit<BR>
    Email: <A HREF="mailto:claudiu.ghioc@gmail.com">claudiu.ghioc@gmail.com</A><BR>
    +(40) 745 783 796
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<PRE>
_______________________________________________
LiSA-Devel mailing list
<A HREF="mailto:LiSA-Devel@lisa.mindbit.ro">LiSA-Devel@lisa.mindbit.ro</A>
<A HREF="http://lisa.mindbit.ro/mailman/listinfo/lisa-devel">http://lisa.mindbit.ro/mailman/listinfo/lisa-devel</A>
</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>