2 # List of files in the vdso, has to be asm only for now
4 obj-vdso32-
$(CONFIG_PPC64
) = getcpu.o
5 obj-vdso32
= sigtramp.o gettimeofday.o datapage.o cacheflush.o note.o \
10 ifeq ($(CONFIG_PPC32
),y
)
14 targets
:= $(obj-vdso32
) vdso32.so vdso32.so.dbg
15 obj-vdso32
:= $(addprefix $(obj
)/, $(obj-vdso32
))
20 ccflags-y
:= -shared
-fno-common
-fno-builtin
21 ccflags-y
+= -nostdlib
-Wl
,-soname
=linux-vdso32.so
.1 \
22 $(call cc-ldoption
, -Wl
$(comma
)--hash-style
=both
)
23 asflags-y
:= -D__VDSO32__
-s
25 obj-y
+= vdso32_wrapper.o
27 CPPFLAGS_vdso32.lds
+= -P
-C
-Upowerpc
29 # Force dependency (incbin is bad)
30 $(obj
)/vdso32_wrapper.o
: $(obj
)/vdso32.so
32 # link rule for the .so file, .lds has to be first
33 $(obj
)/vdso32.so.dbg
: $(src
)/vdso32.lds
$(obj-vdso32
)
34 $(call if_changed
,vdso32ld
)
36 # strip rule for the .so file
37 $(obj
)/%.so
: OBJCOPYFLAGS
:= -S
38 $(obj
)/%.so
: $(obj
)/%.so.dbg FORCE
39 $(call if_changed
,objcopy
)
41 # assembly rules for the .S files
42 $(obj-vdso32
): %.o
: %.S
43 $(call if_changed_dep
,vdso32as
)
45 # actual build commands
46 quiet_cmd_vdso32ld
= VDSO32L
$@
47 cmd_vdso32ld
= $(CROSS32CC
) $(c_flags
) -Wl
,-T
$^
-o
$@
48 quiet_cmd_vdso32as
= VDSO32A
$@
49 cmd_vdso32as
= $(CROSS32CC
) $(a_flags
) -c
-o
$@
$<
51 # install commands for the unstripped file
52 quiet_cmd_vdso_install
= INSTALL
$@
53 cmd_vdso_install
= cp
$(obj
)/$@.dbg
$(MODLIB
)/vdso
/$@
55 vdso32.so
: $(obj
)/vdso32.so.dbg
56 @mkdir
-p
$(MODLIB
)/vdso
57 $(call cmd
,vdso_install
)
59 vdso_install
: vdso32.so