diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-11-22 08:11:54 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-21 10:34:43 +0100 |
commit | 78d19b437554c418e7bdf4ea7196a1693da79851 (patch) | |
tree | cdc11383ec68970d955d1a5955e76d1efd8cfddd /arch/arm/boot/dts/pxa27x.dtsi | |
parent | 22ca9ddf20f6f41bef39c984c85cbb6f74ec4ac2 (diff) |
kbuild: fix single target build for external module
[ Upstream commit e07db28eea38ed4e332b3a89f3995c86b713cb5b ]
Building a single target in an external module fails due to missing
.tmp_versions directory.
For example,
$ make -C /lib/modules/$(uname -r)/build M=$PWD foo.o
will fail in the following way:
CC [M] /home/masahiro/foo/foo.o
/bin/sh: 1: cannot create /home/masahiro/foo/.tmp_versions/foo.mod: Directory nonexistent
This is because $(cmd_crmodverdir) is executed only before building
/, %/, %.ko single targets of external modules. Create .tmp_versions
in the 'prepare' target.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/arm/boot/dts/pxa27x.dtsi')
0 files changed, 0 insertions, 0 deletions