percpu_counter: use this_cpu_ptr() instead of per_cpu_ptr()
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / powerpc / kernel / vdso64 / Makefile
blob8c500d8622e4d8d7696099b684b0ad519c63a8a4
1 # List of files in the vdso, has to be asm only for now
3 obj-vdso64 = sigtramp.o gettimeofday.o datapage.o cacheflush.o note.o
5 # Build rules
7 targets := $(obj-vdso64) vdso64.so vdso64.so.dbg
8 obj-vdso64 := $(addprefix $(obj)/, $(obj-vdso64))
10 GCOV_PROFILE := n
12 ccflags-y := -shared -fno-common -fno-builtin
13 ccflags-y += -nostdlib -Wl,-soname=linux-vdso64.so.1 \
14 $(call cc-ldoption, -Wl$(comma)--hash-style=sysv)
15 asflags-y := -D__VDSO64__ -s
17 obj-y += vdso64_wrapper.o
18 extra-y += vdso64.lds
19 CPPFLAGS_vdso64.lds += -P -C -U$(ARCH)
21 # Force dependency (incbin is bad)
22 $(obj)/vdso64_wrapper.o : $(obj)/vdso64.so
24 # link rule for the .so file, .lds has to be first
25 $(obj)/vdso64.so.dbg: $(src)/vdso64.lds $(obj-vdso64)
26 $(call if_changed,vdso64ld)
28 # strip rule for the .so file
29 $(obj)/%.so: OBJCOPYFLAGS := -S
30 $(obj)/%.so: $(obj)/%.so.dbg FORCE
31 $(call if_changed,objcopy)
33 # assembly rules for the .S files
34 $(obj-vdso64): %.o: %.S
35 $(call if_changed_dep,vdso64as)
37 # actual build commands
38 quiet_cmd_vdso64ld = VDSO64L $@
39 cmd_vdso64ld = $(CC) $(c_flags) -Wl,-T $^ -o $@
40 quiet_cmd_vdso64as = VDSO64A $@
41 cmd_vdso64as = $(CC) $(a_flags) -c -o $@ $<
43 # install commands for the unstripped file
44 quiet_cmd_vdso_install = INSTALL $@
45 cmd_vdso_install = cp $(obj)/$@.dbg $(MODLIB)/vdso/$@
47 vdso64.so: $(obj)/vdso64.so.dbg
48 @mkdir -p $(MODLIB)/vdso
49 $(call cmd,vdso_install)
51 vdso_install: vdso64.so