]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: makefile fix build of .i file in external module case
authorVictor Kamensky <kamensky@cisco.com>
Tue, 30 Oct 2018 23:37:10 +0000 (16:37 -0700)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 2 Nov 2018 17:16:48 +0000 (17:16 +0000)
commitc424f16427b37e8a34d9b7365f9640cd1dc2fb4c
tree86abe971b497a2b01d924e89ebd64c824a933918
parentbc203956449389980ed6303b30cb9eca4ce9965c
arm64: makefile fix build of .i file in external module case

After '25becc7add88 arm64: fix vdso-offsets.h dependency' if
one will try to build .i file in case of external kernel module,
build fails complaining that prepare0 target is missing. This
issue came up with SystemTap when it tries to build variety
of .i files for its own generated kernel modules trying to
figure given kernel features/capabilities.

The issue is that prepare0 is defined in top level Makefile
only if KBUILD_EXTMOD is not defined. .i file rule depends
on prepare and in case KBUILD_EXTMOD defined top level Makefile
contains empty rule for prepare. But after mentioned commit
arch/arm64/Makefile would introduce dependency on prepare0
through its own prepare target.

Fix it to put proper ifdef KBUILD_EXTMOD around code introduced
by mentioned commit. It matches what top level Makefile does.

Acked-by: Kevin Brodsky <kevin.brodsky@arm.com>
Signed-off-by: Victor Kamensky <kamensky@cisco.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/Makefile