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

Piotr Dymacz pepe2k at gmail.com
Wed Aug 5 14:30:01 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
 * subtargets *.mk profile files

Changes in v2 of the series:
 * rebased to r46566
 * use the upstream convention for LED naming
 * more fixes in dts{,i} files
 * patches are now ordered more logically
 * patches are now better described
 * additional fixes related with devices names
 * big patches related with particular devices are not combined together, for easy review

Piotr Dymacz (25):
  ramips: fix indentation and other mistakes in .dts{,i} files
  ramips: fix Zbtlink ZBT-WR8305RT board name
  ramips: fix Asus WL-330N{,3G} boards names
  ramips: fix Asus RP-N53 and Lenovo Y1{,S} image names
  ramips: fix Xiaomi MiWiFi Mini board, image and profile names
  ramips: fix UPVEL model names
  ramips: fix Asus RT-N56U dts filename
  ramips: fix Belkin F7C027 image name
  ramips: fix Argus ATP-52B board and image names
  ramips: fix Sitecom WL-341v3 board and image names
  ramips: fix Olimex models, images and profiles names
  ramips: fix Aigale Ai-BR100 dts and profile names
  ramips: fix Tenda W150M model name
  ramips: fix Edimax BR-6425 board name
  ramips: fix Omnima models, images and profiles names
  ramips: fix Buffalo WMR-300 dts, board, image and profile names
  ramips: fix 7Links PX-4885 dts{,i}, board, image and profile names
  ramips: remove old code for Edimax BR-6524N
  ramips: fix various mistakes in subtargets *.mk profiles
  ramips: remove leading spaces, sort boards and optimize
    base-files/lib/ramips.sh
  ramips: be consistent with case statement in
    base-files/lib/upgrade/platform.sh
  ramips: fix indentation, case statements structure and optimize
    base-files/etc/board.d/02_network
  ramips: remove unnecessary LED declaration for WT1520 in diag.sh
  ramips: use consistent naming scheme for LEDs
  ramips: base-files: optimize etc/diag.sh and etc/board.d/01_leds
    scripts

 target/linux/ramips/base-files/etc/board.d/01_leds | 480 ++++++++++-----------
 .../linux/ramips/base-files/etc/board.d/02_network | 391 ++++++++---------
 target/linux/ramips/base-files/etc/diag.sh         | 338 ++++++---------
 target/linux/ramips/base-files/lib/ramips.sh       | 436 +++++++++----------
 .../ramips/base-files/lib/upgrade/platform.sh      | 234 +++++-----
 target/linux/ramips/dts/3G-6200N.dts               |  12 +-
 target/linux/ramips/dts/3G-6200NL.dts              |   5 +-
 target/linux/ramips/dts/3G150B.dts                 |  10 +-
 target/linux/ramips/dts/3G300M.dts                 |  21 +-
 target/linux/ramips/dts/A5-V11.dts                 |   6 +
 target/linux/ramips/dts/AI-BR100.dts               | 109 +++++
 target/linux/ramips/dts/AIBR100.dts                | 106 -----
 target/linux/ramips/dts/AIR3GII.dts                |   8 +-
 target/linux/ramips/dts/ALL0239-3G.dts             |  16 +-
 target/linux/ramips/dts/ALL0256N-4M.dts            |   5 +
 target/linux/ramips/dts/ALL0256N-8M.dts            |   5 +
 target/linux/ramips/dts/ALL5002.dts                |   8 +-
 target/linux/ramips/dts/ALL5003.dts                |   8 +-
 target/linux/ramips/dts/AR670W.dts                 |   4 +-
 target/linux/ramips/dts/AR725W.dts                 |   4 +-
 target/linux/ramips/dts/ARGUS_ATP52B.dts           |  93 ----
 target/linux/ramips/dts/ASL26555-16M.dts           |  17 +
 target/linux/ramips/dts/ASL26555-8M.dts            |  16 +
 target/linux/ramips/dts/ATP-52B.dts                |  96 +++++
 target/linux/ramips/dts/AWAPN2403.dts              |   7 +-
 target/linux/ramips/dts/AWM002-EVB-4M.dts          |   5 +
 target/linux/ramips/dts/AWM002-EVB-8M.dts          |   5 +
 target/linux/ramips/dts/AWM002.dtsi                |   7 +-
 target/linux/ramips/dts/AWM003-EVB.dts             |  11 +-
 target/linux/ramips/dts/ArcherC20i.dts             |   1 -
 target/linux/ramips/dts/BC2.dts                    |   3 +-
 target/linux/ramips/dts/BR-6425.dts                |   9 +-
 target/linux/ramips/dts/BR-6475ND.dts              |  15 +-
 target/linux/ramips/dts/BROADWAY.dts               |   8 +-
 target/linux/ramips/dts/CARAMBOLA.dts              |   2 -
 target/linux/ramips/dts/CF-WR800N.dts              |  31 +-
 target/linux/ramips/dts/CY-SWR1100.dts             |  17 +-
 target/linux/ramips/dts/D105.dts                   |   4 +-
 target/linux/ramips/dts/DAP-1350.dts               |  14 +-
 target/linux/ramips/dts/DCS-930.dts                |  11 +-
 target/linux/ramips/dts/DCS-930L-B1.dts            |  11 +-
 target/linux/ramips/dts/DIR-300-B1.dts             |  18 +-
 target/linux/ramips/dts/DIR-300-B7.dts             |  74 ++--
 target/linux/ramips/dts/DIR-320-B1.dts             |  32 +-
 target/linux/ramips/dts/DIR-600-B1.dts             |  18 +-
 target/linux/ramips/dts/DIR-600-B2.dts             |  18 +-
 target/linux/ramips/dts/DIR-610-A1.dts             |  29 +-
 target/linux/ramips/dts/DIR-615-D.dts              |  18 +-
 target/linux/ramips/dts/DIR-615-H1.dts             |  20 +-
 target/linux/ramips/dts/DIR-620-A1.dts             |  21 +-
 target/linux/ramips/dts/DIR-620-D1.dts             |  10 +-
 target/linux/ramips/dts/DIR-645.dts                |  15 +-
 target/linux/ramips/dts/DIR-810L.dts               |  12 +-
 target/linux/ramips/dts/DIR-860L-B1.dts            |   1 +
 target/linux/ramips/dts/E1700.dts                  |  15 +-
 target/linux/ramips/dts/ESR-9753.dts               |   5 +-
 target/linux/ramips/dts/F5D8235_V1.dts             |   9 +-
 target/linux/ramips/dts/F5D8235_V2.dts             |  28 +-
 target/linux/ramips/dts/F7C027.dts                 |  17 +-
 target/linux/ramips/dts/FIREWRT.dts                |   5 +-
 target/linux/ramips/dts/FONERA20N.dts              |  10 +-
 target/linux/ramips/dts/FREESTATION5.dts           |  11 +-
 target/linux/ramips/dts/HG255D.dts                 |  22 +-
 target/linux/ramips/dts/HLKRM04.dts                |   3 +
 target/linux/ramips/dts/HPM.dts                    | 149 +++++++
 target/linux/ramips/dts/HT-TM02.dts                |  11 +-
 target/linux/ramips/dts/HW550-3G.dts               |   8 +-
 target/linux/ramips/dts/IP2202.dts                 |   4 +-
 target/linux/ramips/dts/M2M.dts                    |   5 +
 target/linux/ramips/dts/M3.dts                     |   4 +
 target/linux/ramips/dts/M4-4M.dts                  |   3 +
 target/linux/ramips/dts/M4-8M.dts                  |   3 +
 target/linux/ramips/dts/MINIEMBPLUG.dts            | 120 ++++++
 target/linux/ramips/dts/MINIEMBWIFI.dts            |  92 ++++
 target/linux/ramips/dts/MIWIFI-MINI.dts            | 150 +++++++
 target/linux/ramips/dts/MLW221.dts                 |   9 +-
 target/linux/ramips/dts/MLWG2.dts                  |   8 +-
 target/linux/ramips/dts/MOFI3500-3GN.dts           |   8 +-
 target/linux/ramips/dts/MPRA1.dts                  |  10 +-
 target/linux/ramips/dts/MPRA2.dts                  |   9 +-
 target/linux/ramips/dts/MR-102N.dts                |   6 +-
 target/linux/ramips/dts/MT7620a.dts                |   4 +-
 target/linux/ramips/dts/MT7620a_MT7530.dts         |   7 +-
 target/linux/ramips/dts/MT7620a_MT7610e.dts        |   4 +-
 target/linux/ramips/dts/MT7620a_V22SG.dts          |  11 +-
 target/linux/ramips/dts/MZK-750DHP.dts             |   9 +-
 target/linux/ramips/dts/MZK-DP150N.dts             |   4 +-
 target/linux/ramips/dts/MZK-W300NH2.dts            |  13 +-
 target/linux/ramips/dts/MicroWRT.dts               |   4 +-
 target/linux/ramips/dts/NA930.dts                  |  14 +-
 target/linux/ramips/dts/NBG-419N.dts               |   5 +-
 target/linux/ramips/dts/NCS601W.dts                |  41 +-
 target/linux/ramips/dts/NW718.dts                  |   6 +
 target/linux/ramips/dts/OLINUXINO-RT5350F-EVB.dts  | 101 -----
 target/linux/ramips/dts/OLINUXINO-RT5350F.dts      |  79 ----
 target/linux/ramips/dts/OMNI-EMB-HPM.dts           | 142 ------
 target/linux/ramips/dts/OMNI-EMB.dts               |  90 ----
 target/linux/ramips/dts/OMNI-PLUG.dts              | 113 -----
 target/linux/ramips/dts/OY-0001.dts                |  14 +-
 target/linux/ramips/dts/PBR-M1.dts                 |  12 +-
 target/linux/ramips/dts/PSR-680W.dts               |   3 +-
 target/linux/ramips/dts/PWH2004.dts                |   4 +-
 target/linux/ramips/dts/PX-4885-4M.dts             |  43 ++
 target/linux/ramips/dts/PX-4885-8M.dts             |  43 ++
 target/linux/ramips/dts/PX-4885.dtsi               |  54 +++
 target/linux/ramips/dts/PX4885-4M.dts              |  42 --
 target/linux/ramips/dts/PX4885-8M.dts              |  42 --
 target/linux/ramips/dts/PX4885.dtsi                |  51 ---
 target/linux/ramips/dts/RE6500.dts                 |   8 +-
 target/linux/ramips/dts/RP-N53.dts                 |  30 +-
 target/linux/ramips/dts/RT-G32-B1.dts              |   3 +
 target/linux/ramips/dts/RT-N10-PLUS.dts            |   6 +-
 target/linux/ramips/dts/RT-N13U.dts                |   9 +-
 target/linux/ramips/dts/RT-N14U.dts                |  17 +-
 target/linux/ramips/dts/RT-N15.dts                 |   9 +-
 target/linux/ramips/dts/RT-N56U.dts                | 151 +++++++
 target/linux/ramips/dts/RT5350F-OLINUXINO-EVB.dts  | 102 +++++
 target/linux/ramips/dts/RT5350F-OLINUXINO.dts      |  80 ++++
 target/linux/ramips/dts/RTN56U.dts                 | 146 -------
 target/linux/ramips/dts/RUT5XX.dts                 |   9 +-
 target/linux/ramips/dts/SAP-G3200U3.dts            |   4 +-
 target/linux/ramips/dts/SL-R7205.dts               |   4 +-
 target/linux/ramips/dts/TEW-691GR.dts              |   9 +-
 target/linux/ramips/dts/TEW-692GR.dts              |  13 +-
 target/linux/ramips/dts/UR-326N4G.dts              |  20 +-
 target/linux/ramips/dts/UR-336UN.dts               |  20 +-
 target/linux/ramips/dts/V11STFE.dts                |   2 +-
 target/linux/ramips/dts/V22RW-2X2.dts              |   5 +-
 target/linux/ramips/dts/VOCORE.dts                 |  15 +
 target/linux/ramips/dts/W150M.dts                  |  25 +-
 target/linux/ramips/dts/W306R_V20.dts              |   4 +-
 target/linux/ramips/dts/W502U.dts                  |   9 +-
 target/linux/ramips/dts/WCR150GN.dts               |   9 +-
 target/linux/ramips/dts/WHR-1166D.dts              |  27 +-
 target/linux/ramips/dts/WHR-300HP2.dts             |  27 +-
 target/linux/ramips/dts/WHR-600D.dts               |  28 +-
 target/linux/ramips/dts/WHR-G300N.dts              |   8 +-
 target/linux/ramips/dts/WIZARD8800.dts             |   1 +
 target/linux/ramips/dts/WL-330N.dts                | 100 +++++
 target/linux/ramips/dts/WL-330N3G.dts              | 109 +++++
 target/linux/ramips/dts/WL-341V3.dts               | 123 ++++++
 target/linux/ramips/dts/WL-351.dts                 |   6 +-
 target/linux/ramips/dts/WL341V3.dts                | 115 -----
 target/linux/ramips/dts/WLI-TX4-AG300N.dts         |  17 +-
 target/linux/ramips/dts/WL_330N.dts                |  95 ----
 target/linux/ramips/dts/WL_330N3G.dts              | 103 -----
 target/linux/ramips/dts/WMR-300.dts                | 106 +++++
 target/linux/ramips/dts/WMR300.dts                 | 101 -----
 target/linux/ramips/dts/WNCE2001.dts               |  17 +-
 target/linux/ramips/dts/WR512-3GN-4M.dts           |  18 +-
 target/linux/ramips/dts/WR512-3GN-8M.dts           |  18 +-
 target/linux/ramips/dts/WR6202.dts                 |   5 +-
 target/linux/ramips/dts/WR8305RT.dts               | 112 -----
 target/linux/ramips/dts/WRTNODE.dts                |   1 +
 target/linux/ramips/dts/WSR-1166.dts               |  30 +-
 target/linux/ramips/dts/WSR-600.dts                |  31 +-
 target/linux/ramips/dts/WT1520-4M.dts              |   1 +
 target/linux/ramips/dts/WT1520-8M.dts              |   1 +
 target/linux/ramips/dts/WT3020-4M.dts              |  28 +-
 target/linux/ramips/dts/WT3020-8M.dts              |  28 +-
 target/linux/ramips/dts/WZR-AGL300NH.dts           |  22 +-
 target/linux/ramips/dts/X5.dts                     |   9 +
 target/linux/ramips/dts/X8.dts                     |   3 +
 target/linux/ramips/dts/XDXRN502J.dts              |   4 +-
 target/linux/ramips/dts/XIAOMI-MIWIFI-MINI.dts     | 149 -------
 target/linux/ramips/dts/Y1.dts                     |  20 +-
 target/linux/ramips/dts/Y1.dtsi                    |   2 +
 target/linux/ramips/dts/Y1S.dts                    |  22 +-
 target/linux/ramips/dts/ZBT-WA05.dts               |  10 +-
 target/linux/ramips/dts/ZBT-WR8305RT.dts           | 117 +++++
 target/linux/ramips/dts/ZTE-Q7.dts                 |   8 +-
 target/linux/ramips/dts/mt7620a.dtsi               |  14 +-
 target/linux/ramips/dts/mt7620n.dtsi               |   5 +-
 target/linux/ramips/dts/mt7621.dtsi                |  20 +-
 target/linux/ramips/dts/mt7628an.dtsi              |   9 +-
 target/linux/ramips/dts/rt2880.dtsi                |   3 +-
 target/linux/ramips/dts/rt3050.dtsi                |   2 +-
 target/linux/ramips/dts/rt3352.dtsi                |   1 +
 target/linux/ramips/dts/rt3883.dtsi                |   1 +
 target/linux/ramips/dts/rt5350.dtsi                |   5 +
 target/linux/ramips/image/Makefile                 |  80 ++--
 target/linux/ramips/mt7620/profiles/aigale.mk      |   6 +-
 target/linux/ramips/mt7620/profiles/mediatek.mk    |   2 +-
 target/linux/ramips/mt7620/profiles/microduino.mk  |  16 +
 target/linux/ramips/mt7620/profiles/microwrt.mk    |   9 -
 .../ramips/mt7620/profiles/xiaomi-miwifi-mini.mk   |  18 -
 target/linux/ramips/mt7620/profiles/xiaomi.mk      |  18 +
 target/linux/ramips/mt7621/profiles/firefly.mk     |  12 +-
 target/linux/ramips/mt7621/profiles/misc.mk        |  20 +
 target/linux/ramips/mt7621/profiles/pbr-m1.mk      |  22 -
 target/linux/ramips/mt7621/profiles/sap-g3200u3.mk |  18 -
 target/linux/ramips/mt7621/profiles/storylink.mk   |  18 +
 target/linux/ramips/rt288x/profiles/asus.mk        |   8 +-
 target/linux/ramips/rt288x/profiles/belkin.mk      |  10 +-
 target/linux/ramips/rt288x/profiles/edimax.mk      |  18 -
 target/linux/ramips/rt305x/profiles/allnet.mk      |   7 +-
 target/linux/ramips/rt305x/profiles/alpha.mk       |   1 -
 target/linux/ramips/rt305x/profiles/arcwireless.mk |  17 +
 target/linux/ramips/rt305x/profiles/asiarf.mk      |  23 +-
 target/linux/ramips/rt305x/profiles/asus.mk        |   8 +-
 target/linux/ramips/rt305x/profiles/aximcom.mk     |   1 -
 target/linux/ramips/rt305x/profiles/aztech.mk      |   1 -
 target/linux/ramips/rt305x/profiles/belkin.mk      |  10 +-
 target/linux/ramips/rt305x/profiles/broadway.mk    |   1 -
 target/linux/ramips/rt305x/profiles/d-link.mk      |  68 +++
 target/linux/ramips/rt305x/profiles/dlink.mk       |  69 ---
 target/linux/ramips/rt305x/profiles/easyacc.mk     |   1 -
 target/linux/ramips/rt305x/profiles/engenius.mk    |  10 +-
 target/linux/ramips/rt305x/profiles/fon.mk         |   1 -
 .../linux/ramips/rt305x/profiles/freestation5.mk   |  18 -
 target/linux/ramips/rt305x/profiles/hame.mk        |   4 +-
 target/linux/ramips/rt305x/profiles/hg255d.mk      |  17 -
 target/linux/ramips/rt305x/profiles/hilink.mk      |   2 -
 target/linux/ramips/rt305x/profiles/hootoo.mk      |   2 -
 target/linux/ramips/rt305x/profiles/huawei.mk      |  16 +
 target/linux/ramips/rt305x/profiles/intenso.mk     |  19 +
 target/linux/ramips/rt305x/profiles/m2m.mk         |  20 -
 target/linux/ramips/rt305x/profiles/misc.mk        |   1 -
 target/linux/ramips/rt305x/profiles/nexx.mk        |   1 -
 target/linux/ramips/rt305x/profiles/olimex.mk      |  33 ++
 .../rt305x/profiles/olinuxino-rt5350f-evb.mk       |  21 -
 .../ramips/rt305x/profiles/olinuxino-rt5350f.mk    |  20 -
 target/linux/ramips/rt305x/profiles/planex.mk      |   1 -
 target/linux/ramips/rt305x/profiles/poray.mk       |  12 +-
 target/linux/ramips/rt305x/profiles/sevenlinks.mk  |   8 +-
 target/linux/ramips/rt305x/profiles/tenda.mk       |   5 +-
 target/linux/ramips/rt305x/profiles/upvel.mk       |  17 +-
 target/linux/ramips/rt305x/profiles/vocore.mk      |   1 -
 target/linux/ramips/rt305x/profiles/wansview.mk    |   3 +-
 target/linux/ramips/rt3883/profiles/omnima.mk      |  10 +-
 target/linux/ramips/rt3883/profiles/trendnet.mk    |   1 +
 231 files changed, 4070 insertions(+), 3600 deletions(-)
 create mode 100644 target/linux/ramips/dts/AI-BR100.dts
 delete mode 100644 target/linux/ramips/dts/AIBR100.dts
 delete mode 100644 target/linux/ramips/dts/ARGUS_ATP52B.dts
 create mode 100644 target/linux/ramips/dts/ATP-52B.dts
 create mode 100644 target/linux/ramips/dts/HPM.dts
 create mode 100644 target/linux/ramips/dts/MINIEMBPLUG.dts
 create mode 100644 target/linux/ramips/dts/MINIEMBWIFI.dts
 create mode 100644 target/linux/ramips/dts/MIWIFI-MINI.dts
 delete mode 100644 target/linux/ramips/dts/OLINUXINO-RT5350F-EVB.dts
 delete mode 100644 target/linux/ramips/dts/OLINUXINO-RT5350F.dts
 delete mode 100644 target/linux/ramips/dts/OMNI-EMB-HPM.dts
 delete mode 100644 target/linux/ramips/dts/OMNI-EMB.dts
 delete mode 100644 target/linux/ramips/dts/OMNI-PLUG.dts
 create mode 100644 target/linux/ramips/dts/PX-4885-4M.dts
 create mode 100644 target/linux/ramips/dts/PX-4885-8M.dts
 create mode 100644 target/linux/ramips/dts/PX-4885.dtsi
 delete mode 100644 target/linux/ramips/dts/PX4885-4M.dts
 delete mode 100644 target/linux/ramips/dts/PX4885-8M.dts
 delete mode 100644 target/linux/ramips/dts/PX4885.dtsi
 create mode 100644 target/linux/ramips/dts/RT-N56U.dts
 create mode 100644 target/linux/ramips/dts/RT5350F-OLINUXINO-EVB.dts
 create mode 100644 target/linux/ramips/dts/RT5350F-OLINUXINO.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
 create mode 100644 target/linux/ramips/dts/WL-341V3.dts
 delete mode 100644 target/linux/ramips/dts/WL341V3.dts
 delete mode 100644 target/linux/ramips/dts/WL_330N.dts
 delete mode 100644 target/linux/ramips/dts/WL_330N3G.dts
 create mode 100644 target/linux/ramips/dts/WMR-300.dts
 delete mode 100644 target/linux/ramips/dts/WMR300.dts
 delete mode 100644 target/linux/ramips/dts/WR8305RT.dts
 delete mode 100644 target/linux/ramips/dts/XIAOMI-MIWIFI-MINI.dts
 create mode 100644 target/linux/ramips/dts/ZBT-WR8305RT.dts
 create mode 100644 target/linux/ramips/mt7620/profiles/microduino.mk
 delete mode 100644 target/linux/ramips/mt7620/profiles/microwrt.mk
 delete mode 100644 target/linux/ramips/mt7620/profiles/xiaomi-miwifi-mini.mk
 create mode 100644 target/linux/ramips/mt7620/profiles/xiaomi.mk
 create mode 100644 target/linux/ramips/mt7621/profiles/misc.mk
 delete mode 100644 target/linux/ramips/mt7621/profiles/pbr-m1.mk
 delete mode 100644 target/linux/ramips/mt7621/profiles/sap-g3200u3.mk
 create mode 100644 target/linux/ramips/mt7621/profiles/storylink.mk
 delete mode 100644 target/linux/ramips/rt288x/profiles/edimax.mk
 create mode 100644 target/linux/ramips/rt305x/profiles/arcwireless.mk
 create mode 100644 target/linux/ramips/rt305x/profiles/d-link.mk
 delete mode 100644 target/linux/ramips/rt305x/profiles/dlink.mk
 delete mode 100644 target/linux/ramips/rt305x/profiles/freestation5.mk
 delete mode 100644 target/linux/ramips/rt305x/profiles/hg255d.mk
 create mode 100644 target/linux/ramips/rt305x/profiles/huawei.mk
 create mode 100644 target/linux/ramips/rt305x/profiles/intenso.mk
 delete mode 100644 target/linux/ramips/rt305x/profiles/m2m.mk
 create mode 100644 target/linux/ramips/rt305x/profiles/olimex.mk
 delete mode 100644 target/linux/ramips/rt305x/profiles/olinuxino-rt5350f-evb.mk
 delete mode 100644 target/linux/ramips/rt305x/profiles/olinuxino-rt5350f.mk

-- 
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