diff options
author | John Klug <john.klug@multitech.com> | 2020-10-29 10:45:27 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2020-10-29 10:45:27 -0500 |
commit | 4de85a4989c04bed0774298ba7d06cfada9f1986 (patch) | |
tree | 6206185cd7081354f31c874c543687351ac4ea3a | |
parent | 2f480dcefa229558b3966068fb71724f29378fae (diff) | |
download | meta-multitech-4de85a4989c04bed0774298ba7d06cfada9f1986.tar.gz meta-multitech-4de85a4989c04bed0774298ba7d06cfada9f1986.tar.bz2 meta-multitech-4de85a4989c04bed0774298ba7d06cfada9f1986.zip |
GPS should depend on CPU hw_type, not base board
-rwxr-xr-x | recipes-bsp/multitech/mts-io/mts-io.init | 10 |
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 |