2005-10-18 17:26:15 +02:00
|
|
|
#
|
|
|
|
# NOTE! Don't add files that are generated in specific
|
|
|
|
# subdirectories here. Add them in the ".gitignore" file
|
|
|
|
# in that subdirectory instead.
|
|
|
|
#
|
2009-06-05 06:43:10 +02:00
|
|
|
# NOTE! Please use 'git ls-files -i --exclude-standard'
|
2008-06-26 09:54:34 +02:00
|
|
|
# command after changing this file, to see if there are
|
|
|
|
# any tracked files which get ignored after the change.
|
|
|
|
#
|
2017-10-30 16:33:45 +01:00
|
|
|
# Normal rules (sorted alphabetically)
|
2005-10-18 17:26:15 +02:00
|
|
|
#
|
|
|
|
.*
|
2017-10-30 16:33:45 +01:00
|
|
|
*.a
|
2018-03-23 14:04:37 +01:00
|
|
|
*.asn1.[ch]
|
2017-10-30 16:33:45 +01:00
|
|
|
*.bin
|
|
|
|
*.bz2
|
|
|
|
*.c.[012]*.*
|
2018-09-06 20:26:07 +02:00
|
|
|
*.dt.yaml
|
2017-10-30 16:33:46 +01:00
|
|
|
*.dtb
|
|
|
|
*.dtb.S
|
2017-10-30 16:33:45 +01:00
|
|
|
*.dwo
|
|
|
|
*.elf
|
|
|
|
*.gcno
|
|
|
|
*.gz
|
|
|
|
*.i
|
|
|
|
*.ko
|
2018-03-23 14:04:30 +01:00
|
|
|
*.lex.c
|
2017-10-30 16:33:45 +01:00
|
|
|
*.ll
|
|
|
|
*.lst
|
|
|
|
*.lz4
|
|
|
|
*.lzma
|
|
|
|
*.lzo
|
kbuild: create *.mod with full directory path and remove MODVERDIR
While descending directories, Kbuild produces objects for modules,
but do not link final *.ko files; it is done in the modpost.
To keep track of modules, Kbuild creates a *.mod file in $(MODVERDIR)
for every module it is building. Some post-processing steps read the
necessary information from *.mod files. This avoids descending into
directories again. This mechanism was introduced in 2003 or so.
Later, commit 551559e13af1 ("kbuild: implement modules.order") added
modules.order. So, we can simply read it out to know all the modules
with directory paths. This is easier than parsing the first line of
*.mod files.
$(MODVERDIR) has a flat directory structure, that is, *.mod files
are named only with base names. This is based on the assumption that
the module name is unique across the tree. This assumption is really
fragile.
Stephen Rothwell reported a race condition caused by a module name
conflict:
https://lkml.org/lkml/2019/5/13/991
In parallel building, two different threads could write to the same
$(MODVERDIR)/*.mod simultaneously.
Non-unique module names are the source of all kind of troubles, hence
commit 3a48a91901c5 ("kbuild: check uniqueness of module names")
introduced a new checker script.
However, it is still fragile in the build system point of view because
this race happens before scripts/modules-check.sh is invoked. If it
happens again, the modpost will emit unclear error messages.
To fix this issue completely, create *.mod with full directory path
so that two threads never attempt to write to the same file.
$(MODVERDIR) is no longer needed.
Since modules with directory paths are listed in modules.order, Kbuild
is still able to find *.mod files without additional descending.
I also killed cmd_secanalysis; scripts/mod/sumversion.c computes MD4 hash
for modules with MODULE_VERSION(). When CONFIG_DEBUG_SECTION_MISMATCH=y,
it occurs not only in the modpost stage, but also during directory
descending, where sumversion.c may parse stale *.mod files. It would emit
'No such file or directory' warning when an object consisting a module is
renamed, or when a single-obj module is turned into a multi-obj module or
vice versa.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Nicolas Pitre <nico@fluxnic.net>
2019-07-17 08:17:57 +02:00
|
|
|
*.mod
|
2017-10-30 16:33:45 +01:00
|
|
|
*.mod.c
|
2005-10-18 17:26:15 +02:00
|
|
|
*.o
|
2007-07-31 09:37:25 +02:00
|
|
|
*.o.*
|
2017-10-30 16:33:45 +01:00
|
|
|
*.order
|
|
|
|
*.patch
|
2005-10-18 17:26:15 +02:00
|
|
|
*.s
|
2006-01-05 18:10:52 +01:00
|
|
|
*.so
|
2007-10-19 20:35:02 +02:00
|
|
|
*.so.dbg
|
2017-10-30 16:33:45 +01:00
|
|
|
*.su
|
2006-09-16 21:15:44 +02:00
|
|
|
*.symtypes
|
2018-03-23 14:04:30 +01:00
|
|
|
*.tab.[ch]
|
2015-04-16 21:49:24 +02:00
|
|
|
*.tar
|
2011-02-22 10:48:06 +01:00
|
|
|
*.xz
|
2014-04-14 08:56:15 +02:00
|
|
|
Module.symvers
|
2017-10-30 16:33:45 +01:00
|
|
|
modules.builtin
|
2005-10-18 17:26:15 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Top-level generic files
|
|
|
|
#
|
2010-03-13 01:30:23 +01:00
|
|
|
/tags
|
|
|
|
/TAGS
|
|
|
|
/linux
|
|
|
|
/vmlinux
|
2015-04-24 19:27:40 +02:00
|
|
|
/vmlinux.32
|
2015-02-17 22:47:38 +01:00
|
|
|
/vmlinux-gdb.py
|
2010-03-13 01:30:23 +01:00
|
|
|
/vmlinuz
|
|
|
|
/System.map
|
|
|
|
/Module.markers
|
2019-04-29 18:11:14 +02:00
|
|
|
/modules.builtin.modinfo
|
2010-03-13 01:30:23 +01:00
|
|
|
|
2017-09-30 03:10:10 +02:00
|
|
|
#
|
|
|
|
# RPM spec file (make rpm-pkg)
|
|
|
|
#
|
|
|
|
/*.spec
|
|
|
|
|
2011-07-01 01:42:50 +02:00
|
|
|
#
|
|
|
|
# Debian directory (make deb-pkg)
|
|
|
|
#
|
|
|
|
/debian/
|
|
|
|
|
scripts/package: snap-pkg target
Following in footsteps of other targets like 'deb-pkg, 'rpm-pkg' and 'tar-pkg',
this patch adds a 'snap-pkg' target for the creation of a Linux kernel snap
package using the kbuild infrastructure.
A snap, in its general form, is a self contained, sandboxed, universal package
and it is intended to work across multiple distributions and/or devices. A snap
package is distributed as a single compressed squashfs filesystem.
A kernel snap is a snap package carrying the Linux kernel, kernel modules,
accessory files (DTBs, System.map, etc) and a manifesto file. The purpose of a
kernel snap is to carry the Linux kernel during the creation of a system image,
eg. Ubuntu Core, and its subsequent upgrades.
For more information on snap packages: https://snapcraft.io/docs/
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2017-11-27 12:07:34 +01:00
|
|
|
#
|
|
|
|
# Snap directory (make snap-pkg)
|
|
|
|
#
|
|
|
|
/snap/
|
|
|
|
|
2015-02-13 00:01:19 +01:00
|
|
|
#
|
|
|
|
# tar directory (make tar*-pkg)
|
|
|
|
#
|
|
|
|
/tar-install/
|
|
|
|
|
2010-03-13 01:30:23 +01:00
|
|
|
#
|
2019-05-11 05:13:54 +02:00
|
|
|
# We don't want to ignore the following even if they are dot-files
|
2010-03-13 01:30:23 +01:00
|
|
|
#
|
2019-05-11 05:13:54 +02:00
|
|
|
!.clang-format
|
|
|
|
!.cocciconfig
|
|
|
|
!.get_maintainer.ignore
|
|
|
|
!.gitattributes
|
2007-10-16 09:22:21 +02:00
|
|
|
!.gitignore
|
2008-06-26 09:54:34 +02:00
|
|
|
!.mailmap
|
2005-10-18 17:26:15 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Generated include files
|
|
|
|
#
|
2019-04-29 17:17:53 +02:00
|
|
|
/include/config/
|
|
|
|
/include/generated/
|
|
|
|
/include/ksym/
|
|
|
|
/arch/*/include/generated/
|
2005-10-18 17:26:15 +02:00
|
|
|
|
2006-02-27 04:07:24 +01:00
|
|
|
# stgit generated dirs
|
|
|
|
patches-*
|
2006-07-17 07:37:06 +02:00
|
|
|
|
|
|
|
# quilt's files
|
|
|
|
patches
|
|
|
|
series
|
2006-12-22 10:07:32 +01:00
|
|
|
|
|
|
|
# cscope files
|
|
|
|
cscope.*
|
2008-05-22 03:23:10 +02:00
|
|
|
ncscope.*
|
2007-07-16 08:41:52 +02:00
|
|
|
|
2009-06-11 11:21:47 +02:00
|
|
|
# gnu global files
|
|
|
|
GPATH
|
|
|
|
GRTAGS
|
|
|
|
GSYMS
|
|
|
|
GTAGS
|
|
|
|
|
2015-04-16 23:02:41 +02:00
|
|
|
# id-utils files
|
|
|
|
ID
|
|
|
|
|
2007-07-16 08:41:52 +02:00
|
|
|
*.orig
|
2008-03-04 23:28:59 +01:00
|
|
|
*~
|
|
|
|
\#*#
|
2012-09-26 11:09:50 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Leavings from module signing
|
|
|
|
#
|
|
|
|
extra_certificates
|
2015-07-20 22:16:30 +02:00
|
|
|
signing_key.pem
|
2012-09-26 11:09:50 +02:00
|
|
|
signing_key.priv
|
|
|
|
signing_key.x509
|
|
|
|
x509.genkey
|
2014-02-10 23:25:45 +01:00
|
|
|
|
|
|
|
# Kconfig presets
|
2019-05-07 14:48:46 +02:00
|
|
|
/all.config
|
|
|
|
/alldef.config
|
|
|
|
/allmod.config
|
|
|
|
/allno.config
|
|
|
|
/allrandom.config
|
|
|
|
/allyes.config
|
2014-11-25 17:42:54 +01:00
|
|
|
|
|
|
|
# Kdevelop4
|
|
|
|
*.kdev4
|