Paul Gortmaker | 6a407a8 | 2015-06-20 21:10:28 -0400 | [diff] [blame] | 1 | ifndef CROSS_COMPILE |
Peter Foley | 25b91ac | 2014-09-25 11:23:48 -0700 | [diff] [blame] | 2 | # vdso_test won't build for glibc < 2.16, so disable it |
| 3 | # hostprogs-y := vdso_test |
Peter Foley | 1556582 | 2014-09-25 11:23:43 -0700 | [diff] [blame] | 4 | hostprogs-$(CONFIG_X86) := vdso_standalone_test_x86 |
| 5 | vdso_standalone_test_x86-objs := vdso_standalone_test_x86.o parse_vdso.o |
Peter Foley | adb19fb | 2014-09-25 11:23:09 -0700 | [diff] [blame] | 6 | vdso_test-objs := parse_vdso.o vdso_test.o |
| 7 | |
| 8 | # Tell kbuild to always build the programs |
Peter Foley | 1556582 | 2014-09-25 11:23:43 -0700 | [diff] [blame] | 9 | always := $(hostprogs-y) |
Peter Foley | adb19fb | 2014-09-25 11:23:09 -0700 | [diff] [blame] | 10 | |
| 11 | HOSTCFLAGS := -I$(objtree)/usr/include -std=gnu99 |
Peter Foley | 1556582 | 2014-09-25 11:23:43 -0700 | [diff] [blame] | 12 | HOSTCFLAGS_vdso_standalone_test_x86.o := -fno-asynchronous-unwind-tables -fno-stack-protector |
| 13 | HOSTLOADLIBES_vdso_standalone_test_x86 := -nostdlib |
Peter Foley | 60a95b7 | 2014-10-08 15:49:24 -0400 | [diff] [blame] | 14 | ifeq ($(CONFIG_X86_32),y) |
| 15 | HOSTLOADLIBES_vdso_standalone_test_x86 += -lgcc_s |
| 16 | endif |
Paul Gortmaker | 6a407a8 | 2015-06-20 21:10:28 -0400 | [diff] [blame] | 17 | endif |