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