summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2020-10-29 10:45:27 -0500
committerJohn Klug <john.klug@multitech.com>2021-06-22 12:33:43 -0500
commitb4dff3af8344f51c29cf507d858df99b74d7dd8d (patch)
tree2f7341b8f4202d7725367dafe9a612644e57d645
parent84a7c854fc6489cf6609ebecfd30d5305c6b948f (diff)
downloadmeta-multitech-b4dff3af8344f51c29cf507d858df99b74d7dd8d.tar.gz
meta-multitech-b4dff3af8344f51c29cf507d858df99b74d7dd8d.tar.bz2
meta-multitech-b4dff3af8344f51c29cf507d858df99b74d7dd8d.zip
GPS should depend on CPU hw_type, not base board
-rwxr-xr-xrecipes-bsp/multitech/mts-io/mts-io.init10
1 files changed, 4 insertions, 6 deletions
diff --git a/recipes-bsp/multitech/mts-io/mts-io.init b/recipes-bsp/multitech/mts-io/mts-io.init
index 443b5ec..f089a6b 100755
--- a/recipes-bsp/multitech/mts-io/mts-io.init
+++ b/recipes-bsp/multitech/mts-io/mts-io.init
@@ -258,14 +258,12 @@ set_gpslink() {
return
;;
MTCDT3)
- [[ $hw =~ ^[^-]*-([^-]*) ]]
- bbtype=${BASH_REMATCH[1]}
- echo "hw_name: ${hw_name} bbtype: ${bbtype}"
- case ${bbtype} in
- LORA16)
+ cpuhw=$(mts-io-sysfs show cpu/hw-version)
+ case ${cpuhw} in
+ MTCPM-0.0)
ln -sf /dev/ttyS1 /dev/gps0
;;
- BB)
+ MTCPM-0.1)
ln -sf /dev/ttyACM0 /dev/gps0
;;
esac