]> git.ipfire.org Git - thirdparty/linux.git/commit
kbuild: set correct abs_srctree and abs_objtree for package builds
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 26 Jun 2023 23:30:12 +0000 (08:30 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Tue, 27 Jun 2023 16:34:16 +0000 (01:34 +0900)
commit5fa94ceb793e93870541dc5a1235aec87b0871bc
tree1d3c3bb63ceac871a154440a0f657c3f2b51f5b4
parent71025b8565a383223ea2d94325db37cdabbcc453
kbuild: set correct abs_srctree and abs_objtree for package builds

When you run 'make rpm-pkg', the rpmbuild tool builds the kernel in
rpmbuild/BUILD, but $(abs_srctree) and $(abs_objtree) point to the
directory path where make was started, not the kernel is actually
being built. The same applies to 'make snap-pkg'. Fix it.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Makefile