• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2017 Linux Test Project
2#
3# This program is free software; you can redistribute it and/or
4# modify it under the terms of the GNU General Public License as
5# published by the Free Software Foundation; either version 2 of
6# the License, or (at your option) any later version.
7#
8# This program is distributed in the hope that it would be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11# GNU General Public License for more details.
12#
13# You should have received a copy of the GNU General Public License
14# along with this program. If not, see <http://www.gnu.org/licenses/>.
15
16top_srcdir		?= ../..
17
18include $(top_srcdir)/include/mk/testcases.mk
19
20CFLAGS			+= -D_GNU_SOURCE
21
22stack_clash:	CFLAGS += -fno-optimize-sibling-calls
23
24cve-2016-7042:	LDLIBS += $(KEYUTILS_LIBS)
25
26cve-2016-7117:	CFLAGS += -pthread
27cve-2016-7117:	LDLIBS += -lrt
28
29cve-2014-0196:  CFLAGS += -pthread
30cve-2014-0196:  LDLIBS += -lrt -lutil
31
32cve-2017-2671:	CFLAGS += -pthread
33cve-2017-2671:	LDLIBS += -lrt
34
35meltdown: CFLAGS += -I$(abs_srcdir)/../realtime/include
36
37ifneq (,$(filter $(HOST_CPU),x86 x86_64))
38meltdown: CFLAGS += -msse2
39endif
40
41cve-2017-17052:	CFLAGS += -pthread
42cve-2017-17053:	CFLAGS += -pthread
43
44cve-2015-3290:	CFLAGS += -pthread
45
46include $(top_srcdir)/include/mk/generic_leaf_target.mk
47