Skip to content

Commit f80f653

Browse files
nlynch-mentorRussell King
authored andcommitted
ARM: 8344/1: VDSO: honor CONFIG_VDSO in Makefile
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. Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 2b507a2 commit f80f653

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/arm/vdso/Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ ccflags-y := -shared -fPIC -fno-common -fno-builtin -fno-stack-protector
1010
ccflags-y += -nostdlib -Wl,-soname=linux-vdso.so.1 -DDISABLE_BRANCH_PROFILING
1111
ccflags-y += -Wl,--no-undefined $(call cc-ldoption, -Wl$(comma)--hash-style=sysv)
1212

13-
obj-y += vdso.o
14-
extra-y += vdso.lds
13+
obj-$(CONFIG_VDSO) += vdso.o
14+
extra-$(CONFIG_VDSO) += vdso.lds
1515
CPPFLAGS_vdso.lds += -P -C -U$(ARCH)
1616

1717
CFLAGS_REMOVE_vdso.o = -pg

0 commit comments

Comments
 (0)