.gitignore: prefix local generated files with a slash

The pattern prefixed with '/' matches files in the same directory,
but not ones in sub-directories.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Acked-by: Miguel Ojeda <ojeda@kernel.org>
Acked-by: Rob Herring <robh@kernel.org>
Acked-by: Andra Paraschiv <andraprs@amazon.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Gabriel Krisman Bertazi <krisman@collabora.com>
This commit is contained in:
Masahiro Yamada 2021-04-30 11:03:08 +09:00
parent 77a88274dc
commit 9009b45581
27 changed files with 56 additions and 54 deletions

View File

@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-2.0-only
*.example.dts
processed-schema*.yaml
processed-schema*.json
/processed-schema*.yaml
/processed-schema*.json

4
arch/.gitignore vendored
View File

@ -1,3 +1,3 @@
# SPDX-License-Identifier: GPL-2.0-only
i386
x86_64
/i386/
/x86_64/

4
certs/.gitignore vendored
View File

@ -1,3 +1,3 @@
# SPDX-License-Identifier: GPL-2.0-only
x509_certificate_list
x509_revocation_list
/x509_certificate_list
/x509_revocation_list

View File

@ -1,2 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
ti-emif-asm-offsets.h
/ti-emif-asm-offsets.h

View File

@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-2.0
conmakehash
consolemap_deftbl.c
defkeymap.c
/conmakehash
/consolemap_deftbl.c
/defkeymap.c

View File

@ -1,3 +1,3 @@
# SPDX-License-Identifier: GPL-2.0-only
mkutf8data
utf8data.h
/mkutf8data
/utf8data.h

2
kernel/.gitignore vendored
View File

@ -1,3 +1,3 @@
# SPDX-License-Identifier: GPL-2.0-only
/config_data
kheaders.md5
/kheaders.md5

10
lib/.gitignore vendored
View File

@ -1,6 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
gen_crc32table
gen_crc64table
crc32table.h
crc64table.h
oid_registry_data.c
/crc32table.h
/crc64table.h
/gen_crc32table
/gen_crc64table
/oid_registry_data.c

View File

@ -1,2 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
cfag12864b-example
/cfag12864b-example

View File

@ -1 +1,2 @@
binderfs_example
# SPDX-License-Identifier: GPL-2.0
/binderfs_example

View File

@ -1,2 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
ucon
/ucon

View File

@ -1,2 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
hid-example
/hid-example

View File

@ -1,2 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
mei-amt-version
/mei-amt-version

View File

@ -1,2 +1,2 @@
# SPDX-License-Identifier: GPL-2.0
ne_ioctl_sample
/ne_ioctl_sample

View File

@ -1,2 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
pidfd-metadata
/pidfd-metadata

View File

@ -1,5 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-only
bpf-direct
bpf-fancy
dropper
user-trap
/bpf-direct
/bpf-fancy
/dropper
/user-trap

View File

@ -1,2 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
hpet_example
/hpet_example

View File

@ -1,3 +1,3 @@
# SPDX-License-Identifier: GPL-2.0-only
test-fsmount
test-statx
/test-fsmount
/test-statx

View File

@ -1 +1,2 @@
watch_test
# SPDX-License-Identifier: GPL-2.0-only
/watch_test

View File

@ -1,2 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
watchdog-simple
/watchdog-simple

18
scripts/.gitignore vendored
View File

@ -1,11 +1,11 @@
# SPDX-License-Identifier: GPL-2.0-only
bin2c
kallsyms
unifdef
recordmcount
sorttable
asn1_compiler
extract-cert
sign-file
insert-sys-cert
/asn1_compiler
/bin2c
/extract-cert
/insert-sys-cert
/kallsyms
/module.lds
/recordmcount
/sign-file
/sorttable
/unifdef

View File

@ -1,2 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
fixdep
/fixdep

View File

@ -1,3 +1,3 @@
# SPDX-License-Identifier: GPL-2.0-only
dtc
fdtoverlay
/dtc
/fdtoverlay

View File

@ -1,2 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
randomize_layout_seed.h
/randomize_layout_seed.h

View File

@ -1,2 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
genksyms
/genksyms

View File

@ -1,5 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-only
elfconfig.h
mk_elfconfig
modpost
devicetable-offsets.h
/devicetable-offsets.h
/elfconfig.h
/mk_elfconfig
/modpost

4
usr/.gitignore vendored
View File

@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-2.0-only
gen_init_cpio
initramfs_data.cpio
/gen_init_cpio
/initramfs_data.cpio
/initramfs_inc_data