aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/archs38/base-files/lib/arc.sh
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-07-18 16:02:06 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-07-22 18:28:09 +0200
commit3c190ef112979793cd0e2148c53c6208a642a463 (patch)
tree931f9fc392b7c291dec4598bd0804383802ec595 /target/linux/archs38/base-files/lib/arc.sh
parent9662b9d68826c4941f7691a81ac75b7a3cd64abd (diff)
downloadupstream-3c190ef112979793cd0e2148c53c6208a642a463.tar.gz
upstream-3c190ef112979793cd0e2148c53c6208a642a463.tar.bz2
upstream-3c190ef112979793cd0e2148c53c6208a642a463.zip
archs38: use generic 02_sysinfo
Currently archs38 sets a board name from compatible for no apparent reason. Just use the compatible directly instead. This theoretically removes a board name "generic" when no compatible was present, however, there is no case where this "generic" board name was actually used. This also fixes an issue where snps,axs103 would not have been properly detected anyway, as its case was not set up syntactically correct. Fixes: 73015c4cb378 ("linux: add support of Synopsys ARCHS38-based boards") Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/archs38/base-files/lib/arc.sh')
-rw-r--r--target/linux/archs38/base-files/lib/arc.sh43
1 files changed, 0 insertions, 43 deletions
diff --git a/target/linux/archs38/base-files/lib/arc.sh b/target/linux/archs38/base-files/lib/arc.sh
deleted file mode 100644
index 50aaaa2d27..0000000000
--- a/target/linux/archs38/base-files/lib/arc.sh
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/sh
-#
-# Copyright (C) 2016 OpenWrt.org
-#
-
-# defaults
-ARC_BOARD_NAME="generic"
-ARC_BOARD_MODEL="Generic ARC board"
-
-arc_board_detect() {
- local board
- local model
- local compatible
-
- [ -e "/tmp/sysinfo/" ] || mkdir -p "/tmp/sysinfo/"
-
- model="$( cat /proc/device-tree/model )"
- compatible="$( cat /proc/device-tree/compatible )"
-
- case "$compatible" in
- "snps,axs103""snps,arc-sdp")
- board="arc-sdp";
- ;;
- "snps,hsdk")
- board="arc-hsdk";
- ;;
- "snps,nsim_hs")
- board="arc-nsim";
- ;;
- esac
-
- if [ "$board" != "" ]; then
- ARC_BOARD_NAME="$board"
- fi
-
- if [ "$model" != "" ]; then
- ARC_BOARD_MODEL="$model"
- fi
-
- echo "$ARC_BOARD_NAME" > /tmp/sysinfo/board_name
- echo "$ARC_BOARD_MODEL" > /tmp/sysinfo/model
- echo "Detected $ARC_BOARD_NAME // $ARC_BOARD_MODEL"
-}