diff options
| author | Masahiro Yamada <[email protected]> | 2019-04-07 10:43:51 +0000 |
|---|---|---|
| committer | Masahiro Yamada <[email protected]> | 2019-04-09 13:51:56 +0000 |
| commit | a788b2ed81abeb949325fd50d7527f45203c1b21 (patch) | |
| tree | f20f94a39e6906f3f26443fc5f3deca417be89ee /scripts/documentation-file-ref-check | |
| parent | kbuild: remove unneeded dependency for include/config/kernel.release (diff) | |
| download | kernel-a788b2ed81abeb949325fd50d7527f45203c1b21.tar.gz kernel-a788b2ed81abeb949325fd50d7527f45203c1b21.zip | |
kbuild: check arch/$(SRCARCH)/include/generated before out-of-tree build
After cross-compiling the kernel, "make mrproper" should be executed
with the proper ARCH= option. Otherwise, stale objects will remain
under arch/$(SRCARCH)/.
One bad scenario is like this:
$ make ARCH=arm defconfig all # cross-compile the kernel for arm
$ make mrproper # mrproper for host-arch (i.e. x86)
$ make ARCH=arm O=build_dir defconfig all
If you miss ARCH= for mrproper and cross-compile the kernel with O=
and ARCH= options, Kbuild will happily start to build, but may fail
due to stale objects in the srctree.
If $(srctree)/arch/$(SRCARCH)/include/generated/ exists, let's stop
the out-of-tree build. To detect this, mrproper should clean only
arch/$(SRCARCH)/include/generated/.
Signed-off-by: Masahiro Yamada <[email protected]>
Diffstat (limited to 'scripts/documentation-file-ref-check')
0 files changed, 0 insertions, 0 deletions
