blob: b0cf25090fa3949ba94e8ba74c90d2aa8a5a057c [file] [log] [blame]
DESCRIPTION = "MTK AGPS Daemon"
LICENSE = "MediaTekProprietary"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
FILESEXTRAPATHS_append := ":${THISDIR}/files"
inherit workonsrc
WORKONSRC = "${TOPDIR}/../src/connectivity/agps"
SRC_URI = "file://agps_profiles_conf2.xml"
DEPENDS += "openssl platform-libs libsncfg"
TARGET_CC_ARCH += "${LDFLAGS}"
EXTRA_OEMAKE = "'BB_SYSROOT_ADD=${STAGING_DIR_HOST}'"
LDFLAGS += "-lsncfg"
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 /system/etc/security/"
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
install -d ${D}/system
install -d ${D}/system/etc
install -d ${D}/system/etc/security
cp -rf ${TOPDIR}/../meta/meta-mediatek/recipes-connectivity/agps/files/cacerts ${D}/system/etc/security
}