[PATCH 0/5] scripts: Common functions for host tools and rk-usb-loader

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

 



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@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux