diff options
author | John Klug <john.klug@multitech.com> | 2019-07-26 18:15:12 -0500 |
---|---|---|
committer | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2020-05-20 19:50:20 +0300 |
commit | 5a0fc418e0617126bcb212213e30954c8b1dc02d (patch) | |
tree | f6954c5559ae129a3a1083ba787489c887e7a70a | |
parent | 999abcdce63816b80d5de39f3d24d4cac19321d2 (diff) | |
download | meta-mlinux-5a0fc418e0617126bcb212213e30954c8b1dc02d.tar.gz meta-mlinux-5a0fc418e0617126bcb212213e30954c8b1dc02d.tar.bz2 meta-mlinux-5a0fc418e0617126bcb212213e30954c8b1dc02d.zip |
Fix gpsd major number function for GNU Linux
-rw-r--r-- | recipes-navigation/gpsd/gpsd-3.16/0008-major_gnu.patch | 12 | ||||
-rw-r--r-- | recipes-navigation/gpsd/gpsd_3.16.bb | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/recipes-navigation/gpsd/gpsd-3.16/0008-major_gnu.patch b/recipes-navigation/gpsd/gpsd-3.16/0008-major_gnu.patch new file mode 100644 index 0000000..8582712 --- /dev/null +++ b/recipes-navigation/gpsd/gpsd-3.16/0008-major_gnu.patch @@ -0,0 +1,12 @@ +diff -Naru orig/serial.c new/serial.c +--- orig/serial.c 2019-07-26 18:01:44.178086824 -0500 ++++ new/serial.c 2019-07-26 18:02:49.742084883 -0500 +@@ -64,7 +64,7 @@ + * stable and architecture-independent. It is *not* a good model + * for other Unixes where either or both assumptions may break. + */ +- int devmajor = major(sb.st_rdev); ++ int devmajor = gnu_dev_major(sb.st_rdev); + /* 207 are Freescale i.MX UARTs (ttymxc*) */ + if (devmajor == 4 || devmajor == 204 || devmajor == 207) + devtype = source_rs232; diff --git a/recipes-navigation/gpsd/gpsd_3.16.bb b/recipes-navigation/gpsd/gpsd_3.16.bb index 35719aa..1464981 100644 --- a/recipes-navigation/gpsd/gpsd_3.16.bb +++ b/recipes-navigation/gpsd/gpsd_3.16.bb @@ -17,6 +17,7 @@ SRC_URI = "${SAVANNAH_GNU_MIRROR}/${BPN}/${BP}.tar.gz \ file://0006-ubxtimelps.patch \ file://0006-itu_r_tf_460_6.patch \ file://0006-sysclockcrash.patch \ + file://0008-major_gnu.patch \ file://gpsd-default \ file://gpsd \ file://gpsd_ubx_fixed.sh \ |