summaryrefslogtreecommitdiffstats
path: root/rules/ecryptfs-utils.make
diff options
context:
space:
mode:
authorOleksij Rempel <o.rempel@pengutronix.de>2017-06-23 13:19:41 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2017-06-24 11:17:04 +0200
commit1d86164ab1cea6c147f189880f18fb4d5f2f4d79 (patch)
tree2af25f3b1b531a057f6809843f0aa1b473581533 /rules/ecryptfs-utils.make
parentd0281a3e4c4a07a1b98d046003781537d0545b4f (diff)
downloadptxdist-1d86164ab1cea6c147f189880f18fb4d5f2f4d79.tar.gz
ptxdist-1d86164ab1cea6c147f189880f18fb4d5f2f4d79.tar.xz
ecryptfs-utils: provide option for test scripts
These scripts are desined for kernel fs/ecryptfs testing. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> [mol: align 'if ..' in ecryptfs-utils.in] Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/ecryptfs-utils.make')
-rw-r--r--rules/ecryptfs-utils.make8
1 files changed, 7 insertions, 1 deletions
diff --git a/rules/ecryptfs-utils.make b/rules/ecryptfs-utils.make
index 371f05cbc..c7c92b89f 100644
--- a/rules/ecryptfs-utils.make
+++ b/rules/ecryptfs-utils.make
@@ -46,11 +46,12 @@ ECRYPTFS_UTILS_CONF_OPT := \
--disable-gui \
--disable-docs \
--disable-docs-gen \
- --disable-tests \
+ --$(call ptx/endis,PTXCONF_ECRYPTFS_UTILS_TESTS)-tests \
--disable-mudflap \
$(GLOBAL_LARGE_FILE_OPTION) \
--disable-nls
+
ECRYPTFS_UTILS_PROGS_y :=
ECRYPTFS_UTILS_PROGS_$(PTXCONF_ECRYPTFS_UTILS_MOUNT_ECRYPTFS) += /sbin/mount.ecryptfs
@@ -82,6 +83,11 @@ $(STATEDIR)/ecryptfs-utils.targetinstall:
@$(call install_lib, ecryptfs-utils, 0, 0, 0644, ecryptfs/libecryptfs_key_mod_passphrase)
@$(call install_lib, ecryptfs-utils, 0, 0, 0644, libecryptfs)
+ifdef PTXCONF_ECRYPTFS_UTILS_TESTS
+ @$(call install_glob, ecryptfs-utils, 0, 0, $(ECRYPTFS_UTILS_DIR)/tests, /usr/lib/ecryptfs/tests,, \
+ *Makefile* */.deps* */.libs* */.dirstamp* *.o *.c, n)
+endif
+
ifdef PTXCONF_ECRYPTFS_UTILS_MOUNT_ECRYPTFS
@$(call install_link, ecryptfs-utils, mount.ecryptfs_private, /sbin/umount.ecryptfs_private)
endif