]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8344/1: VDSO: honor CONFIG_VDSO in Makefile
authorNathan Lynch <nathan_lynch@mentor.com>
Fri, 17 Apr 2015 23:39:16 +0000 (00:39 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 21 Apr 2015 14:28:02 +0000 (15:28 +0100)
commit9d4443c4d47f84162dac640968b3448400b4ce85
tree9bb3174c477c99a575e4d73bf91816ce4f8a47d7
parentac41cfedba7654683e6b25f10bbc1c3948fad860
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>
arch/arm/vdso/Makefile