2005-05-01 09:59:10 -06:00
|
|
|
*.a
|
|
|
|
*.aux
|
2012-11-14 02:55:00 -07:00
|
|
|
*.bc
|
2005-05-01 09:59:10 -06:00
|
|
|
*.bin
|
2011-05-23 12:55:42 -06:00
|
|
|
*.bz2
|
2016-05-23 16:09:38 -06:00
|
|
|
*.c.[012]*.*
|
2011-05-23 12:55:42 -06:00
|
|
|
*.cis
|
2005-05-01 09:59:10 -06:00
|
|
|
*.cpio
|
2008-10-15 23:01:48 -06:00
|
|
|
*.csp
|
|
|
|
*.dsp
|
2005-05-01 09:59:10 -06:00
|
|
|
*.dvi
|
2008-10-15 23:01:48 -06:00
|
|
|
*.elf
|
2005-05-01 09:59:10 -06:00
|
|
|
*.eps
|
2008-09-01 16:09:51 -06:00
|
|
|
*.fw
|
2011-05-23 12:55:42 -06:00
|
|
|
*.gcno
|
|
|
|
*.gcov
|
2008-10-15 23:01:48 -06:00
|
|
|
*.gen.S
|
2005-05-01 09:59:10 -06:00
|
|
|
*.gif
|
|
|
|
*.grep
|
|
|
|
*.grp
|
|
|
|
*.gz
|
|
|
|
*.html
|
2007-05-23 14:58:03 -06:00
|
|
|
*.i
|
2005-05-01 09:59:10 -06:00
|
|
|
*.jpeg
|
|
|
|
*.ko
|
2012-11-14 02:55:00 -07:00
|
|
|
*.ll
|
2005-05-01 09:59:10 -06:00
|
|
|
*.log
|
|
|
|
*.lst
|
2011-05-23 12:55:42 -06:00
|
|
|
*.lzma
|
|
|
|
*.lzo
|
|
|
|
*.mo
|
2007-05-23 14:58:03 -06: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 00:17:57 -06:00
|
|
|
*.mod
|
2005-05-01 09:59:10 -06:00
|
|
|
*.mod.c
|
|
|
|
*.o
|
2007-07-31 01:37:26 -06:00
|
|
|
*.o.*
|
2011-05-23 12:55:42 -06:00
|
|
|
*.order
|
2005-05-01 09:59:10 -06:00
|
|
|
*.orig
|
|
|
|
*.out
|
2011-05-23 12:55:42 -06:00
|
|
|
*.patch
|
2005-05-01 09:59:10 -06:00
|
|
|
*.pdf
|
2012-11-14 02:55:00 -07:00
|
|
|
*.plist
|
2005-05-01 09:59:10 -06:00
|
|
|
*.png
|
2011-05-23 12:55:42 -06:00
|
|
|
*.pot
|
2005-05-01 09:59:10 -06:00
|
|
|
*.ps
|
|
|
|
*.rej
|
|
|
|
*.s
|
|
|
|
*.sgml
|
|
|
|
*.so
|
2008-10-15 23:01:48 -06:00
|
|
|
*.so.dbg
|
2007-05-23 14:58:03 -06:00
|
|
|
*.symtypes
|
|
|
|
*.tab.c
|
|
|
|
*.tab.h
|
2005-05-01 09:59:10 -06:00
|
|
|
*.tex
|
|
|
|
*.ver
|
2005-05-05 17:15:52 -06:00
|
|
|
*.xml
|
2011-05-23 12:55:42 -06:00
|
|
|
*.xz
|
2005-05-01 09:59:10 -06:00
|
|
|
*_MODULES
|
|
|
|
*_vga16.c
|
2005-04-16 16:25:56 -06:00
|
|
|
*~
|
2011-05-23 12:55:42 -06:00
|
|
|
\#*#
|
2007-05-23 14:58:03 -06:00
|
|
|
*.9
|
2005-05-01 09:59:10 -06:00
|
|
|
.*
|
2011-05-23 12:55:42 -06:00
|
|
|
.*.d
|
2007-10-17 00:30:30 -06:00
|
|
|
.mm
|
2005-05-01 09:59:10 -06:00
|
|
|
53c700_d.h
|
|
|
|
CVS
|
|
|
|
ChangeSet
|
2011-05-23 12:55:42 -06:00
|
|
|
GPATH
|
|
|
|
GRTAGS
|
|
|
|
GSYMS
|
|
|
|
GTAGS
|
2005-07-16 09:43:49 -06:00
|
|
|
Image
|
2008-10-15 23:01:48 -06:00
|
|
|
Module.markers
|
2005-05-01 09:59:10 -06:00
|
|
|
Module.symvers
|
|
|
|
PENDING
|
|
|
|
SCCS
|
|
|
|
System.map*
|
|
|
|
TAGS
|
2011-05-23 12:55:42 -06:00
|
|
|
aconf
|
|
|
|
af_names.h
|
2005-04-16 16:25:56 -06:00
|
|
|
aic7*reg.h*
|
|
|
|
aic7*reg_print.c*
|
2005-05-01 09:59:10 -06:00
|
|
|
aic7*seq.h*
|
2005-04-16 16:25:56 -06:00
|
|
|
aicasm
|
|
|
|
aicdb.h*
|
2011-05-23 12:55:42 -06:00
|
|
|
altivec*.c
|
2007-05-02 11:27:21 -06:00
|
|
|
asm-offsets.h
|
|
|
|
asm_offsets.h
|
2005-04-16 16:25:56 -06:00
|
|
|
autoconf.h*
|
2009-10-22 13:38:26 -06:00
|
|
|
av_permissions.h
|
2005-04-16 16:25:56 -06:00
|
|
|
bbootsect
|
|
|
|
bin2c
|
|
|
|
binkernel.spec
|
|
|
|
bootsect
|
2008-10-15 23:01:48 -06:00
|
|
|
bounds.h
|
2005-04-16 16:25:56 -06:00
|
|
|
bsetup
|
|
|
|
btfixupprep
|
|
|
|
build
|
|
|
|
bvmlinux
|
|
|
|
bzImage*
|
2011-05-23 12:55:42 -06:00
|
|
|
capability_names.h
|
2011-01-05 17:27:15 -07:00
|
|
|
capflags.c
|
2005-04-16 16:25:56 -06:00
|
|
|
classlist.h*
|
|
|
|
comp*.log
|
2005-05-01 09:59:10 -06:00
|
|
|
compile.h*
|
2007-05-23 14:58:03 -06:00
|
|
|
conf
|
2005-04-16 16:25:56 -06:00
|
|
|
config
|
|
|
|
config-*
|
2011-05-23 12:55:42 -06:00
|
|
|
config.mak
|
|
|
|
config.mak.autogen
|
2005-04-16 16:25:56 -06:00
|
|
|
conmakehash
|
|
|
|
consolemap_deftbl.c*
|
2008-10-15 23:01:48 -06:00
|
|
|
cpustr.h
|
2005-05-01 09:59:10 -06:00
|
|
|
crc32table.h*
|
2005-04-16 16:25:56 -06:00
|
|
|
cscope.*
|
2008-10-15 23:01:48 -06:00
|
|
|
defkeymap.c
|
2005-04-16 16:25:56 -06:00
|
|
|
devlist.h*
|
2017-01-16 15:31:15 -07:00
|
|
|
devicetable-offsets.h
|
2011-05-23 12:55:42 -06:00
|
|
|
dnotify_test
|
|
|
|
dslm
|
2017-01-16 15:31:15 -07:00
|
|
|
dtc
|
2007-05-23 14:58:03 -06:00
|
|
|
elf2ecoff
|
2005-05-01 09:59:10 -06:00
|
|
|
elfconfig.h*
|
2011-01-05 17:27:15 -07:00
|
|
|
evergreen_reg_safe.h
|
2005-04-16 16:25:56 -06:00
|
|
|
fixdep
|
2009-10-22 13:38:26 -06:00
|
|
|
flask.h
|
2005-04-16 16:25:56 -06:00
|
|
|
fore200e_mkfirm
|
|
|
|
fore200e_pca_fw.c*
|
2007-05-23 14:58:03 -06:00
|
|
|
gconf
|
2019-04-29 08:53:50 -06:00
|
|
|
gconf-cfg
|
2005-04-16 16:25:56 -06:00
|
|
|
gen-devlist
|
2005-05-01 09:59:10 -06:00
|
|
|
gen_crc32table
|
|
|
|
gen_init_cpio
|
2009-10-17 13:33:34 -06:00
|
|
|
generated
|
2009-10-22 13:38:26 -06:00
|
|
|
genheaders
|
2005-04-16 16:25:56 -06:00
|
|
|
genksyms
|
2007-05-23 14:58:03 -06:00
|
|
|
*_gray256.c
|
2011-05-23 12:55:42 -06:00
|
|
|
hpet_example
|
|
|
|
hugepage-mmap
|
|
|
|
hugepage-shm
|
2008-10-15 23:01:48 -06:00
|
|
|
ihex2fw
|
2011-01-05 17:27:15 -07:00
|
|
|
inat-tables.c
|
2005-04-16 16:25:56 -06:00
|
|
|
initramfs_list
|
2011-01-05 17:27:15 -07:00
|
|
|
int16.c
|
|
|
|
int1.c
|
|
|
|
int2.c
|
|
|
|
int32.c
|
|
|
|
int4.c
|
|
|
|
int8.c
|
2005-05-01 09:59:10 -06:00
|
|
|
kallsyms
|
2008-10-15 23:01:48 -06:00
|
|
|
keywords.c
|
2005-04-16 16:25:56 -06:00
|
|
|
ksym.c*
|
|
|
|
ksym.h*
|
2017-01-16 15:31:15 -07:00
|
|
|
*lex.c
|
|
|
|
*lex.*.c
|
2011-05-23 12:55:42 -06:00
|
|
|
linux
|
2005-05-01 09:59:10 -06:00
|
|
|
logo_*.c
|
2005-04-16 16:25:56 -06:00
|
|
|
logo_*_clut224.c
|
|
|
|
logo_*_mono.c
|
2005-08-03 12:49:18 -06:00
|
|
|
mach-types
|
2005-07-16 09:43:49 -06:00
|
|
|
mach-types.h
|
2007-05-23 14:58:03 -06:00
|
|
|
machtypes.h
|
2005-04-16 16:25:56 -06:00
|
|
|
map
|
2011-05-23 12:55:42 -06:00
|
|
|
map_hugetlb
|
2007-05-23 14:58:03 -06:00
|
|
|
mconf
|
2019-04-29 08:53:50 -06:00
|
|
|
mconf-cfg
|
2007-05-23 14:58:03 -06:00
|
|
|
miboot*
|
2005-05-01 09:59:10 -06:00
|
|
|
mk_elfconfig
|
2007-05-23 14:58:03 -06:00
|
|
|
mkboot
|
|
|
|
mkbugboot
|
2008-10-15 23:01:48 -06:00
|
|
|
mkcpustr
|
2005-04-16 16:25:56 -06:00
|
|
|
mkdep
|
2007-05-23 14:58:03 -06:00
|
|
|
mkprep
|
2011-05-23 12:55:42 -06:00
|
|
|
mkregtable
|
2005-05-01 09:59:10 -06:00
|
|
|
mktables
|
2007-05-23 14:58:03 -06: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 11:45:36 -06:00
|
|
|
mkutf8data
|
2005-05-01 09:59:10 -06:00
|
|
|
modpost
|
2011-01-05 17:27:15 -07:00
|
|
|
modules.builtin
|
2019-04-29 10:11:14 -06:00
|
|
|
modules.builtin.modinfo
|
2019-10-29 06:38:07 -06:00
|
|
|
modules.nsdeps
|
2008-04-18 09:18:16 -06:00
|
|
|
modules.order
|
2005-04-16 16:25:56 -06:00
|
|
|
modversions.h*
|
2011-05-23 12:55:42 -06:00
|
|
|
nconf
|
2019-04-29 08:53:50 -06:00
|
|
|
nconf-cfg
|
2008-10-15 23:01:48 -06:00
|
|
|
ncscope.*
|
2005-06-23 01:10:09 -06:00
|
|
|
offset.h
|
2005-04-16 16:25:56 -06:00
|
|
|
oui.c*
|
2011-05-23 12:55:42 -06:00
|
|
|
page-types
|
2008-10-15 23:01:48 -06:00
|
|
|
parse.c
|
|
|
|
parse.h
|
2007-05-23 14:58:03 -06:00
|
|
|
patches*
|
|
|
|
pca200e.bin
|
|
|
|
pca200e_ecd.bin2
|
2011-05-23 12:55:42 -06:00
|
|
|
perf.data
|
|
|
|
perf.data.old
|
|
|
|
perf-archive
|
2007-05-23 14:58:03 -06:00
|
|
|
piggyback
|
2011-05-23 12:55:42 -06:00
|
|
|
piggy.gzip
|
2011-01-05 17:27:15 -07:00
|
|
|
piggy.S
|
2005-05-01 09:59:10 -06:00
|
|
|
pnmtologo
|
2005-04-16 16:25:56 -06:00
|
|
|
ppc_defs.h*
|
2005-05-01 09:59:10 -06:00
|
|
|
pss_boot.h
|
2007-05-23 14:58:03 -06:00
|
|
|
qconf
|
2019-04-29 08:53:50 -06:00
|
|
|
qconf-cfg
|
2011-01-05 17:27:15 -07:00
|
|
|
r100_reg_safe.h
|
|
|
|
r200_reg_safe.h
|
|
|
|
r300_reg_safe.h
|
|
|
|
r420_reg_safe.h
|
|
|
|
r600_reg_safe.h
|
2017-05-06 00:37:45 -06:00
|
|
|
randomize_layout_hash.h
|
|
|
|
randomize_layout_seed.h
|
2011-05-23 12:55:42 -06:00
|
|
|
recordmcount
|
2007-05-23 14:58:03 -06:00
|
|
|
relocs
|
2011-05-23 12:55:42 -06:00
|
|
|
rlim_names.h
|
2011-01-05 17:27:15 -07:00
|
|
|
rn50_reg_safe.h
|
|
|
|
rs600_reg_safe.h
|
|
|
|
rv515_reg_safe.h
|
2007-05-23 14:58:03 -06:00
|
|
|
series
|
2005-04-16 16:25:56 -06:00
|
|
|
setup
|
2007-07-31 01:37:26 -06:00
|
|
|
setup.bin
|
|
|
|
setup.elf
|
2017-01-16 15:31:15 -07:00
|
|
|
sortextable
|
2007-05-23 14:58:03 -06:00
|
|
|
sImage
|
2005-04-16 16:25:56 -06:00
|
|
|
sm_tbl*
|
|
|
|
split-include
|
2008-10-15 23:01:48 -06:00
|
|
|
syscalltab.h
|
2011-01-05 17:27:15 -07:00
|
|
|
tables.c
|
2005-04-16 16:25:56 -06:00
|
|
|
tags
|
2011-05-23 12:55:42 -06:00
|
|
|
test_get_len
|
2007-05-23 14:58:03 -06:00
|
|
|
tftpboot.img
|
2008-04-18 09:28:35 -06:00
|
|
|
timeconst.h
|
2005-04-16 16:25:56 -06:00
|
|
|
times.h*
|
2005-05-01 09:59:10 -06:00
|
|
|
trix_boot.h
|
2006-09-22 13:37:56 -06:00
|
|
|
utsrelease.h*
|
2008-10-15 23:01:48 -06:00
|
|
|
vdso-syms.lds
|
2007-10-17 00:30:30 -06:00
|
|
|
vdso.lds
|
2008-10-15 23:01:48 -06: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-16 16:25:56 -06:00
|
|
|
version.h*
|
2011-05-23 12:55:42 -06:00
|
|
|
vmImage
|
2005-04-16 16:25:56 -06:00
|
|
|
vmlinux
|
|
|
|
vmlinux-*
|
2007-05-23 14:58:03 -06:00
|
|
|
vmlinux.aout
|
2011-05-23 12:55:42 -06:00
|
|
|
vmlinux.bin.all
|
2008-10-15 23:01:48 -06: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-05-31 23:57:11 -06:00
|
|
|
vmlinux.symvers
|
2011-05-23 12:55:42 -06:00
|
|
|
vmlinuz
|
2011-01-05 17:27:15 -07:00
|
|
|
voffset.h
|
2005-04-16 16:25:56 -06:00
|
|
|
vsyscall.lds
|
2008-10-15 23:01:48 -06:00
|
|
|
vsyscall_32.lds
|
2005-05-01 09:59:10 -06:00
|
|
|
wanxlfw.inc
|
2005-05-05 17:15:52 -06:00
|
|
|
uImage
|
2007-05-23 14:58:03 -06: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 11:45:36 -06:00
|
|
|
utf8data.h
|
2008-10-15 23:01:48 -06:00
|
|
|
wakeup.bin
|
|
|
|
wakeup.elf
|
|
|
|
wakeup.lds
|
2007-05-23 14:58:03 -06:00
|
|
|
zImage*
|
2011-01-05 17:27:15 -07:00
|
|
|
zoffset.h
|