2015-06-21 01:10:28 +00:00
|
|
|
ifndef CROSS_COMPILE
|
2014-09-25 18:23:48 +00:00
|
|
|
# vdso_test won't build for glibc < 2.16, so disable it
|
|
|
|
# hostprogs-y := vdso_test
|
2014-09-25 18:23:43 +00:00
|
|
|
hostprogs-$(CONFIG_X86) := vdso_standalone_test_x86
|
|
|
|
vdso_standalone_test_x86-objs := vdso_standalone_test_x86.o parse_vdso.o
|
2014-09-25 18:23:09 +00:00
|
|
|
vdso_test-objs := parse_vdso.o vdso_test.o
|
|
|
|
|
|
|
|
# Tell kbuild to always build the programs
|
2014-09-25 18:23:43 +00:00
|
|
|
always := $(hostprogs-y)
|
2014-09-25 18:23:09 +00:00
|
|
|
|
|
|
|
HOSTCFLAGS := -I$(objtree)/usr/include -std=gnu99
|
2014-09-25 18:23:43 +00:00
|
|
|
HOSTCFLAGS_vdso_standalone_test_x86.o := -fno-asynchronous-unwind-tables -fno-stack-protector
|
|
|
|
HOSTLOADLIBES_vdso_standalone_test_x86 := -nostdlib
|
2014-10-08 19:49:24 +00:00
|
|
|
ifeq ($(CONFIG_X86_32),y)
|
|
|
|
HOSTLOADLIBES_vdso_standalone_test_x86 += -lgcc_s
|
|
|
|
endif
|
2015-06-21 01:10:28 +00:00
|
|
|
endif
|