[PATCH] gitignore: ignore /build
Sascha Hauer
s.hauer at pengutronix.de
Mon Oct 20 02:44:59 PDT 2025
On Fri, Oct 17, 2025 at 12:22:13PM +0200, Jonas Rebmann wrote:
> Documentation such as Documentation/boards/kvx.rst and tooling such as
> conftest.py suggests /build is a good choice for build output directory.
>
> Therefore, include it in .gitignore.
>
> Signed-off-by: Jonas Rebmann <jre at pengutronix.de>
> ---
> .gitignore | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/.gitignore b/.gitignore
> index 98bb4dac89..32d54b8fbe 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -53,6 +53,7 @@ policy-list
> /TAGS
> /barebox*
> /System.map
> +/build
I have nothing against adding this here. I just wondered why my build
directories don't show up in git status and realized the barebox
toplevel Makefile already creates a .gitignore file in the build
directory:
{ echo "# this is build directory, ignore it"; echo "*"; } > .gitignore
Any idea why this doesn't happen in your case?
Sascha
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list