From fe08f67092cbb041334febc77d24be757755f65f Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Wed, 23 May 2018 16:30:48 -0500 Subject: [PATCH] libfrog: move platform specific runtime support code out of libxfs Move the platform support code to libfrog, which should remove the final dependency of libfrog on libxfs. libfrog is the runtime support library, and these files provide platform support. Signed-off-by: Darrick J. Wong Reviewed-by: Eric Sandeen Signed-off-by: Eric Sandeen --- libfrog/Makefile | 4 ++++ {libxfs => libfrog}/darwin.c | 0 {libxfs => libfrog}/freebsd.c | 0 {libxfs => libfrog}/irix.c | 0 {libxfs => libfrog}/linux.c | 0 libxfs/Makefile | 3 --- 6 files changed, 4 insertions(+), 3 deletions(-) rename {libxfs => libfrog}/darwin.c (100%) rename {libxfs => libfrog}/freebsd.c (100%) rename {libxfs => libfrog}/irix.c (100%) rename {libxfs => libfrog}/linux.c (100%) diff --git a/libfrog/Makefile b/libfrog/Makefile index 230b08fda..21bb5b7dc 100644 --- a/libfrog/Makefile +++ b/libfrog/Makefile @@ -22,6 +22,10 @@ topology.c \ util.c \ workqueue.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") + ifeq ($(HAVE_GETMNTENT),yes) LCFLAGS += -DHAVE_GETMNTENT endif diff --git a/libxfs/darwin.c b/libfrog/darwin.c similarity index 100% rename from libxfs/darwin.c rename to libfrog/darwin.c diff --git a/libxfs/freebsd.c b/libfrog/freebsd.c similarity index 100% rename from libxfs/freebsd.c rename to libfrog/freebsd.c diff --git a/libxfs/irix.c b/libfrog/irix.c similarity index 100% rename from libxfs/irix.c rename to libfrog/irix.c diff --git a/libxfs/linux.c b/libfrog/linux.c similarity index 100% rename from libxfs/linux.c rename to libfrog/linux.c diff --git a/libxfs/Makefile b/libxfs/Makefile index 0470f5f60..7cde18d36 100644 --- a/libxfs/Makefile +++ b/libxfs/Makefile @@ -97,9 +97,6 @@ CFILES = cache.c \ xfs_symlink_remote.c \ xfs_trans_resv.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 += gen_crc32table.c # -- 2.47.2