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