DESCRIPTION = "MTK AGPS Daemon" LICENSE = "MediaTekProprietary" LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff" inherit workonsrc WORKONSRC = "${TOPDIR}/../src/connectivity/agps" SRC_URI = "file://agps_profiles_conf2.xml" DEPENDS += "openssl platform-libs" TARGET_CC_ARCH += "${LDFLAGS}" EXTRA_OEMAKE = "'BB_SYSROOT_ADD=${STAGING_DIR_HOST}'" INSANE_SKIP_${PN} += "already-stripped" FILES_${PN} += "${bindir}/mtk_agpsd" FILES_${PN} += "${bindir}/mtk_lbs_em_tool" FILES_${PN} += "${datadir}/agps/agps_profiles_conf2.xml" FILES_${PN} += "/data/agps_supl/" do_install() { oe_runmake PREFIX="${prefix}" DESTDIR="${D}" install } inherit systemd SYSTEMD_PACKAGES = "${PN}" SYSTEMD_SERVICE_${PN} = "agps.service" FILES_${PN} += "${systemd_unitdir}/system/agps.service" do_install_append() { install -d ${D}${datadir}/agps install -m 0664 ${WORKDIR}/agps_profiles_conf2.xml ${D}${datadir}/agps if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then install -d ${D}${systemd_unitdir}/system/ install -m 0644 ${B}/lib/systemd/system/agps.service ${D}${systemd_unitdir}/system fi }