[PATCH] tools: Add script to update git subtree projects

Tom Rini trini at konsulko.com
Fri Jul 19 17:12:40 CEST 2024


On Fri, Jul 19, 2024 at 07:12:43AM -0700, Raymond Mao wrote:

> Recently we are introducing multiple git subtree projects and
> it is the right time to have a universal script to update
> various subtrees and replace the dts/update-dts-subtree.sh.
> 
> update-subtree.sh is a wrapper of git subtree commands.
> 
> Usage: From U-Boot top directory,
> run
> $ ./tools/update-subtree.sh pull <subtree-name> <release-tag>
> for pulling a tag from the upstream.
> Or run
> $ ./tools/update-subtree.sh pick <subtree-name> <commit-id>
> for cherry-pick a commit from the upstream.
> 
> Currently <subtree-name> supports dts, mbedtls and lwip.
> 
> Signed-off-by: Raymond Mao <raymond.mao at linaro.org>
> ---
>  dts/update-dts-subtree.sh | 48 ----------------------
>  tools/update-subtree.sh   | 86 +++++++++++++++++++++++++++++++++++++++
>  2 files changed, 86 insertions(+), 48 deletions(-)
>  delete mode 100755 dts/update-dts-subtree.sh
>  create mode 100755 tools/update-subtree.sh

This looks good, but please update the documentation as well.
We reference dts/update-dts-subtree.sh in doc/develop/devicetree/control.rst

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20240719/d863ca39/attachment.sig>


More information about the U-Boot mailing list