* [ptxdist] [PATCH] ptxd_make_world_patchin: Allow git-ptx-* scripts to be overwritten
@ 2023-06-19 13:02 Thorsten Scherer
2023-06-21 8:51 ` [ptxdist] [APPLIED] " Michael Olbrich
2023-06-21 8:55 ` [ptxdist] [PATCH] " Michael Olbrich
0 siblings, 2 replies; 4+ messages in thread
From: Thorsten Scherer @ 2023-06-19 13:02 UTC (permalink / raw)
To: ptxdist; +Cc: Thorsten Scherer
This patch enables the user to make local modifications to
git-ptx-patches and git-ptx-refresh-tags-editor inside the BSP.
Signed-off-by: Thorsten Scherer <t.scherer@eckelmann.de>
---
scripts/lib/ptxd_make_world_patchin.sh | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/scripts/lib/ptxd_make_world_patchin.sh b/scripts/lib/ptxd_make_world_patchin.sh
index 026c36e95..209fc6954 100644
--- a/scripts/lib/ptxd_make_world_patchin.sh
+++ b/scripts/lib/ptxd_make_world_patchin.sh
@@ -62,6 +62,14 @@ ptxd_make_world_patchin_apply_git_init()
local git_dir
git_dir="$(git rev-parse --git-dir 2> /dev/null)" || true
+ local git_ptx_patches
+ ptxd_in_path PTXDIST_PATH_SCRIPTS git-ptx-patches
+ git_ptx_patches="${ptxd_reply}"
+
+ local git_ptx_refresh_tags_editor
+ ptxd_in_path PTXDIST_PATH_SCRIPTS git-ptx-refresh-tags-editor
+ git_ptx_refresh_tags_editor="${ptxd_reply}"
+
# is already git repo?
if [ "${git_dir}" != ".git" ]; then
echo "patchin: git: initializing repository"
@@ -70,8 +78,8 @@ ptxd_make_world_patchin_apply_git_init()
__git commit -q -m "initial commit" --author="ptxdist-${PTXDIST_VERSION_FULL} <ptxdist@pengutronix.de>" &&
__git tag "${pkg_pkg//\~/-}" &&
__git tag base &&
- __git config alias.ptx-patches "!${PTXDIST_TOPDIR}/scripts/git-ptx-patches \"\${@}\"" &&
- __git config sequence.editor "${PTXDIST_TOPDIR}/scripts/git-ptx-refresh-tags-editor" &&
+ __git config alias.ptx-patches "!${git_ptx_patches} \"\${@}\"" &&
+ __git config core.editor "${git_ptx_refresh_tags_editor}" &&
__git config diff.renames false &&
__git config core.abbrev 12 &&
__git config core.autocrlf false &&
--
2.38.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ptxdist] [APPLIED] ptxd_make_world_patchin: Allow git-ptx-* scripts to be overwritten
2023-06-19 13:02 [ptxdist] [PATCH] ptxd_make_world_patchin: Allow git-ptx-* scripts to be overwritten Thorsten Scherer
@ 2023-06-21 8:51 ` Michael Olbrich
2023-06-21 8:55 ` [ptxdist] [PATCH] " Michael Olbrich
1 sibling, 0 replies; 4+ messages in thread
From: Michael Olbrich @ 2023-06-21 8:51 UTC (permalink / raw)
To: ptxdist; +Cc: Thorsten Scherer
Thanks, applied as f4d2f09da9dfd9977c091f93e8284740e159ac01.
Michael
[sent from post-receive hook]
On Wed, 21 Jun 2023 10:51:19 +0200, Thorsten Scherer <t.scherer@eckelmann.de> wrote:
> This patch enables the user to make local modifications to
> git-ptx-patches and git-ptx-refresh-tags-editor inside the BSP.
>
> Signed-off-by: Thorsten Scherer <t.scherer@eckelmann.de>
> Message-Id: <20230619130210.5302-1-t.scherer@eckelmann.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> diff --git a/scripts/lib/ptxd_make_world_patchin.sh b/scripts/lib/ptxd_make_world_patchin.sh
> index 026c36e95206..209fc69547aa 100644
> --- a/scripts/lib/ptxd_make_world_patchin.sh
> +++ b/scripts/lib/ptxd_make_world_patchin.sh
> @@ -62,6 +62,14 @@ ptxd_make_world_patchin_apply_git_init()
> local git_dir
> git_dir="$(git rev-parse --git-dir 2> /dev/null)" || true
>
> + local git_ptx_patches
> + ptxd_in_path PTXDIST_PATH_SCRIPTS git-ptx-patches
> + git_ptx_patches="${ptxd_reply}"
> +
> + local git_ptx_refresh_tags_editor
> + ptxd_in_path PTXDIST_PATH_SCRIPTS git-ptx-refresh-tags-editor
> + git_ptx_refresh_tags_editor="${ptxd_reply}"
> +
> # is already git repo?
> if [ "${git_dir}" != ".git" ]; then
> echo "patchin: git: initializing repository"
> @@ -70,8 +78,8 @@ ptxd_make_world_patchin_apply_git_init()
> __git commit -q -m "initial commit" --author="ptxdist-${PTXDIST_VERSION_FULL} <ptxdist@pengutronix.de>" &&
> __git tag "${pkg_pkg//\~/-}" &&
> __git tag base &&
> - __git config alias.ptx-patches "!${PTXDIST_TOPDIR}/scripts/git-ptx-patches \"\${@}\"" &&
> - __git config sequence.editor "${PTXDIST_TOPDIR}/scripts/git-ptx-refresh-tags-editor" &&
> + __git config alias.ptx-patches "!${git_ptx_patches} \"\${@}\"" &&
> + __git config core.editor "${git_ptx_refresh_tags_editor}" &&
> __git config diff.renames false &&
> __git config core.abbrev 12 &&
> __git config core.autocrlf false &&
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ptxdist] [PATCH] ptxd_make_world_patchin: Allow git-ptx-* scripts to be overwritten
2023-06-19 13:02 [ptxdist] [PATCH] ptxd_make_world_patchin: Allow git-ptx-* scripts to be overwritten Thorsten Scherer
2023-06-21 8:51 ` [ptxdist] [APPLIED] " Michael Olbrich
@ 2023-06-21 8:55 ` Michael Olbrich
2023-06-21 10:00 ` Thorsten Scherer
1 sibling, 1 reply; 4+ messages in thread
From: Michael Olbrich @ 2023-06-21 8:55 UTC (permalink / raw)
To: Thorsten Scherer; +Cc: ptxdist
On Mon, Jun 19, 2023 at 03:02:10PM +0200, Thorsten Scherer wrote:
> This patch enables the user to make local modifications to
> git-ptx-patches and git-ptx-refresh-tags-editor inside the BSP.
Out of curiosity: Do you have real local changes, or is this just to be
able to backport fixes in the future?
Regards,
Michael
> Signed-off-by: Thorsten Scherer <t.scherer@eckelmann.de>
> ---
> scripts/lib/ptxd_make_world_patchin.sh | 12 ++++++++++--
> 1 file changed, 10 insertions(+), 2 deletions(-)
>
> diff --git a/scripts/lib/ptxd_make_world_patchin.sh b/scripts/lib/ptxd_make_world_patchin.sh
> index 026c36e95..209fc6954 100644
> --- a/scripts/lib/ptxd_make_world_patchin.sh
> +++ b/scripts/lib/ptxd_make_world_patchin.sh
> @@ -62,6 +62,14 @@ ptxd_make_world_patchin_apply_git_init()
> local git_dir
> git_dir="$(git rev-parse --git-dir 2> /dev/null)" || true
>
> + local git_ptx_patches
> + ptxd_in_path PTXDIST_PATH_SCRIPTS git-ptx-patches
> + git_ptx_patches="${ptxd_reply}"
> +
> + local git_ptx_refresh_tags_editor
> + ptxd_in_path PTXDIST_PATH_SCRIPTS git-ptx-refresh-tags-editor
> + git_ptx_refresh_tags_editor="${ptxd_reply}"
> +
> # is already git repo?
> if [ "${git_dir}" != ".git" ]; then
> echo "patchin: git: initializing repository"
> @@ -70,8 +78,8 @@ ptxd_make_world_patchin_apply_git_init()
> __git commit -q -m "initial commit" --author="ptxdist-${PTXDIST_VERSION_FULL} <ptxdist@pengutronix.de>" &&
> __git tag "${pkg_pkg//\~/-}" &&
> __git tag base &&
> - __git config alias.ptx-patches "!${PTXDIST_TOPDIR}/scripts/git-ptx-patches \"\${@}\"" &&
> - __git config sequence.editor "${PTXDIST_TOPDIR}/scripts/git-ptx-refresh-tags-editor" &&
> + __git config alias.ptx-patches "!${git_ptx_patches} \"\${@}\"" &&
> + __git config core.editor "${git_ptx_refresh_tags_editor}" &&
> __git config diff.renames false &&
> __git config core.abbrev 12 &&
> __git config core.autocrlf false &&
> --
> 2.38.0
>
>
>
--
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 |
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ptxdist] [PATCH] ptxd_make_world_patchin: Allow git-ptx-* scripts to be overwritten
2023-06-21 8:55 ` [ptxdist] [PATCH] " Michael Olbrich
@ 2023-06-21 10:00 ` Thorsten Scherer
0 siblings, 0 replies; 4+ messages in thread
From: Thorsten Scherer @ 2023-06-21 10:00 UTC (permalink / raw)
To: Michael Olbrich; +Cc: ptxdist
Hello Michael,
On Wed, Jun 21, 2023 at 10:55:12AM +0200, Michael Olbrich wrote:
> On Mon, Jun 19, 2023 at 03:02:10PM +0200, Thorsten Scherer wrote:
> > This patch enables the user to make local modifications to
> > git-ptx-patches and git-ptx-refresh-tags-editor inside the BSP.
>
> Out of curiosity: Do you have real local changes, or is this just to be
> able to backport fixes in the future?
We just bumped to ptxdist-2023.05.0 and I had to modify
ptxd_make_world_patchin.sh to be able to benefit from b6be1a59d.
Without this patch ptx-patches aborts with "Failed to find tag 'base' in
the series".
> Regards,
> Michael
Regards
Thorsten
> > Signed-off-by: Thorsten Scherer <t.scherer@eckelmann.de>
> > ---
> > scripts/lib/ptxd_make_world_patchin.sh | 12 ++++++++++--
> > 1 file changed, 10 insertions(+), 2 deletions(-)
> >
> > diff --git a/scripts/lib/ptxd_make_world_patchin.sh b/scripts/lib/ptxd_make_world_patchin.sh
> > index 026c36e95..209fc6954 100644
> > --- a/scripts/lib/ptxd_make_world_patchin.sh
> > +++ b/scripts/lib/ptxd_make_world_patchin.sh
> > @@ -62,6 +62,14 @@ ptxd_make_world_patchin_apply_git_init()
> > local git_dir
> > git_dir="$(git rev-parse --git-dir 2> /dev/null)" || true
> >
> > + local git_ptx_patches
> > + ptxd_in_path PTXDIST_PATH_SCRIPTS git-ptx-patches
> > + git_ptx_patches="${ptxd_reply}"
> > +
> > + local git_ptx_refresh_tags_editor
> > + ptxd_in_path PTXDIST_PATH_SCRIPTS git-ptx-refresh-tags-editor
> > + git_ptx_refresh_tags_editor="${ptxd_reply}"
> > +
> > # is already git repo?
> > if [ "${git_dir}" != ".git" ]; then
> > echo "patchin: git: initializing repository"
> > @@ -70,8 +78,8 @@ ptxd_make_world_patchin_apply_git_init()
> > __git commit -q -m "initial commit" --author="ptxdist-${PTXDIST_VERSION_FULL} <ptxdist@pengutronix.de>" &&
> > __git tag "${pkg_pkg//\~/-}" &&
> > __git tag base &&
> > - __git config alias.ptx-patches "!${PTXDIST_TOPDIR}/scripts/git-ptx-patches \"\${@}\"" &&
> > - __git config sequence.editor "${PTXDIST_TOPDIR}/scripts/git-ptx-refresh-tags-editor" &&
> > + __git config alias.ptx-patches "!${git_ptx_patches} \"\${@}\"" &&
> > + __git config core.editor "${git_ptx_refresh_tags_editor}" &&
> > __git config diff.renames false &&
> > __git config core.abbrev 12 &&
> > __git config core.autocrlf false &&
> > --
> > 2.38.0
> >
> >
> >
>
> --
> 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 |
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-06-21 10:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-19 13:02 [ptxdist] [PATCH] ptxd_make_world_patchin: Allow git-ptx-* scripts to be overwritten Thorsten Scherer
2023-06-21 8:51 ` [ptxdist] [APPLIED] " Michael Olbrich
2023-06-21 8:55 ` [ptxdist] [PATCH] " Michael Olbrich
2023-06-21 10:00 ` Thorsten Scherer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox