treewide: drop target board_name functions
authorMathias Kresin <dev@kresin.me>
Sun, 9 Jul 2017 10:25:04 +0000 (12:25 +0200)
committerMathias Kresin <dev@kresin.me>
Sat, 15 Jul 2017 21:13:34 +0000 (23:13 +0200)
They are not used any longer.

Signed-off-by: Mathias Kresin <dev@kresin.me>
20 files changed:
target/linux/apm821xx/base-files/lib/apm821xx.sh
target/linux/ar71xx/base-files/lib/ar71xx.sh
target/linux/arc770/base-files/lib/arc.sh
target/linux/archs38/base-files/lib/arc.sh
target/linux/at91/base-files/lib/at91.sh
target/linux/brcm2708/base-files/lib/brcm2708.sh
target/linux/brcm63xx/base-files/lib/brcm63xx.sh
target/linux/cns3xxx/base-files/lib/cns3xxx.sh
target/linux/imx6/base-files/lib/imx6.sh
target/linux/ipq806x/base-files/lib/ipq806x.sh
target/linux/ixp4xx/base-files/lib/ixp4xx.sh
target/linux/kirkwood/base-files/lib/kirkwood.sh
target/linux/mcs814x/base-files/lib/mcs814x.sh
target/linux/mpc85xx/base-files/lib/mpc85xx.sh
target/linux/mvebu/base-files/lib/mvebu.sh
target/linux/mxs/base-files/lib/mxs.sh
target/linux/oxnas/base-files/lib/oxnas.sh
target/linux/ppc40x/base-files/lib/ppc40x.sh [deleted file]
target/linux/ramips/base-files/lib/ramips.sh
target/linux/sunxi/base-files/lib/sunxi.sh [deleted file]

index 98f6ee92abcc139d43183a3a48717c8c7281c20e..8f0814b29636df95091de7b60d378c91db56bf50 100755 (executable)
@@ -41,12 +41,3 @@ apm821xx_board_detect() {
        echo "$APM821XX_BOARD_NAME" > /tmp/sysinfo/board_name
        echo "$APM821XX_MODEL" > /tmp/sysinfo/model
 }
-
-apm821xx_board_name() {
-       local name
-
-       [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
-       [ -z "$name" ] && name="unknown"
-
-       echo "$name"
-}
index b74807d4b0e5fe4668e757f483404743fa32d3b7..5c29a3f0d085abbb334b4908315f729929b16eaf 100755 (executable)
@@ -1342,12 +1342,3 @@ ar71xx_board_detect() {
        echo "$AR71XX_BOARD_NAME" > /tmp/sysinfo/board_name
        echo "$AR71XX_MODEL" > /tmp/sysinfo/model
 }
-
-ar71xx_board_name() {
-       local name
-
-       [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
-       [ -z "$name" ] && name="unknown"
-
-       echo "$name"
-}
index 2b4fb93ce9500a490e746a4abff4bb76db14fa06..185aeedb2dcf5aa6b91b244c376e1f866927d310 100644 (file)
@@ -38,13 +38,3 @@ arc_board_detect() {
        echo "$ARC_BOARD_MODEL" > /tmp/sysinfo/model
        echo "Detected $ARC_BOARD_NAME // $ARC_BOARD_MODEL"
 }
-
-arc_board_name() {
-       local name
-
-       [ -f /tmp/sysinfo/board_name ] && name="$(cat /tmp/sysinfo/board_name)"
-       [ -z "$name" ] && name="unknown"
-
-       echo "$name"
-}
-
index 99d0077f6742bcb056bbcbb9aa448f304f7b65d5..9ca1a2c09a401c01268914d4f38a6a81369a0c0c 100644 (file)
@@ -38,13 +38,3 @@ arc_board_detect() {
        echo "$ARC_BOARD_MODEL" > /tmp/sysinfo/model
        echo "Detected $ARC_BOARD_NAME // $ARC_BOARD_MODEL"
 }
-
-arc_board_name() {
-       local name
-
-       [ -f /tmp/sysinfo/board_name ] && name="$(cat /tmp/sysinfo/board_name)"
-       [ -z "$name" ] && name="unknown"
-
-       echo "$name"
-}
-
index e395646cbc29e9a41623f61612ce48ec1a474532..0fa2ee32515539b2266c61ee0f04b6d2748250c8 100755 (executable)
@@ -79,12 +79,3 @@ at91_board_detect() {
        echo "$AT91_BOARD_NAME" > /tmp/sysinfo/board_name
        echo "$AT91_MODEL" > /tmp/sysinfo/model
 }
-
-at91_board_name() {
-       local name
-
-       [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
-       [ -n "$name" ] || name="unknown"
-
-       echo "$name"
-}
index 81f123f2042979ec1d2e40d2dbc4ae72b0d9e02b..76e678ff97ffd7b4f7f0a111df8ea450eb04f063 100644 (file)
@@ -41,12 +41,3 @@ brcm2708_detect() {
        echo "$board_name" > /tmp/sysinfo/board_name
        echo "$model" > /tmp/sysinfo/model
 }
-
-brcm2708_board_name() {
-       local name
-
-       [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
-       [ -n "$name" ] || name="unknown"
-
-       echo $name
-}
index 0dc87d0fd01a508e198072241ac513267e0043ed..fc3d6990f32ef4eaeedd43cc378b13edf498cfe1 100755 (executable)
@@ -299,12 +299,3 @@ brcm63xx_detect() {
        echo "$board_name" > /tmp/sysinfo/board_name
        echo "$model" > /tmp/sysinfo/model
 }
-
-brcm63xx_board_name() {
-       local name
-
-       [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
-       [ -n "$name" ] || name="unknown"
-
-       echo $name
-}
index fb2c1043e13bc4fd9b8934465fe3cda74733cd5e..877f9f8749bdd7d89779117f4e26be41f95d89c1 100644 (file)
@@ -26,12 +26,3 @@ cns3xxx_board_detect() {
        echo "$CNS3XXX_BOARD_NAME" > /tmp/sysinfo/board_name
        echo "$CNS3XXX_MODEL" > /tmp/sysinfo/model
 }
-
-cns3xxx_board_name() {
-       local name
-
-       [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
-       [ -z "$name" ] && name="unknown"
-
-       echo "$name"
-}
index 385c54f9f97fd33972559e8b11c189ae4bcfce7b..e211f54e5472dcce29c76f0e40681a072d36b8ff 100755 (executable)
@@ -71,12 +71,3 @@ imx6_board_detect() {
        echo "$IMX6_BOARD_NAME" > /tmp/sysinfo/board_name
        echo "$IMX6_MODEL" > /tmp/sysinfo/model
 }
-
-imx6_board_name() {
-       local name
-
-       [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
-       [ -z "$name" ] && name="unknown"
-
-       echo "$name"
-}
index a8950a5e85996635169eed7e963d585cff3df603..e8ff7ea3f83679e72d271fb321b8554562b7a242 100644 (file)
@@ -60,15 +60,6 @@ ipq806x_board_detect() {
        echo "$IPQ806X_MODEL" > /tmp/sysinfo/model
 }
 
-ipq806x_board_name() {
-       local name
-
-       [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
-       [ -z "$name" ] && name="unknown"
-
-       echo "$name"
-}
-
 ipq806x_get_dt_led() {
        local label
        local ledpath
index 7486356b9cceae617a0fedd3e6f546443e7b2ffc..3f73dd98e0a701b185cfd57876406f409a3d540f 100644 (file)
@@ -32,12 +32,3 @@ ixp4xx_board_detect() {
        echo "$IXP4XX_BOARD_NAME" > /tmp/sysinfo/board_name
        echo "$IXP4XX_MODEL" > /tmp/sysinfo/model
 }
-
-ixp4xx_board_name() {
-       local name
-
-       [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
-       [ -z "$name" ] && name="unknown"
-
-       echo $name
-}
index 20c6ebdfde7a088326f5b08f0aa3a0bad162066f..f1229fa97bd419424eb57d04846c18c2b0e122af 100755 (executable)
@@ -86,12 +86,3 @@ kirkwood_board_detect() {
        echo "$KIRKWOOD_BOARD_NAME" > /tmp/sysinfo/board_name
        echo "$KIRKWOOD_MODEL" > /tmp/sysinfo/model
 }
-
-kirkwood_board_name() {
-       local name
-
-       [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
-       [ -z "$name" ] && name="unknown"
-
-       echo "$name"
-}
index e4360fdb8f7d9ef74e82e0c301b78fad605509c6..3c16c9c125a3b8ff2de0057a9f305c31c2054f48 100644 (file)
@@ -31,12 +31,3 @@ mcs814x_board_detect() {
        echo "$MCS814X_BOARD_NAME" > /tmp/sysinfo/board_name
        echo "$MCS814X_MODEL" > /tmp/sysinfo/model
 }
-
-mcs814x_board_name() {
-       local name
-
-       [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
-       [ -z "$name" ] && name="unknown"
-
-       echo "$name"
-}
index 57575634d6edc60156b3d2afc95795aee9caaf06..1a2a671e28ed3b0e82394292cfaa8b4b756e415e 100755 (executable)
@@ -28,12 +28,3 @@ mpc85xx_board_detect() {
        echo "$MPC85XX_BOARD_NAME" > /tmp/sysinfo/board_name
        echo "$MPC85XX_MODEL" > /tmp/sysinfo/model
 }
-
-mpc85xx_board_name() {
-       local name
-
-       [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
-       [ -z "$name" ] && name="unknown"
-
-       echo "$name"
-}
index 9096860dd4f1fee96cb6e7bacdefac81e2de7d68..fb3ddee4f5584f90b5f2a087d4c1128a282581f5 100755 (executable)
@@ -71,12 +71,3 @@ mvebu_board_detect() {
        echo "$MVEBU_BOARD_NAME" > /tmp/sysinfo/board_name
        echo "$MVEBU_MODEL" > /tmp/sysinfo/model
 }
-
-mvebu_board_name() {
-       local name
-
-       [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
-       [ -z "$name" ] && name="unknown"
-
-       echo "$name"
-}
index ed5a527774cddab6e404fee9ab314e8972fb63a9..f6c3b22916bbe507f4295406e3c3a7a5b795b9b3 100644 (file)
@@ -31,12 +31,3 @@ mxs_board_detect() {
        echo "$MXS_BOARD_NAME" > /tmp/sysinfo/board_name
        echo "$MXS_MODEL" > /tmp/sysinfo/model
 }
-
-mxs_board_name() {
-       local name
-
-       [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
-       [ -z "$name" ] && name="unknown"
-
-       echo "$name"
-}
index b0d79ea7cf069ee9a3b350218a9e0550e06c7922..671dd05fa25f60adc709f32270078097fcba7476 100755 (executable)
@@ -64,12 +64,3 @@ oxnas_board_detect() {
        echo "$OXNAS_BOARD_NAME" > /tmp/sysinfo/board_name
        echo "$OXNAS_MODEL" > /tmp/sysinfo/model
 }
-
-oxnas_board_name() {
-       local name
-
-       [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
-       [ -z "$name" ] && name="unknown"
-
-       echo "$name"
-}
diff --git a/target/linux/ppc40x/base-files/lib/ppc40x.sh b/target/linux/ppc40x/base-files/lib/ppc40x.sh
deleted file mode 100755 (executable)
index 8a6c487..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-#
-# Copyright (C) 2010 OpenWrt.org
-#
-
-ppc40x_board_name() {
-       local model
-
-       model=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /model/ {print $2}' /proc/cpuinfo)
-       echo $model
-}
index 3eb66dc6462a6a0f02f78a3e9bd64f46d4407845..056fab9defceff8548ccac97723a2ee989ca3db6 100755 (executable)
@@ -716,12 +716,3 @@ ramips_board_detect() {
        echo "$RAMIPS_BOARD_NAME" > /tmp/sysinfo/board_name
        echo "$RAMIPS_MODEL" > /tmp/sysinfo/model
 }
-
-ramips_board_name() {
-       local name
-
-       [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
-       [ -z "$name" ] && name="unknown"
-
-       echo "${name}"
-}
diff --git a/target/linux/sunxi/base-files/lib/sunxi.sh b/target/linux/sunxi/base-files/lib/sunxi.sh
deleted file mode 100644 (file)
index dbb27fe..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-sunxi_board_name() {
-       local name
-
-       [ -f /tmp/sysinfo/board_name ] && name="$(cat /tmp/sysinfo/board_name)"
-       [ -z "$name" ] && name="unknown"
-
-       echo "$name"
-}