lkml.org 
[lkml]   [2014]   [Sep]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/2] [PATCH] Documentation: update vDSO makefile to build portable examples
Date
Signed-off-by: Peter Foley <pefoley2@pefoley.com>
---
Documentation/vDSO/Makefile | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/Documentation/vDSO/Makefile b/Documentation/vDSO/Makefile
index 6cbd612..d87bb29 100644
--- a/Documentation/vDSO/Makefile
+++ b/Documentation/vDSO/Makefile
@@ -1,9 +1,12 @@
# List of programs to build
-hostprogs-$(CONFIG_X86) := vdso_test
+hostprogs-y := vdso_test
+hostprogs-$(CONFIG_X86) := vdso_standalone_test_x86
+vdso_standalone_test_x86-objs := vdso_standalone_test_x86.o parse_vdso.o
vdso_test-objs := parse_vdso.o vdso_test.o

# Tell kbuild to always build the programs
-##always := $(hostprogs-y)
+always := $(hostprogs-y)

HOSTCFLAGS := -I$(objtree)/usr/include -std=gnu99
-HOSTLDFLAGS = -nostdlib -fno-asynchronous-unwind-tables
+HOSTCFLAGS_vdso_standalone_test_x86.o := -fno-asynchronous-unwind-tables -fno-stack-protector
+HOSTLOADLIBES_vdso_standalone_test_x86 := -nostdlib
--
2.1.0


\
 
 \ /
  Last update: 2014-09-09 01:21    [W:0.483 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site