[Top] [All Lists]

[PATCH 2/2] fix up out of tree builds (mainline only)

To: Lachlan McIlroy <lachlan@xxxxxxx>
Subject: [PATCH 2/2] fix up out of tree builds (mainline only)
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Fri, 08 Feb 2008 23:13:30 -0600
Cc: xfs@xxxxxxxxxxx
In-reply-to: <47AD284F.7080603@xxxxxxxxxxx>
References: <20080208022705.0DB1058C4C11@xxxxxxxxxxxxxxxxxxxxxxx> <47AD284F.7080603@xxxxxxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Thunderbird (Macintosh/20071031)
kernel.org git tree "port" of:

Fix up xfs out-of-tree builds. (a.k.a. external modules)

Change -I include directives to find headers in the out-of-tree spot.
This allows a directory containing only xfs files to be built as:

  # make -C /path/to/kernel M=`pwd`

Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxxx <mailto:sandeen@xxxxxxxxxxx>>
Merge of xfs-linux-melb:xfs-kern:29878a by kenmcd.

  fix up out-of-tree xfs builds.

Index: linux-2.6/fs/xfs/Makefile
--- linux-2.6.orig/fs/xfs/Makefile
+++ linux-2.6/fs/xfs/Makefile
@@ -16,7 +16,7 @@
 # Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-EXTRA_CFLAGS +=         -Ifs/xfs -Ifs/xfs/linux-2.6 -funsigned-char
+EXTRA_CFLAGS +=         -I$(src) -I$(src)/linux-2.6 -funsigned-char
 XFS_LINUX := linux-2.6

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