mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v2] gitignore: ignore /build, /oe-logs, /oe-workdir
@ 2025-10-30  8:41 Jonas Rebmann
  2025-10-30  8:43 ` Jonas Rebmann
  2025-10-30 13:13 ` Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Jonas Rebmann @ 2025-10-30  8:41 UTC (permalink / raw)
  To: Sascha Hauer, BAREBOX; +Cc: Jonas Rebmann

Documentation such as Documentation/boards/kvx.rst and tooling such as
conftest.py suggests /build is a good choice for build output directory.
The build system does set up a .gitignore in the build directory but
this has no effect if /build is a symlink to outside the tree.

Similarly, YOCTOs "devtool" sets up the symlinks /oe-logs and
/oe-workdir to point to the respective paths in yoctos build tree.

Include those in .gitignore.

Signed-off-by: Jonas Rebmann <jre@pengutronix.de>
---
Changes in v2:
- EDITME: describe what is new in this series revision.
- EDITME: use bulletpoints and terse descriptions.
- Link to v1: https://lore.barebox.org/barebox/20251017-gitignore-build-v1-1-f25d35c3bff4@pengutronix.de
---
 .gitignore | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.gitignore b/.gitignore
index 98bb4dac89..a235f9f7de 100644
--- a/.gitignore
+++ b/.gitignore
@@ -53,6 +53,9 @@ policy-list
 /TAGS
 /barebox*
 /System.map
+/build
+/oe-logs
+/oe-workdir
 
 #
 # git files that we don't want to ignore even it they are dot-files

---
base-commit: 8defba1d0ab1aef9dd5d57710e18d0d02e2c48e2
change-id: 20251017-gitignore-build-d90cb643b130

Best regards,
--  
Jonas Rebmann <jre@pengutronix.de>




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] gitignore: ignore /build, /oe-logs, /oe-workdir
  2025-10-30  8:41 [PATCH v2] gitignore: ignore /build, /oe-logs, /oe-workdir Jonas Rebmann
@ 2025-10-30  8:43 ` Jonas Rebmann
  2025-10-30 13:13 ` Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Jonas Rebmann @ 2025-10-30  8:43 UTC (permalink / raw)
  To: Sascha Hauer, BAREBOX

Hi,

On 2025-10-30 09:41, 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.
> The build system does set up a .gitignore in the build directory but
> this has no effect if /build is a symlink to outside the tree.
> 
> Similarly, YOCTOs "devtool" sets up the symlinks /oe-logs and
> /oe-workdir to point to the respective paths in yoctos build tree.
> 
> Include those in .gitignore.
> 
> Signed-off-by: Jonas Rebmann <jre@pengutronix.de>
> ---
> Changes in v2:
> - EDITME: describe what is new in this series revision.
> - EDITME: use bulletpoints and terse descriptions.

- Include /oe-logs and /oe-workdir (Thanks, Sasha)

> - Link to v1: https://lore.barebox.org/barebox/20251017-gitignore-build-v1-1-f25d35c3bff4@pengutronix.de
> ---
>   .gitignore | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/.gitignore b/.gitignore
> index 98bb4dac89..a235f9f7de 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -53,6 +53,9 @@ policy-list
>   /TAGS
>   /barebox*
>   /System.map
> +/build
> +/oe-logs
> +/oe-workdir
>   
>   #
>   # git files that we don't want to ignore even it they are dot-files
> 
> ---
> base-commit: 8defba1d0ab1aef9dd5d57710e18d0d02e2c48e2
> change-id: 20251017-gitignore-build-d90cb643b130
> 
> Best regards,
> --
> Jonas Rebmann <jre@pengutronix.de>
> 
> 
> 

-- 
Pengutronix e.K.                           | Jonas Rebmann               |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-9    |




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] gitignore: ignore /build, /oe-logs, /oe-workdir
  2025-10-30  8:41 [PATCH v2] gitignore: ignore /build, /oe-logs, /oe-workdir Jonas Rebmann
  2025-10-30  8:43 ` Jonas Rebmann
@ 2025-10-30 13:13 ` Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2025-10-30 13:13 UTC (permalink / raw)
  To: BAREBOX, Jonas Rebmann


On Thu, 30 Oct 2025 09:41:00 +0100, 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.
> The build system does set up a .gitignore in the build directory but
> this has no effect if /build is a symlink to outside the tree.
> 
> Similarly, YOCTOs "devtool" sets up the symlinks /oe-logs and
> /oe-workdir to point to the respective paths in yoctos build tree.
> 
> [...]

Applied, thanks!

[1/1] gitignore: ignore /build, /oe-logs, /oe-workdir
      https://git.pengutronix.de/cgit/barebox/commit/?id=542520c8db31 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-10-30 13:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-30  8:41 [PATCH v2] gitignore: ignore /build, /oe-logs, /oe-workdir Jonas Rebmann
2025-10-30  8:43 ` Jonas Rebmann
2025-10-30 13:13 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox