[OpenWrt-Devel] [PATCH 00/13] ramips: massive code cleanups

Piotr Dymacz pepe2k at gmail.com
Sun Jul 26 12:24:25 EDT 2015


The following changes fix different mistakes in ramips target and
try to make the code more clean and consistent.

The patches affect:
 * dts{,i} files
 * base-files/* scripts
 * image Makefile

Piotr Dymacz (13):
  ramips: fix indentation and other mistakes in .dts{,i} files
  ramips: remove leading spaces and sort boards alphabetically in
    base-files/lib/ramips.sh
  ramips: fix indentation, case statements structure and optimize
    base-files/etc/board.d/* scripts
  ramips: sort boards alphabetically and optimize
    base-files/etc/{diag.sh,board.d/*} scripts
  ramips: use consistent naming scheme for LEDs, for various
    manufacturers
  ramips: fix UPVEL model names
  ramips: change board name for Zbtlink WR8305RT to ZBT-WR8305RT
  ramips: remove unnecessary LED declaration for WT1520 in diag.sh
  ramips: use consistent naming scheme for LEDs in the remaining,
    branded devices
  ramips: change board name for Asus WL-330N{,3G} to WL-330N{,3G}
  ramips: rename dts file for Asus RT-N56U to RT-N56U.dts
  ramips: be consistent with case statement in
    base-files/lib/upgrade/platform.sh
  ramips: fix image name for Belkin F7C027

 target/linux/ramips/base-files/etc/board.d/01_leds | 496 ++++++++++-----------
 .../linux/ramips/base-files/etc/board.d/02_network | 398 ++++++++---------
 target/linux/ramips/base-files/etc/diag.sh         | 207 +++++----
 target/linux/ramips/base-files/lib/ramips.sh       | 288 ++++++------
 .../ramips/base-files/lib/upgrade/platform.sh      | 234 +++++-----
 target/linux/ramips/dts/ALL0239-3G.dts             |   8 +-
 target/linux/ramips/dts/ALL0256N-4M.dts            |   6 +-
 target/linux/ramips/dts/ALL0256N-8M.dts            |   6 +-
 target/linux/ramips/dts/AR670W.dts                 |   4 +-
 target/linux/ramips/dts/AR725W.dts                 |   6 +-
 target/linux/ramips/dts/ARGUS_ATP52B.dts           |   4 +-
 target/linux/ramips/dts/ASL26555-16M.dts           |  16 +-
 target/linux/ramips/dts/ASL26555-8M.dts            |  16 +-
 target/linux/ramips/dts/AWAPN2403.dts              |   2 +-
 target/linux/ramips/dts/AWM002-EVB-4M.dts          |   6 +-
 target/linux/ramips/dts/AWM002-EVB-8M.dts          |   6 +-
 target/linux/ramips/dts/AWM003-EVB.dts             |   6 +-
 target/linux/ramips/dts/BC2.dts                    |   2 +-
 target/linux/ramips/dts/BROADWAY.dts               |   4 +-
 target/linux/ramips/dts/CF-WR800N.dts              |  24 +-
 target/linux/ramips/dts/D105.dts                   |   4 +-
 target/linux/ramips/dts/DCS-930L-B1.dts            |   2 +-
 target/linux/ramips/dts/DIR-300-B7.dts             |  65 ++-
 target/linux/ramips/dts/DIR-320-B1.dts             |  20 +-
 target/linux/ramips/dts/DIR-610-A1.dts             |  20 +-
 target/linux/ramips/dts/ESR-9753.dts               |   4 +-
 target/linux/ramips/dts/F5D8235_V1.dts             |   6 +-
 target/linux/ramips/dts/F5D8235_V2.dts             |  18 +-
 target/linux/ramips/dts/FONERA20N.dts              |   6 +-
 target/linux/ramips/dts/FREESTATION5.dts           |   6 +-
 target/linux/ramips/dts/HG255D.dts                 |  12 +-
 target/linux/ramips/dts/HLKRM04.dts                |   2 +-
 target/linux/ramips/dts/HT-TM02.dts                |   4 +-
 target/linux/ramips/dts/HW550-3G.dts               |   8 +-
 target/linux/ramips/dts/IP2202.dts                 |   4 +-
 target/linux/ramips/dts/M2M.dts                    |   4 +-
 target/linux/ramips/dts/M3.dts                     |   2 +-
 target/linux/ramips/dts/M4-4M.dts                  |   2 +-
 target/linux/ramips/dts/M4-8M.dts                  |   2 +-
 target/linux/ramips/dts/MOFI3500-3GN.dts           |   8 +-
 target/linux/ramips/dts/MR-102N.dts                |   6 +-
 target/linux/ramips/dts/MZK-750DHP.dts             |   4 +-
 target/linux/ramips/dts/MZK-DP150N.dts             |   2 +-
 target/linux/ramips/dts/MZK-W300NH2.dts            |   6 +-
 target/linux/ramips/dts/MicroWRT.dts               |   2 +-
 target/linux/ramips/dts/NA930.dts                  |   8 +-
 target/linux/ramips/dts/NBG-419N.dts               |   4 +-
 target/linux/ramips/dts/NCS601W.dts                |   4 +-
 target/linux/ramips/dts/NW718.dts                  |   6 +-
 target/linux/ramips/dts/OLINUXINO-RT5350F-EVB.dts  | 190 ++++----
 target/linux/ramips/dts/OLINUXINO-RT5350F.dts      | 122 ++---
 target/linux/ramips/dts/OMNI-EMB-HPM.dts           |  12 +-
 target/linux/ramips/dts/OMNI-EMB.dts               |   4 +-
 target/linux/ramips/dts/OMNI-PLUG.dts              |   4 +-
 target/linux/ramips/dts/OY-0001.dts                |   6 +-
 target/linux/ramips/dts/PBR-M1.dts                 |   6 +-
 target/linux/ramips/dts/PSR-680W.dts               |   2 +-
 target/linux/ramips/dts/PWH2004.dts                |   4 +-
 target/linux/ramips/dts/RT-N13U.dts                |   4 +-
 target/linux/ramips/dts/RT-N15.dts                 |   4 +-
 target/linux/ramips/dts/RT-N56U.dts                | 146 ++++++
 target/linux/ramips/dts/RTN56U.dts                 | 146 ------
 target/linux/ramips/dts/RUT5XX.dts                 |   8 +-
 target/linux/ramips/dts/SL-R7205.dts               |   2 +-
 target/linux/ramips/dts/UR-326N4G.dts              |  12 +-
 target/linux/ramips/dts/UR-336UN.dts               |  12 +-
 target/linux/ramips/dts/V11STFE.dts                |   2 +-
 target/linux/ramips/dts/V22RW-2X2.dts              |   4 +-
 target/linux/ramips/dts/W306R_V20.dts              |   4 +-
 target/linux/ramips/dts/WCR150GN.dts               |   4 +-
 target/linux/ramips/dts/WHR-G300N.dts              |   6 +-
 target/linux/ramips/dts/WL-330N.dts                |  95 ++++
 target/linux/ramips/dts/WL-330N3G.dts              | 103 +++++
 target/linux/ramips/dts/WL-351.dts                 |   6 +-
 target/linux/ramips/dts/WL341V3.dts                |  14 +-
 target/linux/ramips/dts/WLI-TX4-AG300N.dts         |   2 +-
 target/linux/ramips/dts/WL_330N.dts                |  95 ----
 target/linux/ramips/dts/WL_330N3G.dts              | 103 -----
 target/linux/ramips/dts/WR6202.dts                 |   4 +-
 target/linux/ramips/dts/WR8305RT.dts               | 112 -----
 target/linux/ramips/dts/WT3020-4M.dts              |  26 +-
 target/linux/ramips/dts/WT3020-8M.dts              |  26 +-
 target/linux/ramips/dts/WZR-AGL300NH.dts           |   2 +-
 target/linux/ramips/dts/X5.dts                     |   8 +-
 target/linux/ramips/dts/X8.dts                     |   2 +-
 target/linux/ramips/dts/ZBT-WR8305RT.dts           | 112 +++++
 target/linux/ramips/dts/mt7620a.dtsi               |   2 +-
 target/linux/ramips/dts/mt7620n.dtsi               |   2 +-
 target/linux/ramips/dts/mt7621.dtsi                |   4 +-
 target/linux/ramips/dts/mt7628an.dtsi              |   2 +-
 target/linux/ramips/dts/rt2880.dtsi                |   2 +-
 target/linux/ramips/image/Makefile                 |  18 +-
 92 files changed, 1675 insertions(+), 1749 deletions(-)
 create mode 100644 target/linux/ramips/dts/RT-N56U.dts
 delete mode 100644 target/linux/ramips/dts/RTN56U.dts
 create mode 100644 target/linux/ramips/dts/WL-330N.dts
 create mode 100644 target/linux/ramips/dts/WL-330N3G.dts
 delete mode 100644 target/linux/ramips/dts/WL_330N.dts
 delete mode 100644 target/linux/ramips/dts/WL_330N3G.dts
 delete mode 100644 target/linux/ramips/dts/WR8305RT.dts
 create mode 100644 target/linux/ramips/dts/ZBT-WR8305RT.dts

-- 
2.4.6
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list