brintos

brintos / linux-shallow public Read only

0
0
Text · 1.7 KiB · 1cf14a8 Raw
44 lines · plain
1# SPDX-License-Identifier: GPL-2.02include ../../../scripts/Makefile.arch3 4TEST_GEN_PROGS := vdso_test_gettimeofday5TEST_GEN_PROGS += vdso_test_getcpu6TEST_GEN_PROGS += vdso_test_abi7TEST_GEN_PROGS += vdso_test_clock_getres8ifeq ($(ARCH),$(filter $(ARCH),x86 x86_64))9TEST_GEN_PROGS += vdso_standalone_test_x8610endif11TEST_GEN_PROGS += vdso_test_correctness12TEST_GEN_PROGS += vdso_test_getrandom13TEST_GEN_PROGS += vdso_test_chacha14 15CFLAGS := -std=gnu99 -O216 17ifeq ($(CONFIG_X86_32),y)18LDLIBS += -lgcc_s19endif20 21include ../lib.mk22$(OUTPUT)/vdso_test_gettimeofday: parse_vdso.c vdso_test_gettimeofday.c23$(OUTPUT)/vdso_test_getcpu: parse_vdso.c vdso_test_getcpu.c24$(OUTPUT)/vdso_test_abi: parse_vdso.c vdso_test_abi.c25$(OUTPUT)/vdso_test_clock_getres: vdso_test_clock_getres.c26 27$(OUTPUT)/vdso_standalone_test_x86: vdso_standalone_test_x86.c parse_vdso.c28$(OUTPUT)/vdso_standalone_test_x86: CFLAGS +=-nostdlib -fno-asynchronous-unwind-tables -fno-stack-protector29 30$(OUTPUT)/vdso_test_correctness: vdso_test_correctness.c31$(OUTPUT)/vdso_test_correctness: LDFLAGS += -ldl32 33$(OUTPUT)/vdso_test_getrandom: parse_vdso.c34$(OUTPUT)/vdso_test_getrandom: CFLAGS += -isystem $(top_srcdir)/tools/include \35                                         $(KHDR_INCLUDES) \36                                         -isystem $(top_srcdir)/include/uapi37 38$(OUTPUT)/vdso_test_chacha: vgetrandom-chacha.S39$(OUTPUT)/vdso_test_chacha: CFLAGS += -idirafter $(top_srcdir)/tools/include \40                                      -idirafter $(top_srcdir)/tools/include/generated \41                                      -idirafter $(top_srcdir)/arch/$(SRCARCH)/include \42                                      -idirafter $(top_srcdir)/include \43                                      -Wa,--noexecstack44