X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fx86_64%2Fia32%2FMakefile;h=6f359010419738157f4bf5b2cc1359aace4ef461;hb=refs%2Fheads%2Fvserver;hp=b3dfcb542dbf414f5dbf3b866ed3dd2c85d938a3;hpb=16c70f8c1b54b61c3b951b6fb220df250fe09b32;p=linux-2.6.git diff --git a/arch/x86_64/ia32/Makefile b/arch/x86_64/ia32/Makefile index b3dfcb542..6f3590104 100644 --- a/arch/x86_64/ia32/Makefile +++ b/arch/x86_64/ia32/Makefile @@ -14,11 +14,19 @@ obj-$(CONFIG_IA32_AOUT) += ia32_aout.o audit-class-$(CONFIG_AUDIT) := audit.o obj-$(CONFIG_IA32_EMULATION) += $(audit-class-y) +ifdef CONFIG_XEN +$(obj)/syscall32_syscall.o: \ + $(foreach F,int80 sysenter syscall,$(obj)/vsyscall-$F.so) + +targets := $(foreach F,int80 sysenter syscall,vsyscall-$F.o vsyscall-$F.so) + +else $(obj)/syscall32_syscall.o: \ $(foreach F,sysenter syscall,$(obj)/vsyscall-$F.so) # Teach kbuild about targets targets := $(foreach F,sysenter syscall,vsyscall-$F.o vsyscall-$F.so) +endif # The DSO images are built using a special linker script quiet_cmd_syscall = SYSCALL $@ @@ -37,13 +45,8 @@ AFLAGS_vsyscall-syscall.o = -m32 -Wa,-32 -Iarch/i386/kernel ifdef CONFIG_XEN AFLAGS_vsyscall-int80.o = -m32 -Wa,-32 -Iarch/i386/kernel -CFLAGS_syscall32-xen.o += -DUSE_INT80 -AFLAGS_syscall32_syscall-xen.o += -DUSE_INT80 - -$(obj)/syscall32_syscall-xen.o: \ - $(foreach F,int80 sysenter syscall,$(obj)/vsyscall-$F.so) - -targets := $(foreach F,int80 sysenter syscall,vsyscall-$F.o vsyscall-$F.so) +CFLAGS_syscall32.o += -DUSE_INT80 +AFLAGS_syscall32_syscall.o += -DUSE_INT80 include $(srctree)/scripts/Makefile.xen