diff options
author | Roland McGrath <roland@redhat.com> | 2008-01-30 07:30:42 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:30:42 -0500 |
commit | 6c3652efcafa6a6d795093362cb4290c84994b5c (patch) | |
tree | 1587379f45a7145a64c3103b40e12b01c46ea559 /arch/x86/vdso/Makefile | |
parent | 0249c9c1e7505c2b020bcc6deaf1e0415de9943e (diff) |
x86 vDSO: i386 vdso32
This makes the i386 kernel use the new vDSO build in arch/x86/vdso/vdso32/
to replace the old one from arch/x86/kernel/.
Signed-off-by: Roland McGrath <roland@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/vdso/Makefile')
-rw-r--r-- | arch/x86/vdso/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/x86/vdso/Makefile b/arch/x86/vdso/Makefile index a02e1ca2a1bc..ca2aabf8ed39 100644 --- a/arch/x86/vdso/Makefile +++ b/arch/x86/vdso/Makefile | |||
@@ -14,7 +14,8 @@ vdso-install-$(VDSO32-y) += $(vdso32-y:=.so) | |||
14 | vobjs-y := vdso-note.o vclock_gettime.o vgetcpu.o vvar.o | 14 | vobjs-y := vdso-note.o vclock_gettime.o vgetcpu.o vvar.o |
15 | 15 | ||
16 | # files to link into kernel | 16 | # files to link into kernel |
17 | obj-y := vma.o vdso.o | 17 | obj-$(VDSO64-y) += vma.o vdso.o |
18 | obj-$(CONFIG_X86_32) += vdso32.o | ||
18 | 19 | ||
19 | vobjs := $(foreach F,$(vobjs-y),$(obj)/$F) | 20 | vobjs := $(foreach F,$(vobjs-y),$(obj)/$F) |
20 | 21 | ||
@@ -52,7 +53,7 @@ $(obj)/vclock_gettime.o: KBUILD_CFLAGS = $(CFL) | |||
52 | $(obj)/vgetcpu.o: KBUILD_CFLAGS = $(CFL) | 53 | $(obj)/vgetcpu.o: KBUILD_CFLAGS = $(CFL) |
53 | 54 | ||
54 | targets += vdso-syms.lds | 55 | targets += vdso-syms.lds |
55 | obj-y += vdso-syms.lds | 56 | obj-$(VDSO64-y) += vdso-syms.lds |
56 | 57 | ||
57 | # | 58 | # |
58 | # Match symbols in the DSO that look like VDSO*; produce a file of constants. | 59 | # Match symbols in the DSO that look like VDSO*; produce a file of constants. |
@@ -68,6 +69,7 @@ $(obj)/%-syms.lds: $(obj)/%.so.dbg FORCE | |||
68 | # | 69 | # |
69 | # Build multiple 32-bit vDSO images to choose from at boot time. | 70 | # Build multiple 32-bit vDSO images to choose from at boot time. |
70 | # | 71 | # |
72 | obj-$(VDSO32-y) += vdso32-syms.lds | ||
71 | vdso32.so-$(CONFIG_X86_32) += int80 | 73 | vdso32.so-$(CONFIG_X86_32) += int80 |
72 | vdso32.so-$(VDSO32-y) += sysenter | 74 | vdso32.so-$(VDSO32-y) += sysenter |
73 | 75 | ||
@@ -84,6 +86,8 @@ targets += vdso32/note.o $(vdso32.so-y:%=vdso32/%.o) | |||
84 | 86 | ||
85 | extra-y += $(vdso32.so-y:%=vdso32-%.so) | 87 | extra-y += $(vdso32.so-y:%=vdso32-%.so) |
86 | 88 | ||
89 | $(obj)/vdso32.o: $(vdso32.so-y:%=$(obj)/vdso32-%.so) | ||
90 | |||
87 | KBUILD_AFLAGS_32 := $(filter-out -m64,$(KBUILD_AFLAGS)) | 91 | KBUILD_AFLAGS_32 := $(filter-out -m64,$(KBUILD_AFLAGS)) |
88 | $(vdso32.so-y:%=$(obj)/vdso32-%.so.dbg): KBUILD_AFLAGS = $(KBUILD_AFLAGS_32) | 92 | $(vdso32.so-y:%=$(obj)/vdso32-%.so.dbg): KBUILD_AFLAGS = $(KBUILD_AFLAGS_32) |
89 | $(vdso32.so-y:%=$(obj)/vdso32-%.so.dbg): asflags-$(CONFIG_X86_64) += -m32 | 93 | $(vdso32.so-y:%=$(obj)/vdso32-%.so.dbg): asflags-$(CONFIG_X86_64) += -m32 |