[PATCH] Adjust gitignore for /build

Alper Nebi Yasak alpernebiyasak at gmail.com
Wed Sep 6 07:04:01 CEST 2023


On 2023-09-04 22:18 +05:30, Simon Glass wrote:
> Hi Rong,
> 
> On Sun, 3 Sept 2023 at 20:50, Rong Tao <rtoax at foxmail.com> wrote:
>>
>> From: Rong Tao <rongtao at 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 at 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


More information about the U-Boot mailing list