2005-05-01 19:59:10 +04:00
|
|
|
*.a
|
|
|
|
*.aux
|
2012-11-14 13:55:00 +04:00
|
|
|
*.bc
|
2005-05-01 19:59:10 +04:00
|
|
|
*.bin
|
2011-05-23 22:55:42 +04:00
|
|
|
*.bz2
|
2016-05-24 01:09:38 +03:00
|
|
|
*.c.[012]*.*
|
2011-05-23 22:55:42 +04:00
|
|
|
*.cis
|
2005-05-01 19:59:10 +04:00
|
|
|
*.cpio
|
2008-10-16 09:01:48 +04:00
|
|
|
*.csp
|
|
|
|
*.dsp
|
2005-05-01 19:59:10 +04:00
|
|
|
*.dvi
|
2008-10-16 09:01:48 +04:00
|
|
|
*.elf
|
2005-05-01 19:59:10 +04:00
|
|
|
*.eps
|
2008-09-02 02:09:51 +04:00
|
|
|
*.fw
|
2011-05-23 22:55:42 +04:00
|
|
|
*.gcno
|
|
|
|
*.gcov
|
2008-10-16 09:01:48 +04:00
|
|
|
*.gen.S
|
2005-05-01 19:59:10 +04:00
|
|
|
*.gif
|
|
|
|
*.grep
|
|
|
|
*.grp
|
|
|
|
*.gz
|
|
|
|
*.html
|
2007-05-24 00:58:03 +04:00
|
|
|
*.i
|
2005-05-01 19:59:10 +04:00
|
|
|
*.jpeg
|
|
|
|
*.ko
|
2012-11-14 13:55:00 +04:00
|
|
|
*.ll
|
2005-05-01 19:59:10 +04:00
|
|
|
*.log
|
|
|
|
*.lst
|
2011-05-23 22:55:42 +04:00
|
|
|
*.lzma
|
|
|
|
*.lzo
|
|
|
|
*.mo
|
2007-05-24 00:58:03 +04:00
|
|
|
*.moc
|
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 09:17:57 +03:00
|
|
|
*.mod
|
2005-05-01 19:59:10 +04:00
|
|
|
*.mod.c
|
|
|
|
*.o
|
2007-07-31 11:37:26 +04:00
|
|
|
*.o.*
|
2011-05-23 22:55:42 +04:00
|
|
|
*.order
|
2005-05-01 19:59:10 +04:00
|
|
|
*.orig
|
|
|
|
*.out
|
2011-05-23 22:55:42 +04:00
|
|
|
*.patch
|
2005-05-01 19:59:10 +04:00
|
|
|
*.pdf
|
2012-11-14 13:55:00 +04:00
|
|
|
*.plist
|
2005-05-01 19:59:10 +04:00
|
|
|
*.png
|
2011-05-23 22:55:42 +04:00
|
|
|
*.pot
|
2005-05-01 19:59:10 +04:00
|
|
|
*.ps
|
|
|
|
*.rej
|
|
|
|
*.s
|
|
|
|
*.sgml
|
|
|
|
*.so
|
2008-10-16 09:01:48 +04:00
|
|
|
*.so.dbg
|
2007-05-24 00:58:03 +04:00
|
|
|
*.symtypes
|
|
|
|
*.tab.c
|
|
|
|
*.tab.h
|
2005-05-01 19:59:10 +04:00
|
|
|
*.tex
|
|
|
|
*.ver
|
2005-05-06 03:15:52 +04:00
|
|
|
*.xml
|
2011-05-23 22:55:42 +04:00
|
|
|
*.xz
|
2020-07-30 22:08:41 +03:00
|
|
|
*.zst
|
2005-05-01 19:59:10 +04:00
|
|
|
*_MODULES
|
|
|
|
*_vga16.c
|
2005-04-17 02:25:56 +04:00
|
|
|
*~
|
2011-05-23 22:55:42 +04:00
|
|
|
\#*#
|
2007-05-24 00:58:03 +04:00
|
|
|
*.9
|
2005-05-01 19:59:10 +04:00
|
|
|
.*
|
2011-05-23 22:55:42 +04:00
|
|
|
.*.d
|
2007-10-17 10:30:30 +04:00
|
|
|
.mm
|
2005-05-01 19:59:10 +04:00
|
|
|
53c700_d.h
|
|
|
|
CVS
|
|
|
|
ChangeSet
|
2011-05-23 22:55:42 +04:00
|
|
|
GPATH
|
|
|
|
GRTAGS
|
|
|
|
GSYMS
|
|
|
|
GTAGS
|
2005-07-16 19:43:49 +04:00
|
|
|
Image
|
2008-10-16 09:01:48 +04:00
|
|
|
Module.markers
|
2005-05-01 19:59:10 +04:00
|
|
|
Module.symvers
|
|
|
|
PENDING
|
|
|
|
SCCS
|
|
|
|
System.map*
|
|
|
|
TAGS
|
2011-05-23 22:55:42 +04:00
|
|
|
aconf
|
|
|
|
af_names.h
|
2005-04-17 02:25:56 +04:00
|
|
|
aic7*reg.h*
|
|
|
|
aic7*reg_print.c*
|
2005-05-01 19:59:10 +04:00
|
|
|
aic7*seq.h*
|
2005-04-17 02:25:56 +04:00
|
|
|
aicasm
|
|
|
|
aicdb.h*
|
2011-05-23 22:55:42 +04:00
|
|
|
altivec*.c
|
2007-05-02 21:27:21 +04:00
|
|
|
asm-offsets.h
|
|
|
|
asm_offsets.h
|
2005-04-17 02:25:56 +04:00
|
|
|
autoconf.h*
|
2009-10-22 23:38:26 +04:00
|
|
|
av_permissions.h
|
2005-04-17 02:25:56 +04:00
|
|
|
bbootsect
|
|
|
|
bin2c
|
|
|
|
binkernel.spec
|
|
|
|
bootsect
|
2008-10-16 09:01:48 +04:00
|
|
|
bounds.h
|
2005-04-17 02:25:56 +04:00
|
|
|
bsetup
|
|
|
|
btfixupprep
|
|
|
|
build
|
|
|
|
bvmlinux
|
|
|
|
bzImage*
|
2011-05-23 22:55:42 +04:00
|
|
|
capability_names.h
|
2011-01-06 03:27:15 +03:00
|
|
|
capflags.c
|
2005-04-17 02:25:56 +04:00
|
|
|
classlist.h*
|
|
|
|
comp*.log
|
2005-05-01 19:59:10 +04:00
|
|
|
compile.h*
|
2007-05-24 00:58:03 +04:00
|
|
|
conf
|
2005-04-17 02:25:56 +04:00
|
|
|
config
|
|
|
|
config-*
|
2011-05-23 22:55:42 +04:00
|
|
|
config.mak
|
|
|
|
config.mak.autogen
|
2005-04-17 02:25:56 +04:00
|
|
|
conmakehash
|
|
|
|
consolemap_deftbl.c*
|
2008-10-16 09:01:48 +04:00
|
|
|
cpustr.h
|
2005-05-01 19:59:10 +04:00
|
|
|
crc32table.h*
|
2005-04-17 02:25:56 +04:00
|
|
|
cscope.*
|
2008-10-16 09:01:48 +04:00
|
|
|
defkeymap.c
|
2005-04-17 02:25:56 +04:00
|
|
|
devlist.h*
|
2017-01-17 01:31:15 +03:00
|
|
|
devicetable-offsets.h
|
2011-05-23 22:55:42 +04:00
|
|
|
dnotify_test
|
|
|
|
dslm
|
2017-01-17 01:31:15 +03:00
|
|
|
dtc
|
2007-05-24 00:58:03 +04:00
|
|
|
elf2ecoff
|
2005-05-01 19:59:10 +04:00
|
|
|
elfconfig.h*
|
2011-01-06 03:27:15 +03:00
|
|
|
evergreen_reg_safe.h
|
2005-04-17 02:25:56 +04:00
|
|
|
fixdep
|
2009-10-22 23:38:26 +04:00
|
|
|
flask.h
|
2005-04-17 02:25:56 +04:00
|
|
|
fore200e_mkfirm
|
|
|
|
fore200e_pca_fw.c*
|
2007-05-24 00:58:03 +04:00
|
|
|
gconf
|
2019-04-29 17:53:50 +03:00
|
|
|
gconf-cfg
|
2005-04-17 02:25:56 +04:00
|
|
|
gen-devlist
|
2005-05-01 19:59:10 +04:00
|
|
|
gen_crc32table
|
|
|
|
gen_init_cpio
|
2009-10-17 23:33:34 +04:00
|
|
|
generated
|
2009-10-22 23:38:26 +04:00
|
|
|
genheaders
|
2005-04-17 02:25:56 +04:00
|
|
|
genksyms
|
2007-05-24 00:58:03 +04:00
|
|
|
*_gray256.c
|
2011-05-23 22:55:42 +04:00
|
|
|
hpet_example
|
|
|
|
hugepage-mmap
|
|
|
|
hugepage-shm
|
2008-10-16 09:01:48 +04:00
|
|
|
ihex2fw
|
2011-01-06 03:27:15 +03:00
|
|
|
inat-tables.c
|
2005-04-17 02:25:56 +04:00
|
|
|
initramfs_list
|
2011-01-06 03:27:15 +03:00
|
|
|
int16.c
|
|
|
|
int1.c
|
|
|
|
int2.c
|
|
|
|
int32.c
|
|
|
|
int4.c
|
|
|
|
int8.c
|
2005-05-01 19:59:10 +04:00
|
|
|
kallsyms
|
2008-10-16 09:01:48 +04:00
|
|
|
keywords.c
|
2005-04-17 02:25:56 +04:00
|
|
|
ksym.c*
|
|
|
|
ksym.h*
|
2017-01-17 01:31:15 +03:00
|
|
|
*lex.c
|
|
|
|
*lex.*.c
|
2011-05-23 22:55:42 +04:00
|
|
|
linux
|
2005-05-01 19:59:10 +04:00
|
|
|
logo_*.c
|
2005-04-17 02:25:56 +04:00
|
|
|
logo_*_clut224.c
|
|
|
|
logo_*_mono.c
|
2005-08-03 22:49:18 +04:00
|
|
|
mach-types
|
2005-07-16 19:43:49 +04:00
|
|
|
mach-types.h
|
2007-05-24 00:58:03 +04:00
|
|
|
machtypes.h
|
2005-04-17 02:25:56 +04:00
|
|
|
map
|
2011-05-23 22:55:42 +04:00
|
|
|
map_hugetlb
|
2007-05-24 00:58:03 +04:00
|
|
|
mconf
|
2019-04-29 17:53:50 +03:00
|
|
|
mconf-cfg
|
2007-05-24 00:58:03 +04:00
|
|
|
miboot*
|
2005-05-01 19:59:10 +04:00
|
|
|
mk_elfconfig
|
2007-05-24 00:58:03 +04:00
|
|
|
mkboot
|
|
|
|
mkbugboot
|
2008-10-16 09:01:48 +04:00
|
|
|
mkcpustr
|
2005-04-17 02:25:56 +04:00
|
|
|
mkdep
|
2007-05-24 00:58:03 +04:00
|
|
|
mkprep
|
2011-05-23 22:55:42 +04:00
|
|
|
mkregtable
|
2005-05-01 19:59:10 +04:00
|
|
|
mktables
|
2007-05-24 00:58:03 +04:00
|
|
|
mktree
|
unicode: refactor the rule for regenerating utf8data.h
scripts/mkutf8data is used only when regenerating utf8data.h,
which never happens in the normal kernel build. However, it is
irrespectively built if CONFIG_UNICODE is enabled.
Moreover, there is no good reason for it to reside in the scripts/
directory since it is only used in fs/unicode/.
Hence, move it from scripts/ to fs/unicode/.
In some cases, we bypass build artifacts in the normal build. The
conventional way to do so is to surround the code with ifdef REGENERATE_*.
For example,
- 7373f4f83c71 ("kbuild: add implicit rules for parser generation")
- 6aaf49b495b4 ("crypto: arm,arm64 - Fix random regeneration of S_shipped")
I rewrote the rule in a more kbuild'ish style.
In the normal build, utf8data.h is just shipped from the check-in file.
$ make
[ snip ]
SHIPPED fs/unicode/utf8data.h
CC fs/unicode/utf8-norm.o
CC fs/unicode/utf8-core.o
CC fs/unicode/utf8-selftest.o
AR fs/unicode/built-in.a
If you want to generate utf8data.h based on UCD, put *.txt files into
fs/unicode/, then pass REGENERATE_UTF8DATA=1 from the command line.
The mkutf8data tool will be automatically compiled to generate the
utf8data.h from the *.txt files.
$ make REGENERATE_UTF8DATA=1
[ snip ]
HOSTCC fs/unicode/mkutf8data
GEN fs/unicode/utf8data.h
CC fs/unicode/utf8-norm.o
CC fs/unicode/utf8-core.o
CC fs/unicode/utf8-selftest.o
AR fs/unicode/built-in.a
I renamed the check-in utf8data.h to utf8data.h_shipped so that this
will work for the out-of-tree build.
You can update it based on the latest UCD like this:
$ make REGENERATE_UTF8DATA=1 fs/unicode/
$ cp fs/unicode/utf8data.h fs/unicode/utf8data.h_shipped
Also, I added entries to .gitignore and dontdiff.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-04-28 20:45:36 +03:00
|
|
|
mkutf8data
|
2005-05-01 19:59:10 +04:00
|
|
|
modpost
|
2011-01-06 03:27:15 +03:00
|
|
|
modules.builtin
|
2019-04-29 19:11:14 +03:00
|
|
|
modules.builtin.modinfo
|
2019-10-29 15:38:07 +03:00
|
|
|
modules.nsdeps
|
2008-04-18 19:18:16 +04:00
|
|
|
modules.order
|
2005-04-17 02:25:56 +04:00
|
|
|
modversions.h*
|
2011-05-23 22:55:42 +04:00
|
|
|
nconf
|
2019-04-29 17:53:50 +03:00
|
|
|
nconf-cfg
|
2008-10-16 09:01:48 +04:00
|
|
|
ncscope.*
|
2005-06-23 11:10:09 +04:00
|
|
|
offset.h
|
2005-04-17 02:25:56 +04:00
|
|
|
oui.c*
|
2011-05-23 22:55:42 +04:00
|
|
|
page-types
|
2008-10-16 09:01:48 +04:00
|
|
|
parse.c
|
|
|
|
parse.h
|
2007-05-24 00:58:03 +04:00
|
|
|
patches*
|
|
|
|
pca200e.bin
|
|
|
|
pca200e_ecd.bin2
|
2011-05-23 22:55:42 +04:00
|
|
|
perf.data
|
|
|
|
perf.data.old
|
|
|
|
perf-archive
|
2007-05-24 00:58:03 +04:00
|
|
|
piggyback
|
2011-05-23 22:55:42 +04:00
|
|
|
piggy.gzip
|
2011-01-06 03:27:15 +03:00
|
|
|
piggy.S
|
2005-05-01 19:59:10 +04:00
|
|
|
pnmtologo
|
2005-04-17 02:25:56 +04:00
|
|
|
ppc_defs.h*
|
2005-05-01 19:59:10 +04:00
|
|
|
pss_boot.h
|
2007-05-24 00:58:03 +04:00
|
|
|
qconf
|
2019-04-29 17:53:50 +03:00
|
|
|
qconf-cfg
|
2011-01-06 03:27:15 +03:00
|
|
|
r100_reg_safe.h
|
|
|
|
r200_reg_safe.h
|
|
|
|
r300_reg_safe.h
|
|
|
|
r420_reg_safe.h
|
|
|
|
r600_reg_safe.h
|
2017-05-06 09:37:45 +03:00
|
|
|
randomize_layout_hash.h
|
|
|
|
randomize_layout_seed.h
|
2011-05-23 22:55:42 +04:00
|
|
|
recordmcount
|
2007-05-24 00:58:03 +04:00
|
|
|
relocs
|
2011-05-23 22:55:42 +04:00
|
|
|
rlim_names.h
|
2011-01-06 03:27:15 +03:00
|
|
|
rn50_reg_safe.h
|
|
|
|
rs600_reg_safe.h
|
|
|
|
rv515_reg_safe.h
|
2007-05-24 00:58:03 +04:00
|
|
|
series
|
2005-04-17 02:25:56 +04:00
|
|
|
setup
|
2007-07-31 11:37:26 +04:00
|
|
|
setup.bin
|
|
|
|
setup.elf
|
2017-01-17 01:31:15 +03:00
|
|
|
sortextable
|
2007-05-24 00:58:03 +04:00
|
|
|
sImage
|
2005-04-17 02:25:56 +04:00
|
|
|
sm_tbl*
|
|
|
|
split-include
|
2008-10-16 09:01:48 +04:00
|
|
|
syscalltab.h
|
2011-01-06 03:27:15 +03:00
|
|
|
tables.c
|
2005-04-17 02:25:56 +04:00
|
|
|
tags
|
2011-05-23 22:55:42 +04:00
|
|
|
test_get_len
|
2007-05-24 00:58:03 +04:00
|
|
|
tftpboot.img
|
2008-04-18 19:28:35 +04:00
|
|
|
timeconst.h
|
2005-04-17 02:25:56 +04:00
|
|
|
times.h*
|
2005-05-01 19:59:10 +04:00
|
|
|
trix_boot.h
|
2006-09-22 23:37:56 +04:00
|
|
|
utsrelease.h*
|
2008-10-16 09:01:48 +04:00
|
|
|
vdso-syms.lds
|
2007-10-17 10:30:30 +04:00
|
|
|
vdso.lds
|
2008-10-16 09:01:48 +04:00
|
|
|
vdso32-int80-syms.lds
|
|
|
|
vdso32-syms.lds
|
|
|
|
vdso32-syscall-syms.lds
|
|
|
|
vdso32-sysenter-syms.lds
|
|
|
|
vdso32.lds
|
|
|
|
vdso32.so.dbg
|
|
|
|
vdso64.lds
|
|
|
|
vdso64.so.dbg
|
2005-04-17 02:25:56 +04:00
|
|
|
version.h*
|
2011-05-23 22:55:42 +04:00
|
|
|
vmImage
|
2005-04-17 02:25:56 +04:00
|
|
|
vmlinux
|
|
|
|
vmlinux-*
|
2007-05-24 00:58:03 +04:00
|
|
|
vmlinux.aout
|
2011-05-23 22:55:42 +04:00
|
|
|
vmlinux.bin.all
|
2008-10-16 09:01:48 +04:00
|
|
|
vmlinux.lds
|
modpost: generate vmlinux.symvers and reuse it for the second modpost
The full build runs modpost twice, first for vmlinux.o and second for
modules.
The first pass dumps all the vmlinux symbols into Module.symvers, but
the second pass parses vmlinux again instead of reusing the dump file,
presumably because it needs to avoid accumulating stale symbols.
Loading symbol info from a dump file is faster than parsing an ELF object.
Besides, modpost deals with various issues to parse vmlinux in the second
pass.
A solution is to make the first pass dumps symbols into a separate file,
vmlinux.symvers. The second pass reads it, and parses module .o files.
The merged symbol information is dumped into Module.symvers in the same
way as before.
This makes further modpost cleanups possible.
Also, it fixes the problem of 'make vmlinux', which previously overwrote
Module.symvers, throwing away module symbols.
I slightly touched scripts/link-vmlinux.sh so that vmlinux is re-linked
when you cross this commit. Otherwise, vmlinux.symvers would not be
generated.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
2020-06-01 08:57:11 +03:00
|
|
|
vmlinux.symvers
|
2011-05-23 22:55:42 +04:00
|
|
|
vmlinuz
|
2011-01-06 03:27:15 +03:00
|
|
|
voffset.h
|
2005-04-17 02:25:56 +04:00
|
|
|
vsyscall.lds
|
2008-10-16 09:01:48 +04:00
|
|
|
vsyscall_32.lds
|
2005-05-01 19:59:10 +04:00
|
|
|
wanxlfw.inc
|
2005-05-06 03:15:52 +04:00
|
|
|
uImage
|
2007-05-24 00:58:03 +04:00
|
|
|
unifdef
|
unicode: refactor the rule for regenerating utf8data.h
scripts/mkutf8data is used only when regenerating utf8data.h,
which never happens in the normal kernel build. However, it is
irrespectively built if CONFIG_UNICODE is enabled.
Moreover, there is no good reason for it to reside in the scripts/
directory since it is only used in fs/unicode/.
Hence, move it from scripts/ to fs/unicode/.
In some cases, we bypass build artifacts in the normal build. The
conventional way to do so is to surround the code with ifdef REGENERATE_*.
For example,
- 7373f4f83c71 ("kbuild: add implicit rules for parser generation")
- 6aaf49b495b4 ("crypto: arm,arm64 - Fix random regeneration of S_shipped")
I rewrote the rule in a more kbuild'ish style.
In the normal build, utf8data.h is just shipped from the check-in file.
$ make
[ snip ]
SHIPPED fs/unicode/utf8data.h
CC fs/unicode/utf8-norm.o
CC fs/unicode/utf8-core.o
CC fs/unicode/utf8-selftest.o
AR fs/unicode/built-in.a
If you want to generate utf8data.h based on UCD, put *.txt files into
fs/unicode/, then pass REGENERATE_UTF8DATA=1 from the command line.
The mkutf8data tool will be automatically compiled to generate the
utf8data.h from the *.txt files.
$ make REGENERATE_UTF8DATA=1
[ snip ]
HOSTCC fs/unicode/mkutf8data
GEN fs/unicode/utf8data.h
CC fs/unicode/utf8-norm.o
CC fs/unicode/utf8-core.o
CC fs/unicode/utf8-selftest.o
AR fs/unicode/built-in.a
I renamed the check-in utf8data.h to utf8data.h_shipped so that this
will work for the out-of-tree build.
You can update it based on the latest UCD like this:
$ make REGENERATE_UTF8DATA=1 fs/unicode/
$ cp fs/unicode/utf8data.h fs/unicode/utf8data.h_shipped
Also, I added entries to .gitignore and dontdiff.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-04-28 20:45:36 +03:00
|
|
|
utf8data.h
|
2008-10-16 09:01:48 +04:00
|
|
|
wakeup.bin
|
|
|
|
wakeup.elf
|
|
|
|
wakeup.lds
|
2007-05-24 00:58:03 +04:00
|
|
|
zImage*
|
2011-01-06 03:27:15 +03:00
|
|
|
zoffset.h
|