From: Christoph Hellwig <hch@lst.de>
To: xfs@oss.sgi.com
Subject: [PATCH 04/13] xfsprogs: only install *format.h headers in install-qa
Date: Fri, 3 Jul 2015 12:12:12 +0200 [thread overview]
Message-ID: <1435918341-10128-5-git-send-email-hch@lst.de> (raw)
In-Reply-To: <1435918341-10128-1-git-send-email-hch@lst.de>
Now that we've properly split up the headers we don't need to install all
the libxfs-internal headers for xfstests. Just install the three headers
defining the on-disk format and xfs_arch.h which is required to compile
them instead.
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
include/Makefile | 12 ++++++++----
libxfs/Makefile | 29 +++++++++++++++++------------
2 files changed, 25 insertions(+), 16 deletions(-)
diff --git a/include/Makefile b/include/Makefile
index f033245..0135860 100644
--- a/include/Makefile
+++ b/include/Makefile
@@ -18,7 +18,9 @@
TOPDIR = ..
include $(TOPDIR)/include/builddefs
-QAHFILES = libxfs.h \
+QAHFILES = xfs_arch.h
+
+LIBHFILES = libxfs.h \
libxlog.h \
atomic.h \
bitops.h \
@@ -28,14 +30,17 @@ QAHFILES = libxfs.h \
list.h \
parent.h \
radix-tree.h \
- xfs_arch.h \
xfs_btree_trace.h \
xfs_inode.h \
xfs_log_recover.h \
xfs_metadump.h \
xfs_mount.h \
xfs_trace.h \
- xfs_trans.h
+ xfs_trans.h \
+ command.h \
+ input.h \
+ path.h \
+ project.h
HFILES = handle.h \
jdm.h \
@@ -46,7 +51,6 @@ HFILES = handle.h \
PHFILES = darwin.h freebsd.h irix.h linux.h gnukfreebsd.h
DKHFILES = volume.h fstyp.h dvh.h
-LIBHFILES = command.h input.h path.h project.h
LSRCFILES = $(shell echo $(PHFILES) | sed -e "s/$(PKG_PLATFORM).h//g")
LSRCFILES += platform_defs.h.in builddefs.in buildmacros buildrules install-sh
LSRCFILES += $(DKHFILES) $(LIBHFILES)
diff --git a/libxfs/Makefile b/libxfs/Makefile
index c85f1ed..3d3b448 100644
--- a/libxfs/Makefile
+++ b/libxfs/Makefile
@@ -14,15 +14,14 @@ LT_AGE = 0
PKGHFILES = xfs_fs.h \
xfs_types.h
-# headers with build dependencies
-HFILES = init.h \
- crc32defs.h \
- crc32table.h \
- libxfs_priv.h \
- xfs_dir2_priv.h \
-
# headers installed in QA targets
-QAHFILES = xfs_alloc.h \
+QAHFILES = \
+ xfs_da_format.h \
+ xfs_format.h \
+ xfs_log_format.h
+
+LIBHFILES = \
+ xfs_alloc.h \
xfs_alloc_btree.h \
xfs_attr_leaf.h \
xfs_attr_sf.h \
@@ -33,14 +32,11 @@ QAHFILES = xfs_alloc.h \
xfs_attr_remote.h \
xfs_cksum.h \
xfs_da_btree.h \
- xfs_da_format.h \
xfs_dir2.h \
- xfs_format.h \
xfs_ialloc.h \
xfs_ialloc_btree.h \
xfs_inode_buf.h \
xfs_inode_fork.h \
- xfs_log_format.h \
xfs_quota_defs.h \
xfs_sb.h \
xfs_shared.h \
@@ -49,6 +45,14 @@ QAHFILES = xfs_alloc.h \
libxfs_io.h \
libxfs_api_defs.h
+
+# headers with build dependencies
+HFILES = init.h \
+ crc32defs.h \
+ crc32table.h \
+ libxfs_priv.h \
+ xfs_dir2_priv.h
+
CFILES = cache.c \
crc32.c \
init.c \
@@ -89,6 +93,7 @@ CFILES = cache.c \
CFILES += $(PKG_PLATFORM).c
PCFILES = darwin.c freebsd.c irix.c linux.c
LSRCFILES = $(shell echo $(PCFILES) | sed -e "s/$(PKG_PLATFORM).c//g")
+LSRCFILES += $(LIBHFILES)
LSRCFILES += gen_crc32table.c
#
@@ -133,7 +138,7 @@ include $(BUILDRULES)
install: default
$(INSTALL) -m 755 -d $(PKG_INC_DIR)
-install-headers: $(addsuffix -hdrs, $(PKGHFILES) $(QAHFILES))
+install-headers: $(addsuffix -hdrs, $(PKGHFILES) $(LIBHFILES) $(QAHFILES))
%-hdrs:
$(Q)$(LN_S) -f $(PWD)/libxfs/$* $(TOPDIR)/include/xfs/$*
--
1.9.1
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2015-07-03 10:14 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-03 10:12 xfsprogs: clean up installed headers Christoph Hellwig
2015-07-03 10:12 ` [PATCH 01/13] xfsprogs: don't install internal header files Christoph Hellwig
2015-07-03 10:12 ` [PATCH 02/13] xfsprogs: remove unused macros from xfs_arch.h Christoph Hellwig
2015-07-03 10:12 ` [PATCH 03/13] xfsprogs: remove swab.h Christoph Hellwig
2015-07-03 10:12 ` Christoph Hellwig [this message]
2015-07-03 10:12 ` [PATCH 05/13] xfsprogs: remove install-qa target Christoph Hellwig
2015-07-03 10:12 ` [PATCH 06/13] xfsprogs: use <>-style includes in installed headers Christoph Hellwig
2015-07-03 10:12 ` [PATCH 07/13] xfsprogs: simplify internal includes Christoph Hellwig
2015-07-03 10:12 ` [PATCH 08/13] xfsprogs: move __be*/__le* types and __arch_pack to xfs_arch.h Christoph Hellwig
2015-07-03 10:12 ` [PATCH 09/13] xfsprogs: move __u*/__s* typedefs to per-port headers Christoph Hellwig
2015-07-03 10:12 ` [PATCH 10/13] xfsprogs: include libxfs.h in libxfs_priv.h Christoph Hellwig
2015-07-03 23:42 ` Dave Chinner
2015-07-03 10:12 ` [PATCH 11/13] xfsprogs: don't install platform_defs.h Christoph Hellwig
2015-07-03 10:12 ` [PATCH 12/13] xfsprogs: remove filldir_t typedef Christoph Hellwig
2015-07-03 10:12 ` [PATCH 13/13] xfsprogs: remove the constpp define Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1435918341-10128-5-git-send-email-hch@lst.de \
--to=hch@lst.de \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox