diff mbox series

[04/11,RFC] gitignore: Create .gitignore file for tools/firmware/

Message ID 202009092153.089LrJm8039196@m5p.com
State New
Headers show
Series None | expand

Commit Message

Elliott Mitchell Sept. 3, 2020, 3:59 a.m. UTC
The portion of the global .gitignore attributeable to tools/firmware/ is
significant.  As such, create a local .gitignore file.

Several duplicate lines have been filtered out.

Several overlapping lines were merged ("_rombios*_.c" and "rombios*.s"
cover more than previous authors thought).

Slashes were left at the start of all filenames.  Entries without slashes
match files in subdirectories, entries with a slash anywhere are a
specific path.  I feel it is more consistent to have leading slashes on
all full paths.

Signed-off-by: Elliott Mitchell <ehem+xen@m5p.com>

---
Looking at this later, I'm pretty sure a "*.sym" entry should be added.
"/*.sym" and "/rombios/rombios.sym" exist, that seems a likely name for
an assembler informational output file.

I also notice this curious pattern with "mk_dsdt" and "[ds]sdt*".  Those
show in tools/libxl and tools/firmware/hvmloader.  Alas these are
distinct .gitignore files.

---
 .gitignore                | 33 ---------------------------------
 tools/firmware/.gitignore | 29 +++++++++++++++++++++++++++++
 2 files changed, 29 insertions(+), 33 deletions(-)
 create mode 100644 tools/firmware/.gitignore
diff mbox series

Patch

diff --git a/.gitignore b/.gitignore
index 507f1eb0cd..08800a11d5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -113,28 +113,6 @@  tools/debugger/gdb/gdb-6.2.1-linux-i386-xen/*
 tools/debugger/gdb/gdb-6.2.1/*
 tools/debugger/gdbsx/gdbsx
 tools/debugger/xenitp/xenitp
-tools/firmware/*/biossums
-tools/firmware/*.sym
-tools/firmware/*bios/*bios*.txt
-tools/firmware/etherboot/gpxe/*
-tools/firmware/extboot/extboot.img
-tools/firmware/extboot/signrom
-tools/firmware/hvmloader/dsdt*
-tools/firmware/hvmloader/hvmloader
-tools/firmware/hvmloader/mk_dsdt
-tools/firmware/hvmloader/roms.h
-tools/firmware/hvmloader/roms.inc
-tools/firmware/hvmloader/ssdt*
-tools/firmware/rombios/BIOS-bochs-[^/]*
-tools/firmware/rombios/_rombios[^/]*_.c
-tools/firmware/rombios/rombios[^/]*.s
-tools/firmware/rombios/32bit/32bitbios_flat.h
-tools/firmware/vgabios/vbetables-gen
-tools/firmware/vgabios/vbetables.h
-tools/firmware/xen-dir/linkfarm.stamp*
-tools/firmware/xen-dir/xen-root
-tools/firmware/xen-dir/xen-shim
-tools/firmware/xen-dir/xen-shim-syms
 tools/flask/utils/flask-getenforce
 tools/flask/utils/flask-get-bool
 tools/flask/utils/flask-loadpolicy
@@ -289,15 +267,6 @@  tools/qemu-xen-dir
 tools/qemu-xen-traditional-dir-remote
 tools/qemu-xen-traditional-dir
 
-tools/firmware/seabios-dir-remote
-tools/firmware/seabios-dir
-
-tools/firmware/ovmf-dir-remote
-tools/firmware/ovmf-dir
-
-tools/firmware/rombios/_rombios_.c
-tools/firmware/rombios/rombios.s
-tools/firmware/rombios/rombios.sym
 tools/include/xen-foreign/checker.c
 tools/include/xen-foreign/x86_32.h
 tools/include/xen-foreign/x86_64.h
@@ -313,7 +282,6 @@  tools/libxl/testidl.c
 tools/libxl/libxl-save-helper
 tools/libxl/test_timedereg
 tools/libxl/test_fdderegrace
-tools/firmware/etherboot/eb-roms.h
 tools/libvchan/vchan-node[12]
 tools/libvchan/vchan-socket-proxy
 tools/ocaml/*/.ocamldep.make
@@ -345,7 +313,6 @@  tools/ocaml/test/list_domains
 tools/ocaml/test/dmesg
 tools/ocaml/test/raise_exception
 tools/debugger/kdd/kdd
-tools/firmware/etherboot/ipxe/
 tools/python/xen/lowlevel/xl/_pyxl_types.c
 tools/python/xen/lowlevel/xl/_pyxl_types.h
 tools/xenstore/xenstore-watch
diff --git a/tools/firmware/.gitignore b/tools/firmware/.gitignore
new file mode 100644
index 0000000000..8a1a83e44b
--- /dev/null
+++ b/tools/firmware/.gitignore
@@ -0,0 +1,29 @@ 
+/*.sym
+/*/biossums
+/*bios/*bios*.txt
+/etherboot/eb-roms.h
+/etherboot/gpxe/
+/etherboot/ipxe/
+/extboot/extboot.img
+/extboot/signrom
+/hvmloader/dsdt*
+/hvmloader/hvmloader
+/hvmloader/mk_dsdt
+/hvmloader/roms.h
+/hvmloader/roms.inc
+/hvmloader/ssdt*
+/ovmf-dir
+/ovmf-dir-remote
+/rombios/32bit/32bitbios_flat.h
+/rombios/BIOS-bochs-[^/]*
+/rombios/_rombios*_.c
+/rombios/rombios*.s
+/rombios/rombios.sym
+/seabios-dir
+/seabios-dir-remote
+/vgabios/vbetables-gen
+/vgabios/vbetables.h
+/xen-dir/linkfarm.stamp*
+/xen-dir/xen-root
+/xen-dir/xen-shim
+/xen-dir/xen-shim-syms