treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / powerpc / kernel / vdso64 / Makefile
blob32ebb3522ea19c90165fac2909f20f618e428e67
1 # SPDX-License-Identifier: GPL-2.0
2 # List of files in the vdso, has to be asm only for now
4 obj-vdso64 = sigtramp.o gettimeofday.o datapage.o cacheflush.o note.o getcpu.o
6 # Build rules
8 targets := $(obj-vdso64) vdso64.so vdso64.so.dbg
9 obj-vdso64 := $(addprefix $(obj)/, $(obj-vdso64))
11 GCOV_PROFILE := n
12 KCOV_INSTRUMENT := n
13 UBSAN_SANITIZE := n
15 ccflags-y := -shared -fno-common -fno-builtin -nostdlib \
16 -Wl,-soname=linux-vdso64.so.1 -Wl,--hash-style=both
17 asflags-y := -D__VDSO64__ -s
19 obj-y += vdso64_wrapper.o
20 extra-y += vdso64.lds
21 CPPFLAGS_vdso64.lds += -P -C -U$(ARCH)
23 # Force dependency (incbin is bad)
24 $(obj)/vdso64_wrapper.o : $(obj)/vdso64.so
26 # link rule for the .so file, .lds has to be first
27 $(obj)/vdso64.so.dbg: $(src)/vdso64.lds $(obj-vdso64) FORCE
28 $(call if_changed,vdso64ld)
30 # strip rule for the .so file
31 $(obj)/%.so: OBJCOPYFLAGS := -S
32 $(obj)/%.so: $(obj)/%.so.dbg FORCE
33 $(call if_changed,objcopy)
35 # actual build commands
36 quiet_cmd_vdso64ld = VDSO64L $@
37 cmd_vdso64ld = $(CC) $(c_flags) -o $@ -Wl,-T$(filter %.lds,$^) $(filter %.o,$^)
39 # install commands for the unstripped file
40 quiet_cmd_vdso_install = INSTALL $@
41 cmd_vdso_install = cp $(obj)/$@.dbg $(MODLIB)/vdso/$@
43 vdso64.so: $(obj)/vdso64.so.dbg
44 @mkdir -p $(MODLIB)/vdso
45 $(call cmd,vdso_install)
47 vdso_install: vdso64.so