The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / polarssl / 0001-no-test-suite.patch
1 Add BUILD_TESTS option to disable test suite
2
3 By default, PolarSSL builds a fairly extensive test suite to validate
4 the library. In the context of Buildroot, building this test suite is
5 not really useful, so we add a BUILD_TESTS to disable its build.
6
7 [Gustavo: update for 1.2.11]
8 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
10
11 diff -Nura polarssl-1.2.11.orig/CMakeLists.txt polarssl-1.2.11/CMakeLists.txt
12 --- polarssl-1.2.11.orig/CMakeLists.txt 2014-07-11 17:14:43.414651327 -0300
13 +++ polarssl-1.2.11/CMakeLists.txt      2014-07-11 17:23:00.573498626 -0300
14 @@ -49,9 +49,11 @@
15  add_subdirectory(library)
16  add_subdirectory(include)
17  
18 -if(CMAKE_COMPILER_IS_GNUCC)
19 +option(BUILD_TESTS "Build tests." ON)
20 +
21 +if(CMAKE_COMPILER_IS_GNUCC AND BUILD_TESTS)
22    add_subdirectory(tests)
23 -endif(CMAKE_COMPILER_IS_GNUCC)
24 +endif(CMAKE_COMPILER_IS_GNUCC AND BUILD_TESTS)
25  if(CMAKE_COMPILER_IS_CLANG)
26    add_subdirectory(tests)
27  endif(CMAKE_COMPILER_IS_CLANG)