From eea85b046aa4cd648834cc4839c4bf9b372f13aa Mon Sep 17 00:00:00 2001 From: Luka Perkov Date: Tue, 10 May 2016 22:36:39 +0000 Subject: [PATCH] kernel: add a workaround to rebuild vdso.so.dbg after genvdso Currently the build fails with 'arch/mips/vdso/vdso.so.dbg' already contains a '.MIPS.abiflags' section if the file already exists from a prior build. Add a makefile rule to force the rebuild of vdso.so.dbg if genvdso has has been changed to workaround the failure. Signed-off-by: Jo-Philipp Wich SVN-Revision: 49334 --- .../207-mips-vdso-dbg-rebuild-after-genvdso.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 target/linux/generic/patches-4.4/207-mips-vdso-dbg-rebuild-after-genvdso.patch diff --git a/target/linux/generic/patches-4.4/207-mips-vdso-dbg-rebuild-after-genvdso.patch b/target/linux/generic/patches-4.4/207-mips-vdso-dbg-rebuild-after-genvdso.patch new file mode 100644 index 0000000000..3d25e8062b --- /dev/null +++ b/target/linux/generic/patches-4.4/207-mips-vdso-dbg-rebuild-after-genvdso.patch @@ -0,0 +1,11 @@ +--- a/arch/mips/vdso/Makefile ++++ b/arch/mips/vdso/Makefile +@@ -75,7 +75,7 @@ $(obj-vdso): KBUILD_AFLAGS := $(aflags-v + + $(obj)/vdso.lds: KBUILD_CPPFLAGS := $(native-abi) + +-$(obj)/vdso.so.dbg: $(obj)/vdso.lds $(obj-vdso) FORCE ++$(obj)/vdso.so.dbg: $(obj)/vdso.lds $(obj-vdso) $(obj)/genvdso FORCE + $(call if_changed,vdsold) + + $(obj)/vdso-image.c: $(obj)/vdso.so.dbg $(obj)/genvdso FORCE -- 2.30.2