diff options
Diffstat (limited to 'arch/powerpc/kernel/vdso32/Makefile')
-rw-r--r-- | arch/powerpc/kernel/vdso32/Makefile | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/vdso32/Makefile b/arch/powerpc/kernel/vdso32/Makefile new file mode 100644 index 000000000000..758331d4d1a5 --- /dev/null +++ b/arch/powerpc/kernel/vdso32/Makefile | |||
@@ -0,0 +1,40 @@ | |||
1 | |||
2 | # List of files in the vdso, has to be asm only for now | ||
3 | |||
4 | obj-vdso32 = sigtramp.o gettimeofday.o datapage.o cacheflush.o note.o | ||
5 | |||
6 | # Build rules | ||
7 | |||
8 | ifeq ($(CONFIG_PPC32),y) | ||
9 | CROSS32CC := $(CC) | ||
10 | endif | ||
11 | |||
12 | targets := $(obj-vdso32) vdso32.so | ||
13 | obj-vdso32 := $(addprefix $(obj)/, $(obj-vdso32)) | ||
14 | |||
15 | |||
16 | EXTRA_CFLAGS := -shared -s -fno-common -fno-builtin | ||
17 | EXTRA_CFLAGS += -nostdlib -Wl,-soname=linux-vdso32.so.1 | ||
18 | EXTRA_AFLAGS := -D__VDSO32__ -s | ||
19 | |||
20 | obj-y += vdso32_wrapper.o | ||
21 | extra-y += vdso32.lds | ||
22 | CPPFLAGS_vdso32.lds += -P -C -U$(ARCH) | ||
23 | |||
24 | # Force dependency (incbin is bad) | ||
25 | $(obj)/vdso32_wrapper.o : $(obj)/vdso32.so | ||
26 | |||
27 | # link rule for the .so file, .lds has to be first | ||
28 | $(obj)/vdso32.so: $(src)/vdso32.lds $(obj-vdso32) | ||
29 | $(call if_changed,vdso32ld) | ||
30 | |||
31 | # assembly rules for the .S files | ||
32 | $(obj-vdso32): %.o: %.S | ||
33 | $(call if_changed_dep,vdso32as) | ||
34 | |||
35 | # actual build commands | ||
36 | quiet_cmd_vdso32ld = VDSO32L $@ | ||
37 | cmd_vdso32ld = $(CROSS32CC) $(c_flags) -Wl,-T $^ -o $@ | ||
38 | quiet_cmd_vdso32as = VDSO32A $@ | ||
39 | cmd_vdso32as = $(CROSS32CC) $(a_flags) -c -o $@ $< | ||
40 | |||