diff options
Diffstat (limited to 'meta/recipes-extended/ltp/ltp/0001-build-Add-option-to-select-libc-implementation.patch')
-rw-r--r-- | meta/recipes-extended/ltp/ltp/0001-build-Add-option-to-select-libc-implementation.patch | 149 |
1 files changed, 149 insertions, 0 deletions
diff --git a/meta/recipes-extended/ltp/ltp/0001-build-Add-option-to-select-libc-implementation.patch b/meta/recipes-extended/ltp/ltp/0001-build-Add-option-to-select-libc-implementation.patch new file mode 100644 index 0000000000..b5c25c56a5 --- /dev/null +++ b/meta/recipes-extended/ltp/ltp/0001-build-Add-option-to-select-libc-implementation.patch | |||
@@ -0,0 +1,149 @@ | |||
1 | From ec282980e6eee96f5b74aba464141f86049263e6 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 7 Jan 2016 18:19:03 +0000 | ||
4 | Subject: [PATCH] build: Add option to select libc implementation | ||
5 | |||
6 | There are more than glibc for C library implementation available on | ||
7 | linux now a days, uclibc cloaked like glibc but musl e.g. is very | ||
8 | different and does not implement all GNU extentions | ||
9 | |||
10 | Disable tests specifically not building _yet_ on musl based systems | ||
11 | |||
12 | Upstream-Status: Pending | ||
13 | |||
14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
15 | --- | ||
16 | Makefile | 5 +++++ | ||
17 | testcases/kernel/Makefile | 5 ++++- | ||
18 | testcases/kernel/sched/Makefile | 4 +++- | ||
19 | testcases/kernel/syscalls/Makefile | 5 +++++ | ||
20 | testcases/network/nfsv4/acl/Makefile | 4 ++++ | ||
21 | testcases/network/rpc/basic_tests/Makefile | 5 +++++ | ||
22 | testcases/realtime/func/pi-tests/Makefile | 4 ++++ | ||
23 | testcases/realtime/stress/pi-tests/Makefile | 5 +++++ | ||
24 | 8 files changed, 35 insertions(+), 2 deletions(-) | ||
25 | |||
26 | diff --git a/Makefile b/Makefile | ||
27 | index 768ca46..e9d679a 100644 | ||
28 | --- a/Makefile | ||
29 | +++ b/Makefile | ||
30 | @@ -41,6 +41,11 @@ vpath %.mk $(top_srcdir)/mk:$(top_srcdir)/mk/include | ||
31 | UCLINUX ?= 0 | ||
32 | export UCLINUX | ||
33 | |||
34 | +# System C library implementation (glibc,uclibc,musl etc.) | ||
35 | +# default to glibc if not set | ||
36 | +LIBC ?= glibc | ||
37 | +export LIBC | ||
38 | + | ||
39 | # CLEAN_TARGETS: Targets which exist solely in clean. | ||
40 | # COMMON_TARGETS: Targets which exist in all, clean, and install. | ||
41 | # INSTALL_TARGETS: Targets which exist in clean and install (contains | ||
42 | diff --git a/testcases/kernel/Makefile b/testcases/kernel/Makefile | ||
43 | index 39d79c7..24a57d9 100644 | ||
44 | --- a/testcases/kernel/Makefile | ||
45 | +++ b/testcases/kernel/Makefile | ||
46 | @@ -49,12 +49,15 @@ SUBDIRS += connectors \ | ||
47 | logging \ | ||
48 | mem \ | ||
49 | numa \ | ||
50 | - pty \ | ||
51 | sched \ | ||
52 | security \ | ||
53 | timers \ | ||
54 | tracing \ | ||
55 | |||
56 | +ifneq ($(LIBC),musl) | ||
57 | +SUBDIRS += pty | ||
58 | +endif | ||
59 | + | ||
60 | ifeq ($(WITH_POWER_MANAGEMENT_TESTSUITE),yes) | ||
61 | SUBDIRS += power_management | ||
62 | endif | ||
63 | diff --git a/testcases/kernel/sched/Makefile b/testcases/kernel/sched/Makefile | ||
64 | index 6a57d79..74bb933 100644 | ||
65 | --- a/testcases/kernel/sched/Makefile | ||
66 | +++ b/testcases/kernel/sched/Makefile | ||
67 | @@ -23,5 +23,7 @@ | ||
68 | top_srcdir ?= ../../.. | ||
69 | |||
70 | include $(top_srcdir)/include/mk/env_pre.mk | ||
71 | - | ||
72 | +ifeq ($(LIBC),musl) | ||
73 | + FILTER_OUT_DIRS += process_stress | ||
74 | +endif | ||
75 | include $(top_srcdir)/include/mk/generic_trunk_target.mk | ||
76 | diff --git a/testcases/kernel/syscalls/Makefile b/testcases/kernel/syscalls/Makefile | ||
77 | index 45a00cf..d1becd0 100644 | ||
78 | --- a/testcases/kernel/syscalls/Makefile | ||
79 | +++ b/testcases/kernel/syscalls/Makefile | ||
80 | @@ -28,6 +28,11 @@ ifeq ($(UCLINUX),1) | ||
81 | FILTER_OUT_DIRS += capget capset chmod chown clone fork getcontext llseek \ | ||
82 | mincore mprotect nftw profil remap_file_pages sbrk | ||
83 | endif | ||
84 | +ifeq ($(LIBC),musl) | ||
85 | +FILTER_OUT_DIRS += confstr fmtmsg getcontext ioctl mallopt profil \ | ||
86 | + rt_sigsuspend setdomainname sethostname sigsuspend \ | ||
87 | + ustat | ||
88 | +endif | ||
89 | |||
90 | ifeq ($(UCLIBC),1) | ||
91 | FILTER_OUT_DIRS += profil | ||
92 | diff --git a/testcases/network/nfsv4/acl/Makefile b/testcases/network/nfsv4/acl/Makefile | ||
93 | index 8c55a6b..f7cda62 100644 | ||
94 | --- a/testcases/network/nfsv4/acl/Makefile | ||
95 | +++ b/testcases/network/nfsv4/acl/Makefile | ||
96 | @@ -26,4 +26,8 @@ include $(top_srcdir)/include/mk/env_pre.mk | ||
97 | |||
98 | LDLIBS += $(ACL_LIBS) | ||
99 | |||
100 | +ifeq ($(LIBC),musl) | ||
101 | +FILTER_OUT_MAKE_TARGETS := acl1 | ||
102 | +endif | ||
103 | + | ||
104 | include $(top_srcdir)/include/mk/generic_leaf_target.mk | ||
105 | diff --git a/testcases/network/rpc/basic_tests/Makefile b/testcases/network/rpc/basic_tests/Makefile | ||
106 | index 66e9d56..ea8eb8a 100644 | ||
107 | --- a/testcases/network/rpc/basic_tests/Makefile | ||
108 | +++ b/testcases/network/rpc/basic_tests/Makefile | ||
109 | @@ -23,4 +23,9 @@ | ||
110 | top_srcdir ?= ../../../.. | ||
111 | |||
112 | include $(top_srcdir)/include/mk/env_pre.mk | ||
113 | + | ||
114 | +ifeq ($(LIBC),musl) | ||
115 | +FILTER_OUT_DIRS += rpc01 | ||
116 | +endif | ||
117 | + | ||
118 | include $(top_srcdir)/include/mk/generic_trunk_target.mk | ||
119 | diff --git a/testcases/realtime/func/pi-tests/Makefile b/testcases/realtime/func/pi-tests/Makefile | ||
120 | index 68616a7..748754b 100644 | ||
121 | --- a/testcases/realtime/func/pi-tests/Makefile | ||
122 | +++ b/testcases/realtime/func/pi-tests/Makefile | ||
123 | @@ -27,5 +27,9 @@ include $(top_srcdir)/include/mk/env_pre.mk | ||
124 | include $(abs_srcdir)/../../config.mk | ||
125 | |||
126 | MAKE_TARGETS := testpi-0 testpi-1 testpi-2 testpi-4 testpi-5 testpi-6 testpi-7 sbrk_mutex | ||
127 | +ifeq ($(LIBC),musl) | ||
128 | +FILTER_OUT_MAKE_TARGETS := testpi-5 testpi-6 sbrk_mutex | ||
129 | +endif | ||
130 | + | ||
131 | |||
132 | include $(top_srcdir)/include/mk/generic_leaf_target.mk | ||
133 | diff --git a/testcases/realtime/stress/pi-tests/Makefile b/testcases/realtime/stress/pi-tests/Makefile | ||
134 | index 1881f75..266e0b8 100644 | ||
135 | --- a/testcases/realtime/stress/pi-tests/Makefile | ||
136 | +++ b/testcases/realtime/stress/pi-tests/Makefile | ||
137 | @@ -24,4 +24,9 @@ top_srcdir ?= ../../../.. | ||
138 | |||
139 | include $(top_srcdir)/include/mk/env_pre.mk | ||
140 | include $(abs_srcdir)/../../config.mk | ||
141 | + | ||
142 | +ifeq ($(LIBC),musl) | ||
143 | +FILTER_OUT_MAKE_TARGETS := testpi-3 | ||
144 | +endif | ||
145 | + | ||
146 | include $(top_srcdir)/include/mk/generic_leaf_target.mk | ||
147 | -- | ||
148 | 2.7.4 | ||
149 | |||