[Buildroot] [PATCH 1/2] package/Makefile.in: set GIT_DIR=. in {HOST, TARGET}_MAKE_ENV
Mircea Gliga
gliga.mircea at gmail.com
Fri Jan 26 09:16:50 UTC 2024
Hi all,
> In the context of Buildroot the packages are never built in their own git
> checkout, so pass GIT_DIR=. to ensure git doesn't walk back up the
> directory tree and finds the Buildroot git repo, which fixes the rauc (and
> similar) issues.
>
> -TARGET_MAKE_ENV = PATH=$(BR_PATH)
> +TARGET_MAKE_ENV = \
> + GIT_DIR=. \
> + PATH=$(BR_PATH)
>
> TARGET_CONFIGURE_OPTS = \
> $(TARGET_MAKE_ENV) \
> @@ -307,6 +309,7 @@ TARGET_CONFIGURE_OPTS = \
This will also break the usage of package/environment-setup. The
GIT_DIR=. leaks in
the environment script `environment-setup` useful when a developer
wants to use a Buildroot
generated SDK to build an external project.
So, on a developer machine after sourcing the environment script, all
git commands fail:
$ git status
fatal: not a git repository: '.'
Best regards
Mircea
More information about the buildroot
mailing list