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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <mcgrof@xxxxxxxxxx>
> ---
>  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



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux