[rtems commit] ftpfs: Always build FTP client
Sebastian Huber
sebh at rtems.org
Wed May 2 07:59:32 UTC 2018
Module: rtems
Branch: master
Commit: fea9a7a7e59f4a6f08805591200e6dd943412372
Changeset: http://git.rtems.org/rtems/commit/?id=fea9a7a7e59f4a6f08805591200e6dd943412372
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Apr 30 09:48:13 2018 +0200
ftpfs: Always build FTP client
Move FTP client filesystem to separate library libftpfs.a.
Update #3419.
---
cpukit/headers.am | 1 +
cpukit/{libnetworking => include}/rtems/ftpfs.h | 0
cpukit/libnetworking/Makefile.am | 8 +++++++-
cpukit/libnetworking/headers.am | 1 -
testsuites/libtests/Makefile.am | 2 +-
5 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/cpukit/headers.am b/cpukit/headers.am
index 048cef6..66efcb5 100644
--- a/cpukit/headers.am
+++ b/cpukit/headers.am
@@ -124,6 +124,7 @@ include_rtems_HEADERS += include/rtems/framebuffer.h
include_rtems_HEADERS += include/rtems/fs.h
include_rtems_HEADERS += include/rtems/fsmount.h
include_rtems_HEADERS += include/rtems/ftpd.h
+include_rtems_HEADERS += include/rtems/ftpfs.h
include_rtems_HEADERS += include/rtems/gxx_wrappers.h
include_rtems_HEADERS += include/rtems/ide_part_table.h
include_rtems_HEADERS += include/rtems/imfs.h
diff --git a/cpukit/libnetworking/rtems/ftpfs.h b/cpukit/include/rtems/ftpfs.h
similarity index 100%
rename from cpukit/libnetworking/rtems/ftpfs.h
rename to cpukit/include/rtems/ftpfs.h
diff --git a/cpukit/libnetworking/Makefile.am b/cpukit/libnetworking/Makefile.am
index 1f6be15..372f642 100644
--- a/cpukit/libnetworking/Makefile.am
+++ b/cpukit/libnetworking/Makefile.am
@@ -4,6 +4,12 @@ include $(top_srcdir)/automake/compile.am
project_lib_LIBRARIES =
TMPINSTALL_FILES =
+project_lib_LIBRARIES += libftpfs.a
+libftpfs_a_SOURCES = lib/ftpfs.c
+$(PROJECT_LIB)/libftpfs.a: libftpfs.a
+ $(INSTALL_DATA) $< $(PROJECT_LIB)/libftpfs.a
+TMPINSTALL_FILES += $(PROJECT_LIB)/libftpfs.a
+
project_lib_LIBRARIES += libtftpfs.a
libtftpfs_a_SOURCES = lib/tftpDriver.c
$(PROJECT_LIB)/libtftpfs.a: libtftpfs.a
@@ -134,7 +140,7 @@ lib_CPPFLAGS = -DNOPOLL -DNOSELECT
noinst_LIBRARIES += lib.a
lib_a_CPPFLAGS = $(AM_CPPFLAGS) $(lib_CPPFLAGS) -D__BSD_VISIBLE
-lib_a_SOURCES = lib/getprotoby.c lib/rtems_bsdnet_ntp.c lib/ftpfs.c \
+lib_a_SOURCES = lib/getprotoby.c lib/rtems_bsdnet_ntp.c \
lib/syslog.c
lib_a_SOURCES += rtems/rtems_syscall_api.c
endif
diff --git a/cpukit/libnetworking/headers.am b/cpukit/libnetworking/headers.am
index ce4c7c7..93dce6e 100644
--- a/cpukit/libnetworking/headers.am
+++ b/cpukit/libnetworking/headers.am
@@ -106,7 +106,6 @@ include_rtemsdir = $(includedir)/rtems
include_rtems_HEADERS =
include_rtems_HEADERS += rtems/bootp.h
include_rtems_HEADERS += rtems/dhcp.h
-include_rtems_HEADERS += rtems/ftpfs.h
include_rtems_HEADERS += rtems/mkrootfs.h
include_rtems_HEADERS += rtems/rtems_bsdnet.h
include_rtems_HEADERS += rtems/rtems_bsdnet_internal.h
diff --git a/testsuites/libtests/Makefile.am b/testsuites/libtests/Makefile.am
index 68ff80a..36f7a2f 100644
--- a/testsuites/libtests/Makefile.am
+++ b/testsuites/libtests/Makefile.am
@@ -582,7 +582,7 @@ lib_docs += ftp01/ftp01.doc
ftp01_SOURCES = ftp01/init.c
ftp01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_ftp01) \
$(support_includes) -I$(RTEMS_SOURCE_ROOT)/cpukit/libnetworking
-ftp01_LDADD = -lftpd
+ftp01_LDADD = -lftpd -lftpfs
endif
endif
More information about the vc
mailing list