2 # List of files in the vdso, has to be asm only for now
4 obj-vdso32 = sigtramp.o gettimeofday.o datapage.o cacheflush.o note.o
8 ifeq ($(CONFIG_PPC32),y)
12 targets := $(obj-vdso32) vdso32.so
13 obj-vdso32 := $(addprefix $(obj)/, $(obj-vdso32))
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
20 obj-y += vdso32_wrapper.o
22 CPPFLAGS_vdso32.lds += -P -C -Upowerpc
24 # Force dependency (incbin is bad)
25 $(obj)/vdso32_wrapper.o : $(obj)/vdso32.so
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)
31 # assembly rules for the .S files
32 $(obj-vdso32): %.o: %.S
33 $(call if_changed_dep,vdso32as)
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 $@ $<