kernel: add workaround to rebuild vdso-o32.so.dbg
[openwrt/openwrt.git] / target / linux / generic / patches-4.4 / 207-mips-vdso-dbg-rebuild-after-genvdso.patch
1 Index: linux-4.4.9/arch/mips/vdso/Makefile
2 ===================================================================
3 --- linux-4.4.9.orig/arch/mips/vdso/Makefile
4 +++ linux-4.4.9/arch/mips/vdso/Makefile
5 @@ -75,7 +75,7 @@ $(obj-vdso): KBUILD_AFLAGS := $(aflags-v
6
7 $(obj)/vdso.lds: KBUILD_CPPFLAGS := $(native-abi)
8
9 -$(obj)/vdso.so.dbg: $(obj)/vdso.lds $(obj-vdso) FORCE
10 +$(obj)/vdso.so.dbg: $(obj)/vdso.lds $(obj-vdso) $(obj)/genvdso FORCE
11 $(call if_changed,vdsold)
12
13 $(obj)/vdso-image.c: $(obj)/vdso.so.dbg $(obj)/genvdso FORCE
14 @@ -109,7 +109,7 @@ $(obj)/vdso-o32.lds: KBUILD_CPPFLAGS :=
15 $(obj)/vdso-o32.lds: $(src)/vdso.lds.S FORCE
16 $(call if_changed_dep,cpp_lds_S)
17
18 -$(obj)/vdso-o32.so.dbg: $(obj)/vdso-o32.lds $(obj-vdso-o32) FORCE
19 +$(obj)/vdso-o32.so.dbg: $(obj)/vdso-o32.lds $(obj-vdso-o32) $(obj)/genvdso FORCE
20 $(call if_changed,vdsold)
21
22 $(obj)/vdso-o32-image.c: VDSO_NAME := o32