[LEDE-DEV] [PATCH 0/5] generalize board detection

Roman Yeryomin leroi.lists at gmail.com
Fri Apr 28 05:56:13 PDT 2017


This provides non intrusive way to generalize board detection.
ipq806x target is migrated as example (tested on Netgear R7800).

Roman Yeryomin (5):
  base-files: introduce /lib/functions/board.sh
  base-files: functions.sh: use board functions from board.sh
  base-files: functions.sh: add include_file()
  base-files: add generic board detection preinit script
  ipq806x: migrate to generic board detect infrastructure

 package/base-files/files/lib/functions.sh          |  8 ++-
 package/base-files/files/lib/functions/board.sh    | 17 +++++
 .../files/lib/preinit/03_preinit_board_detect      | 11 +++
 .../linux/ipq806x/base-files/etc/board.d/01_leds   |  4 +-
 .../ipq806x/base-files/etc/board.d/02_network      |  4 +-
 target/linux/ipq806x/base-files/etc/diag.sh        | 13 +++-
 .../etc/hotplug.d/firmware/11-ath10k-caldata       |  3 +-
 .../etc/hotplug.d/ieee80211/10_fix_wifi_mac        |  4 +-
 .../ipq806x/base-files/etc/init.d/linksys_recovery |  3 +-
 .../linux/ipq806x/base-files/lib/board_detect.sh   | 60 ++++++++++++++++
 target/linux/ipq806x/base-files/lib/ipq806x.sh     | 82 ----------------------
 .../lib/preinit/03_preinit_do_ipq806x.sh           | 12 ----
 .../ipq806x/base-files/lib/upgrade/platform.sh     |  8 +--
 13 files changed, 117 insertions(+), 112 deletions(-)
 create mode 100644 package/base-files/files/lib/functions/board.sh
 create mode 100644 package/base-files/files/lib/preinit/03_preinit_board_detect
 create mode 100644 target/linux/ipq806x/base-files/lib/board_detect.sh
 delete mode 100644 target/linux/ipq806x/base-files/lib/ipq806x.sh
 delete mode 100644 target/linux/ipq806x/base-files/lib/preinit/03_preinit_do_ipq806x.sh

-- 
2.7.4




More information about the Lede-dev mailing list