summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/valgrind/valgrind/remove-arm-variant-specific.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/valgrind/valgrind/remove-arm-variant-specific.patch')
-rw-r--r--meta/recipes-devtools/valgrind/valgrind/remove-arm-variant-specific.patch67
1 files changed, 67 insertions, 0 deletions
diff --git a/meta/recipes-devtools/valgrind/valgrind/remove-arm-variant-specific.patch b/meta/recipes-devtools/valgrind/valgrind/remove-arm-variant-specific.patch
new file mode 100644
index 0000000000..46dea60eb3
--- /dev/null
+++ b/meta/recipes-devtools/valgrind/valgrind/remove-arm-variant-specific.patch
@@ -0,0 +1,67 @@
1Remove tests that require thumb compiler flags
2
3Default compiler options for arm machines are incompatible with the
4'-mthumb' compiler option imposed by the intdiv and lrt test
5applications, so those two are removed from the ptest build.
6
7Upstream-Status: Pending
8
9Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
10
11diff --git a/none/tests/arm/Makefile.am b/none/tests/arm/Makefile.am
12index 2a19f5b..ccdeb77 100644
13--- a/none/tests/arm/Makefile.am
14+++ b/none/tests/arm/Makefile.am
15@@ -16,15 +16,16 @@ EXTRA_DIST = \
16 vcvt_fixed_float_VFP.vgtest \
17 vfp.stdout.exp vfp.stderr.exp vfp.vgtest
18
19+# For yocto:
20+# Only include tests that don't require Thumb.
21+# Only use CFLAGS passed in by the build system.
22+# Some tests may fail, but all tests must compile.
23 check_PROGRAMS = \
24 allexec \
25- intdiv \
26- ldrt \
27 ldrt_arm \
28 neon128 \
29 neon64 \
30 v6intARM \
31- v6intThumb \
32 v6media \
33 vcvt_fixed_float_VFP \
34 vfp
35@@ -34,32 +35,3 @@ AM_CXXFLAGS += @FLAG_M32@
36 AM_CCASFLAGS += @FLAG_M32@
37
38 allexec_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@
39-
40-# These two are specific to their ARM/Thumb respectively and so we
41-# hardwire -marm/-mthumb. neon64 and neon128 are compilable on both,
42-# however, ask for them to be compiled on thumb, as that looks
43-# like that's going to be the more common use case. They also
44-# need special helping w.r.t -mfpu and -mfloat-abi, though.
45-# Also force -O0 since -O takes hundreds of MB of memory
46-# for v6intThumb.c.
47-v6intARM_CFLAGS = $(AM_CFLAGS) -g -O0 -mcpu=cortex-a8 -marm
48-v6intThumb_CFLAGS = $(AM_CFLAGS) -g -O0 -mcpu=cortex-a8 -mthumb
49-
50-v6media_CFLAGS = $(AM_CFLAGS) -g -O0 -mcpu=cortex-a8 -mthumb
51-
52-vfp_CFLAGS = $(AM_CFLAGS) -g -O0 -mcpu=cortex-a8 \
53- -mfpu=neon \
54- -mthumb
55-
56-
57-neon128_CFLAGS = $(AM_CFLAGS) -g -O0 -mcpu=cortex-a8 \
58- -mfpu=neon \
59- -mthumb
60-
61-neon64_CFLAGS = $(AM_CFLAGS) -g -O0 -mcpu=cortex-a8 \
62- -mfpu=neon \
63- -mthumb
64-
65-intdiv_CFLAGS = $(AM_CFLAGS) -g -mcpu=cortex-a15 -mthumb
66-ldrt_CFLAGS = $(AM_CFLAGS) -g -mcpu=cortex-a8 -mthumb
67-ldrt_arm_CFLAGS = $(AM_CFLAGS) -g -mcpu=cortex-a8 -marm