| DESCRIPTION = "MTK GNSS driver" |
| LICENSE = "MediaTekProprietary" |
| LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff" |
| |
| inherit workonsrc |
| WORKONSRC = "${TOPDIR}/../src/connectivity/gps/mtk_mnld/" |
| inherit systemd |
| SYSTEMD_PACKAGES = "${PN}" |
| SYSTEMD_SERVICE_${PN} = "mnld.service" |
| |
| FILES_${PN} += "${systemd_unitdir}/system/mnld.service" |
| FILES_${PN} += "${libdir}/libmnl_gnss.so*" |
| FILES_${PN} += "${bindir}/mnld0" |
| FILES_${PN} += "/data/misc" |
| FILES_${PN} += "/data/misc/gps" |
| FILES_${PN} += "/data/gps_mnl" |
| FILES_${PN} += "/data/mpe_mnl" |
| FILES_${PN} += "/data/agps_supl" |
| FILES_${PN} += "/usr/share/gps" |
| FILES_${PN} += "/usr/share/gps/mpe_mnl" |
| |
| DEPENDS += "openssl curl" |
| |
| # Avoid QA Issue: No GNU_HASH in the elf binary |
| INSANE_SKIP_${PN} = "ldflags" |
| INSANE_SKIP_${PN}-dev = "ldflags" |
| #FILES_${PN} = "${libdir}/*.so" |
| FILES_${PN}-dev = "${includedir}" |
| |
| # Avoid QA Issue: 'Files/directories were installed but not shipped' |
| INSANE_SKIP_${PN} += "installed-vs-shipped" |
| FLAGS = "-Os -flto ${@bb.utils.contains("ADR_SUPPORT","YES", "-DMTK_ADR_SUPPORT","",d)}" |
| |
| EXTRA_OEMAKE = "\ |
| 'PACKAGE_ARCH=${PACKAGE_ARCH}' \ |
| 'DNS_FLAGS=${FLAGS}' \ |
| " |
| |
| do_compile_append() { |
| cp mnl/libs/linux/${PACKAGE_ARCH}/lib* mnl/libs/ |
| } |
| |
| do_install_append() { |
| install -d ${D}${libdir} |
| install -d ${D}${bindir} |
| install -d ${D}/data/misc |
| install -d ${D}/data/misc/gps |
| install -d ${D}/data/gps_mnl |
| install -d ${D}/data/mpe_mnl |
| install -d ${D}/data/agps_supl |
| install -d ${D}/usr/share/gps |
| install -d ${D}/usr/share/gps/mpe_mnl |
| install -m 0755 mnld0 ${D}${bindir} |
| install -m 0755 ${TOPDIR}/../src/connectivity/gps/mtk_mnld/mnl/libs/linux/${PACKAGE_ARCH}/libmnl_gnss.so ${D}${libdir} |
| if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then |
| install -d ${D}${systemd_unitdir}/system/ |
| install -m 0644 ${B}/mnld.service ${D}${systemd_unitdir}/system |
| fi |
| } |
| |
| |
| INSANE_SKIP_${PN} += "already-stripped" |
| |
| inherit autotools |
| |