blob: b12e98770e1f5ea48d714dbce12db2a27c06b2f5 [file] [log] [blame]
Paul Gortmaker6a407a82015-06-20 21:10:28 -04001ifndef CROSS_COMPILE
Peter Foley25b91ac2014-09-25 11:23:48 -07002# vdso_test won't build for glibc < 2.16, so disable it
3# hostprogs-y := vdso_test
Peter Foley15565822014-09-25 11:23:43 -07004hostprogs-$(CONFIG_X86) := vdso_standalone_test_x86
5vdso_standalone_test_x86-objs := vdso_standalone_test_x86.o parse_vdso.o
Peter Foleyadb19fb2014-09-25 11:23:09 -07006vdso_test-objs := parse_vdso.o vdso_test.o
7
8# Tell kbuild to always build the programs
Peter Foley15565822014-09-25 11:23:43 -07009always := $(hostprogs-y)
Peter Foleyadb19fb2014-09-25 11:23:09 -070010
11HOSTCFLAGS := -I$(objtree)/usr/include -std=gnu99
Peter Foley15565822014-09-25 11:23:43 -070012HOSTCFLAGS_vdso_standalone_test_x86.o := -fno-asynchronous-unwind-tables -fno-stack-protector
13HOSTLOADLIBES_vdso_standalone_test_x86 := -nostdlib
Peter Foley60a95b72014-10-08 15:49:24 -040014ifeq ($(CONFIG_X86_32),y)
15HOSTLOADLIBES_vdso_standalone_test_x86 += -lgcc_s
16endif
Paul Gortmaker6a407a82015-06-20 21:10:28 -040017endif