summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd/0016-make-test-dir-configurable.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0016-make-test-dir-configurable.patch')
-rw-r--r--meta/recipes-core/systemd/systemd/0016-make-test-dir-configurable.patch65
1 files changed, 65 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/0016-make-test-dir-configurable.patch b/meta/recipes-core/systemd/systemd/0016-make-test-dir-configurable.patch
new file mode 100644
index 0000000000..10d1df5d52
--- /dev/null
+++ b/meta/recipes-core/systemd/systemd/0016-make-test-dir-configurable.patch
@@ -0,0 +1,65 @@
1From 218bbc555a37f9373fbb7f03c744eb65109d3470 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 9 Nov 2016 20:47:37 -0800
4Subject: [PATCH 16/19] make test dir configurable
5
6Upstream-Status: Pending
7
8test maybe be run on target in cross-compile environment, and test dir
9is not the compilation dir, so make it configurable
10
11Signed-off-by: Roy Li <rongqing.li@windriver.com>
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 Makefile.am | 2 +-
15 configure.ac | 7 +++++++
16 2 files changed, 8 insertions(+), 1 deletion(-)
17
18diff --git a/Makefile.am b/Makefile.am
19index 229492a..e997d82 100644
20--- a/Makefile.am
21+++ b/Makefile.am
22@@ -214,7 +214,7 @@ AM_CPPFLAGS = \
23 -DROOTLIBDIR=\"$(rootlibdir)\" \
24 -DROOTLIBEXECDIR=\"$(rootlibexecdir)\" \
25 -DROOTHOMEDIR=\"$(roothomedir)\" \
26- -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
27+ -DTEST_DIR=\"$(testdir)/test\" \
28 -I $(top_srcdir)/src \
29 -I $(top_builddir)/src/basic \
30 -I $(top_srcdir)/src/basic \
31diff --git a/configure.ac b/configure.ac
32index 1de0066..b12e320 100644
33--- a/configure.ac
34+++ b/configure.ac
35@@ -1535,6 +1535,11 @@ AC_ARG_WITH([roothomedir],
36 [],
37 [with_roothomedir=/root])
38
39+AC_ARG_WITH([testdir],
40+ AS_HELP_STRING([--with-testdir=DIR], [test file directory]),
41+ [],
42+ [with_testdir=${abs_top_srcdir}])
43+
44 AC_ARG_WITH([pamlibdir],
45 AS_HELP_STRING([--with-pamlibdir=DIR], [Directory for PAM modules]),
46 [],
47@@ -1621,6 +1626,7 @@ AC_SUBST([pamconfdir], [$with_pamconfdir])
48 AC_SUBST([rootprefix], [$with_rootprefix])
49 AC_SUBST([rootlibdir], [$with_rootlibdir])
50 AC_SUBST([roothomedir], [$with_roothomedir])
51+AC_SUBST([testdir], [$with_testdir])
52
53 AC_CONFIG_FILES([
54 Makefile
55@@ -1712,6 +1718,7 @@ AC_MSG_RESULT([
56 lib dir: ${libdir}
57 rootlib dir: ${with_rootlibdir}
58 root home dir: ${with_roothomedir}
59+ test dir: ${with_testdir}
60 SysV init scripts: ${SYSTEM_SYSVINIT_PATH}
61 SysV rc?.d directories: ${SYSTEM_SYSVRCND_PATH}
62 Build Python: ${PYTHON}
63--
642.10.2
65