Re: [PATCH 4/4] Makefile.subtrees: document how to update kconfig

Luis Chamberlain <[email protected]>
Newsgroups org.kernel.vger.backports
Message-ID <Yf2eDDZ/[email protected]>
On Fri, Feb 04, 2022 at 01:41:31PM -0800, Luis Chamberlain wrote:
> Now that kconfig is a git sub tree document what we need to do
> to update version of config. We use squash here so we don't
> carry the kconfig tree update logs in our commit log.
> 
> Signed-off-by: Luis Chamberlain <[email protected]>
> ---
>  Makefile.subtrees | 10 ++++++++++
>  1 file changed, 10 insertions(+)
>  create mode 100644 Makefile.subtrees
> 
> diff --git a/Makefile.subtrees b/Makefile.subtrees
> new file mode 100644
> index 00000000..49bb13b3
> --- /dev/null
> +++ b/Makefile.subtrees
> @@ -0,0 +1,10 @@
> +# If you need to use a git subtree, please add it here.
> +add-kconfig-remote:
> +	git remote add kconfig https://github.com/mcgrof/kconfig.git
> +
> +add-kconfig:
> +	git subtree add --prefix=backport/kconf --squash kconfig master
> +
> +refresh-kconfig:
> +	git fetch kconfig
> +	git subtree pull --prefix=backport/kconf --squash kconfig master
> -- 
> 2.34.1
> 

To be clear:

a new maintainer later wishes to update kconfig, all they have to do is:

make -f Makefile.subtrees add-kconfig-remote
make -f Makefile.subtrees refresh-kconfig

After doing this once all you have to do is:

make -f Makefile.subtrees refresh-kconfig

  Luis
--
To unsubscribe from this list: send the line "unsubscribe backports" in
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.