Go to file
Masahiro Yamada 1476fee5c5 kbuild: add a script to remove stale generated files
We maintain .gitignore and Makefiles so build artifacts are properly
ignored by Git, and cleaned up by 'make clean'. However, the code is
always changing; generated files are often moved to another directory,
or removed when they become unnecessary. Such garbage files tend to be
left over in the source tree because people usually git-pull without
cleaning the tree.

This is not only the noise for 'git status', but also a build issue
in some cases.

One solution is to remove a stale file like commit 223c24a7db ("kbuild:
Automatically remove stale <linux/version.h> file") did. Such workaround
should be removed after a while, but we forget about that if we scatter
the workaround code in random places.

So, this commit adds a new script to collect cleanings of stale files.

As a start point, move the code in arch/arm/boot/compressed/Makefile
into this script.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
2021-05-02 00:43:35 +09:00
arch kbuild: add a script to remove stale generated files 2021-05-02 00:43:35 +09:00
block cgroup: rstat: punt root-level optimization to individual controllers 2021-04-30 11:20:37 -07:00
certs
crypto
Documentation New features for ext4 this cycle include support for encrypted 2021-04-30 15:35:30 -07:00
drivers Merge branch 'akpm' (patches from Andrew) 2021-04-30 14:38:01 -07:00
fs New features for ext4 this cycle include support for encrypted 2021-04-30 15:35:30 -07:00
include New features for ext4 this cycle include support for encrypted 2021-04-30 15:35:30 -07:00
init mm: move mem_init_print_info() into mm_init() 2021-04-30 11:20:42 -07:00
ipc
kernel kbuild: update config_data.gz only when the content of .config is changed 2021-05-02 00:43:35 +09:00
lib Merge branch 'akpm' (patches from Andrew) 2021-04-30 14:38:01 -07:00
LICENSES
mm mm/memory-failure: unnecessary amount of unmapping 2021-04-30 11:20:44 -07:00
net net: page_pool: use alloc_pages_bulk in refill code path 2021-04-30 11:20:43 -07:00
samples samples/vfio-mdev/mdpy: use remap_vmalloc_range 2021-04-30 11:20:39 -07:00
scripts kbuild: add a script to remove stale generated files 2021-05-02 00:43:35 +09:00
security
sound sound updates for 5.13 2021-04-30 12:48:14 -07:00
tools Merge branch 'akpm' (patches from Andrew) 2021-04-30 14:38:01 -07:00
usr usr/include: refactor .gitignore 2021-05-02 00:43:34 +09:00
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore .gitignore: ignore only top-level modules.builtin 2021-05-02 00:43:35 +09:00
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS Merge branch 'akpm' (patches from Andrew) 2021-04-30 14:38:01 -07:00
Makefile kbuild: add a script to remove stale generated files 2021-05-02 00:43:35 +09:00
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.