Skip to contentSkip to conversation

fix up out-of-tree xfs builds

PATCH New Eric Sandeen 1 participant 1 message Sep 27, 2007 XFS filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix up out-of-tree xfs builds

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`
fs/xfs/Makefile +1 -1
Index: linux/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
 
fs/xfs/dmapi/Makefile +2 -2
Index: linux/fs/xfs/dmapi/Makefile
===================================================================
@@ -16,8 +16,8 @@
 # Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 #
 
-EXTRA_CFLAGS += -I $(TOPDIR)/fs/xfs -I $(TOPDIR)/fs/xfs/linux-2.6
-EXTRA_CFLAGS += -I $(TOPDIR)/fs/dmapi
+EXTRA_CFLAGS += -I$(src)/.. -I$(src)/../linux-2.6
+EXTRA_CFLAGS += -I$(TOPDIR)/fs/dmapi
 
 ifeq ($(CONFIG_XFS_DEBUG),y)
 	EXTRA_CFLAGS += -g -DDEBUG
fs/xfs/quota/Makefile +1 -1
Index: linux/fs/xfs/quota/Makefile
===================================================================
@@ -16,7 +16,7 @@
 # Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 #
 
-EXTRA_CFLAGS += -I $(TOPDIR)/fs/xfs -I $(TOPDIR)/fs/xfs/linux-2.6
+EXTRA_CFLAGS += -I$(src)/.. -I$(src)/../linux-2.6
 
 ifeq ($(CONFIG_XFS_DEBUG),y)
 	EXTRA_CFLAGS += -g