fix up out-of-tree xfs builds
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`
Signed-off-by Eric Sandeen <[email protected]>
fs/xfs/Makefile +1 -1
@@ -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
@@ -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
@@ -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