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