[PATCH] Adjust gitignore for /build

From: Rong Tao rongtao@cestc.cn
/build-* can't ignore /build.
Signed-off-by: Rong Tao rongtao@cestc.cn --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore index 002f95de4feb..9697f0088f80 100644 --- a/.gitignore +++ b/.gitignore @@ -35,7 +35,7 @@ *.tab.[ch]
# Build tree -/build-* +/build*
# # Top-level generic files

Hi Rong,
On Sun, 3 Sept 2023 at 20:50, Rong Tao rtoax@foxmail.com wrote:
From: Rong Tao rongtao@cestc.cn
/build-* can't ignore /build.
How does that directory get created?
Signed-off-by: Rong Tao rongtao@cestc.cn
.gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore index 002f95de4feb..9697f0088f80 100644 --- a/.gitignore +++ b/.gitignore @@ -35,7 +35,7 @@ *.tab.[ch]
# Build tree -/build-* +/build*
#
# Top-level generic files
2.41.0
Regards, Simon

On 2023-09-04 22:18 +05:30, Simon Glass wrote:
Hi Rong,
On Sun, 3 Sept 2023 at 20:50, Rong Tao rtoax@foxmail.com wrote:
From: Rong Tao rongtao@cestc.cn
/build-* can't ignore /build.
How does that directory get created?
Most likely `make O=build` as an attempt to do out-of-tree builds? FWIW, I manually create and use build/$board/ directories for build outputs, but adding "build" to .git/info/exclude is an easy enough alternative.
Signed-off-by: Rong Tao rongtao@cestc.cn
.gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore index 002f95de4feb..9697f0088f80 100644 --- a/.gitignore +++ b/.gitignore @@ -35,7 +35,7 @@ *.tab.[ch]
# Build tree -/build-* +/build*
#
# Top-level generic files
2.41.0
Regards, Simon

On Tue, 5 Sept 2023 at 23:04, Alper Nebi Yasak alpernebiyasak@gmail.com wrote:
On 2023-09-04 22:18 +05:30, Simon Glass wrote:
Hi Rong,
On Sun, 3 Sept 2023 at 20:50, Rong Tao rtoax@foxmail.com wrote:
From: Rong Tao rongtao@cestc.cn
/build-* can't ignore /build.
How does that directory get created?
Most likely `make O=build` as an attempt to do out-of-tree builds? FWIW, I manually create and use build/$board/ directories for build outputs, but adding "build" to .git/info/exclude is an easy enough alternative.
Reviewed-by: Simon Glass sjg@chromium.org
Signed-off-by: Rong Tao rongtao@cestc.cn
.gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore index 002f95de4feb..9697f0088f80 100644 --- a/.gitignore +++ b/.gitignore @@ -35,7 +35,7 @@ *.tab.[ch]
# Build tree -/build-* +/build*
#
# Top-level generic files
2.41.0
Regards, Simon

On Mon, Sep 04, 2023 at 10:50:04AM +0800, Rong Tao wrote:
From: Rong Tao rongtao@cestc.cn
/build-* can't ignore /build.
Signed-off-by: Rong Tao rongtao@cestc.cn Reviewed-by: Simon Glass sjg@chromium.org
Applied to u-boot/next, thanks!
participants (4)
-
Alper Nebi Yasak
-
Rong Tao
-
Simon Glass
-
Tom Rini