[LEDE-DEV] [PATCH v2 0/3] generalize board detection

Roman Yeryomin leroi.lists at gmail.com
Tue May 9 02:16:32 PDT 2017


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

Changes from v1:
- convert /lib/preinit/10_sysinfo into default /lib/board_detect.sh
- nuke include_file, sysinfo and board_model functions

Roman Yeryomin (3):
  base-files: add/convert generic board detection scripts
  base-files: put board_name into separate file
  ipq806x: migrate to generic board detect infrastructure

 package/base-files/files/lib/board_detect.sh       |  9 +++
 package/base-files/files/lib/functions.sh          |  4 +-
 package/base-files/files/lib/functions/board.sh    |  6 ++
 .../files/lib/preinit/03_preinit_board_detect      | 11 +++
 package/base-files/files/lib/preinit/10_sysinfo    | 10 ---
 .../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 +--
 15 files changed, 111 insertions(+), 122 deletions(-)
 create mode 100644 package/base-files/files/lib/board_detect.sh
 create mode 100644 package/base-files/files/lib/functions/board.sh
 create mode 100644 package/base-files/files/lib/preinit/03_preinit_board_detect
 delete mode 100644 package/base-files/files/lib/preinit/10_sysinfo
 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