mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH 0/5] scripts: Common functions for host tools and rk-usb-loader
Date: Wed,  6 Oct 2021 16:22:49 +0200	[thread overview]
Message-ID: <20211006142254.1751864-1-s.hauer@pengutronix.de> (raw)

Whenever I added a new host tool in scripts/ I usually ended up copying
functions from other host tools and thought it's about time to create
a library for sharing code between the host tools. Not this time. I
finally added such a library. I have no idea how a library can be built
(and used by host programs) with Kbuild, so I took the easy way out
and included a C file where needed instead of building a library.
I'm open for suggestions how this can be improved.

Last patch of this series adds a rk-usb-loader tool suitable for
bootstrapping barebox on a Rockchip RK3568 via USB.

Sascha

Sascha Hauer (5):
  scripts: Add Kconfig option for most host tools
  scripts: Add common library functions
  scripts/common: Add write_file()
  scripts/common: Add write_full() and read_full()
  scripts: Add rk-usb-loader tool

 scripts/Kconfig              |  71 ++++++++
 scripts/Makefile             |  21 ++-
 scripts/bareboximd.c         | 100 +----------
 scripts/common.c             | 168 ++++++++++++++++++
 scripts/common.h             |  10 ++
 scripts/imx/imx-image.c      |  47 ++---
 scripts/imx/imx-usb-loader.c |  77 ++-------
 scripts/omap3-usb-loader.c   |  47 +----
 scripts/rk-usb-loader.c      | 324 +++++++++++++++++++++++++++++++++++
 scripts/rkimage.c            |  71 +-------
 scripts/rockchip.h           |  35 ++++
 scripts/socfpga_mkimage.c    |  51 +-----
 12 files changed, 658 insertions(+), 364 deletions(-)
 create mode 100644 scripts/common.c
 create mode 100644 scripts/common.h
 create mode 100644 scripts/rk-usb-loader.c
 create mode 100644 scripts/rockchip.h

-- 
2.30.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


             reply	other threads:[~2021-10-06 14:24 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-06 14:22 Sascha Hauer [this message]
2021-10-06 14:22 ` [PATCH 1/5] scripts: Add Kconfig option for most host tools Sascha Hauer
2021-10-06 14:22 ` [PATCH 2/5] scripts: Add common library functions Sascha Hauer
2021-10-11 14:37   ` Masahiro Yamada
2021-10-11 14:52     ` Sascha Hauer
2021-10-11 16:38       ` Masahiro Yamada
2021-10-06 14:22 ` [PATCH 3/5] scripts/common: Add write_file() Sascha Hauer
2021-10-06 14:22 ` [PATCH 4/5] scripts/common: Add write_full() and read_full() Sascha Hauer
2021-10-06 14:22 ` [PATCH 5/5] scripts: Add rk-usb-loader tool Sascha Hauer
2021-10-08 14:25   ` Michael Riesch
2021-10-11  7:18     ` Sascha Hauer
2021-10-11  9:46       ` Michael Riesch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211006142254.1751864-1-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox