mbox series

[v2,0/5] Lichee RV and Lichee RV dock support

Message ID 20221014065900.3311604-1-angelo@amarulasolutions.com
Headers show
Series Lichee RV and Lichee RV dock support | expand

Message

Angelo Compagnucci Oct. 14, 2022, 6:58 a.m. UTC
In order to support bluetooth on the dock, I had to fully enable the
CONFIG_EXTRA_FIRMWARE mechanism: indeed the bluetooth driver requires a
firmware which is not available at the moment of loading if not embedded
in the kernel image.

I choose to install the extra firmware files in staging, so there is no
need to clean the target filesystem for those files after building the
kernel.
 
The macro KCONFIG_APPEND_OPT was needed so each one of the packages
willing to have a firmware embedded can simply have a

$(call KCONFIG_APPEND_OPT,CONFIG_EXTRA_FIRMWARE,firmware.bin)

Changelog:
v2:
* Renamed the configs from lichee_rv_* to sipeed_lichee_rv_*
* Moved the boards directories intoboard/sipeed
* Added bluetooth support for lichee_rv_dock
* Updated the opensbi, uboot, linux version to the same as nezha


Angelo Compagnucci (5):
  linux: enable CONFIG_EXTRA_FIRMWARE_DIR
  package/pkg-utils: add KCONFIG_APPEND_OPT
  ackage/rtl8723ds-bt: new package
  configs/lichee_rv: new defconfig
  configs/lichee_rv_dock: new defconfig

 board/sipeed/lichee_rv/genimage.cfg           | 37 +++++++++++++
 ...t-building-u-boot.toc1-for-lichee-rv.patch | 54 +++++++++++++++++++
 board/sipeed/lichee_rv/readme.txt             | 26 +++++++++
 board/sipeed/lichee_rv_dock/genimage.cfg      | 37 +++++++++++++
 .../overlay/etc/network/interfaces            |  7 +++
 .../overlay/etc/wpa_supplicant.conf           |  8 +++
 ...t-building-u-boot.toc1-for-lichee-rv.patch | 54 +++++++++++++++++++
 ...-d1-lichee-rv-dock-add-bluetooth-bin.patch | 33 ++++++++++++
 board/sipeed/lichee_rv_dock/readme.txt        | 45 ++++++++++++++++
 configs/sipeed_lichee_rv_defconfig            | 34 ++++++++++++
 configs/sipeed_lichee_rv_dock_defconfig       | 40 ++++++++++++++
 linux/linux.mk                                |  6 ++-
 package/Config.in                             |  1 +
 package/pkg-utils.mk                          | 10 ++++
 package/rtl8723ds-bt/Config.in                |  6 +++
 package/rtl8723ds-bt/rtl8723ds-bt.hash        |  2 +
 package/rtl8723ds-bt/rtl8723ds-bt.mk          | 28 ++++++++++
 17 files changed, 427 insertions(+), 1 deletion(-)
 create mode 100644 board/sipeed/lichee_rv/genimage.cfg
 create mode 100644 board/sipeed/lichee_rv/patches/uboot/0001-Makefile-HACK-Support-building-u-boot.toc1-for-lichee-rv.patch
 create mode 100644 board/sipeed/lichee_rv/readme.txt
 create mode 100644 board/sipeed/lichee_rv_dock/genimage.cfg
 create mode 100644 board/sipeed/lichee_rv_dock/overlay/etc/network/interfaces
 create mode 100644 board/sipeed/lichee_rv_dock/overlay/etc/wpa_supplicant.conf
 create mode 100644 board/sipeed/lichee_rv_dock/patches/uboot/0001-Makefile-HACK-Support-building-u-boot.toc1-for-lichee-rv.patch
 create mode 100644 board/sipeed/lichee_rv_dock/patches/uboot/0002-RISCV-dts-sun20i-d1-lichee-rv-dock-add-bluetooth-bin.patch
 create mode 100644 board/sipeed/lichee_rv_dock/readme.txt
 create mode 100644 configs/sipeed_lichee_rv_defconfig
 create mode 100644 configs/sipeed_lichee_rv_dock_defconfig
 create mode 100644 package/rtl8723ds-bt/Config.in
 create mode 100644 package/rtl8723ds-bt/rtl8723ds-bt.hash
 create mode 100644 package/rtl8723ds-bt/rtl8723ds-bt.mk