Skip to contentSkip to conversation

ARM: VDSO: minor fixes for 4.1

PATCH New Nathan Lynch 2 participants 4 messages Apr 17, 2015 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

cover ARM: VDSO: minor fixes for 4.1

While investigating Arnd's v3 build issue, I became aware of a couple of shortcomings unrelated to runtime in the VDSO code. With these applied, 'make arch/arm/vdso/' should behave better, and .gitignore is populated properly (I almost always build in a separate directory, so I hadn't noticed until now).

Nathan Lynch (2):
ARM: VDSO: add build artifacts to .gitignore
ARM: VDSO: honor CONFIG_VDSO in Makefile

 arch/arm/vdso/.gitignore | 2 ++
 arch/arm/vdso/Makefile   | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)
Signature · 1 line
1.9.3
#1 lore raw

PATCH 1/2 ARM: VDSO: add build artifacts to .gitignore

vdsomunge and vdso.so.raw are outputs that don't get matched by the normal ignore rules.

---
 arch/arm/vdso/.gitignore | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/vdso/.gitignore +2 -0
index f8b69d84238e..6b47f6e0b032 100644
@@ -1 +1,3 @@
 vdso.lds
+vdso.so.raw
+vdsomunge
Signature · 1 line
1.9.3
#2 lore raw

PATCH 2/2 ARM: VDSO: honor CONFIG_VDSO in Makefile

In reply to Nathan Lynch

When CONFIG_VDSO=n, the build normally does not enter arch/arm/vdso/ because arch/arm/Makefile does not add it to core-y.

However, if the user runs 'make arch/arm/vdso/' the VDSO targets will get visited. This is because the VDSO Makefile itself does not consider the value of CONFIG_VDSO.

It is arguably better and more consistent behavior to generate an empty built-in.o when CONFIG_VDSO=n and the user attempts to build arch/arm/vdso/. It's nicer because it doesn't try to build things that Kconfig dependencies are there to prevent (e.g. the dependency on AEABI), and it's less confusing than building objects that won't be used in the final image.

---
 arch/arm/vdso/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/vdso/Makefile +2 -2
index bab0a8be7924..8aa791051029 100644
@@ -10,8 +10,8 @@ ccflags-y := -shared -fPIC -fno-common -fno-builtin -fno-stack-protector
 ccflags-y += -nostdlib -Wl,-soname=linux-vdso.so.1 -DDISABLE_BRANCH_PROFILING
 ccflags-y += -Wl,--no-undefined $(call cc-ldoption, -Wl$(comma)--hash-style=sysv)
 
-obj-y += vdso.o
-extra-y += vdso.lds
+obj-$(CONFIG_VDSO) += vdso.o
+extra-$(CONFIG_VDSO) += vdso.lds
 CPPFLAGS_vdso.lds += -P -C -U$(ARCH)
 
 CFLAGS_REMOVE_vdso.o = -pg
Signature · 1 line
1.9.3
#3 lore raw

cover ARM: VDSO: minor fixes for 4.1

In reply to Nathan Lynch
Quoted 5 lines · Nathan Lynch

While investigating Arnd's v3 build issue, I became aware of a couple of shortcomings unrelated to runtime in the VDSO code. With these applied, 'make arch/arm/vdso/' should behave better, and .gitignore is populated properly (I almost always build in a separate directory, so I hadn't noticed until now).

I think both of these are fine.

Signature · 2 lines
FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up
according to speedtest.net.