aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/vdso32/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/vdso32/Makefile')
-rw-r--r--arch/powerpc/kernel/vdso32/Makefile40
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
4obj-vdso32 = sigtramp.o gettimeofday.o datapage.o cacheflush.o note.o
5
6# Build rules
7
8ifeq ($(CONFIG_PPC32),y)
9CROSS32CC := $(CC)
10endif
11
12targets := $(obj-vdso32) vdso32.so
13obj-vdso32 := $(addprefix $(obj)/, $(obj-vdso32))
14
15
16EXTRA_CFLAGS := -shared -s -fno-common -fno-builtin
17EXTRA_CFLAGS += -nostdlib -Wl,-soname=linux-vdso32.so.1
18EXTRA_AFLAGS := -D__VDSO32__ -s
19
20obj-y += vdso32_wrapper.o
21extra-y += vdso32.lds
22CPPFLAGS_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
36quiet_cmd_vdso32ld = VDSO32L $@
37 cmd_vdso32ld = $(CROSS32CC) $(c_flags) -Wl,-T $^ -o $@
38quiet_cmd_vdso32as = VDSO32A $@
39 cmd_vdso32as = $(CROSS32CC) $(a_flags) -c -o $@ $<
40