Create a .gitignore file in the CANONICAL_O directory

This .gitignore file ignores all files in an output directory and
hence doesn't change the git status.

Remove "/output" entry from the main .gitignore file as it is already
handled by this general approach.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Brandon Maier <brandon.maier@collins.com>
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
This commit is contained in:
Yegor Yefremov 2024-06-26 16:49:01 +00:00 committed by Arnout Vandecappelle
parent 9a66711be1
commit a14c862c08
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,4 +1,3 @@
/output
/dl
/.auto.deps
/.config.cmd

View File

@ -63,6 +63,9 @@ ifneq ($(findstring @,$(CANONICAL_O)),)
$(error The build directory can not contain a '@')
endif
# Create a default .gitignore file that ignores everything
$(shell echo "*" > "$(CANONICAL_O)/.gitignore")
CANONICAL_CURDIR = $(realpath $(CURDIR))
REQ_UMASK = 0022