blob: 9582ab4e348968105a66c067e99a1c5f05910a2b [file] [log] [blame]
lhcac8c5d2023-04-28 03:57:17 -07001#inherit externalsrc package
xf.li138ae442023-06-21 07:01:10 -07002#inherit externalsrc package systemd
lhcac8c5d2023-04-28 03:57:17 -07003DESCRIPTION = "Mobiletek_Tester_RDIT"
xf.li138ae442023-06-21 07:01:10 -07004LICENSE = "CLOSED"
lhcac8c5d2023-04-28 03:57:17 -07005LICENSE = "CLOSED"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=b1e07e8d88e26263e71d3a9e2aa9a2ff"
q.huang4d1aa012023-07-13 15:55:26 +08007
8DEPENDS += "liblynq-call liblynq-sms liblynq-network liblynq-sim liblynq-data liblynq-qser-data liblynq-qser-network"
9
xf.li138ae442023-06-21 07:01:10 -070010#inherit workonsrc
lhcac8c5d2023-04-28 03:57:17 -070011WORKONSRC = "${TOPDIR}/../src/lynq/packages/apps/Mobiletek_Tester_RDIT"
xf.li138ae442023-06-21 07:01:10 -070012FILESEXTRAPATHS_prepend :="${TOPDIR}/../src/lynq/packages/apps/:"
13SRC_URI = " \
14 file://Mobiletek_Tester_RDIT \
15 "
lhcac8c5d2023-04-28 03:57:17 -070016
xf.li138ae442023-06-21 07:01:10 -070017SRC-DIR = "${S}/../Mobiletek_Tester_RDIT"
lhcac8c5d2023-04-28 03:57:17 -070018TARGET_CC_ARCH += "${LDFLAGS}"
19SYSTEMD_PACKAGES = "${PN}"
20SYSTEMD_SERVICE_${PN} = "lynq_ril_service.service"
21FILES_${PN} += "${systemd_unitdir}/system/lynq_ril_service.service"
22FILES_${PN} += "/system/etc/tele/ring ${bindir}"
23#Parameters passed to do_compile()
24EXTRA_OEMAKE = "'RAT_CONFIG_C2K_SUPPORT = ${RAT_CONFIG_C2K_SUPPORT}'\
25 'MTK_MULTI_SIM_SUPPORT = ${MTK_MULTI_SIM_SUPPORT}'\
26 'TARGET_PLATFORM = ${TARGET_PLATFORM}'\
27 'MTK_LED_SUPPORT = ${MTK_LED_SUPPORT}'"
28EXTRA_OEMAKE += "'MOBILETEK_RIL_CFG = ${MOBILETEK_RIL_CFG}'"
29
30EXTRA_OEMAKE += "'MOBILETEK_FOTA_CFG = ${MOBILETEK_FOTA_CFG}'"
31
32#INHIBIT_PACKAGE_STRIP = "1"
33do_compile () {
34 if test "${PACKAGE_ARCH}" = "cortexa7hf-vfp-vfpv4-neon" || test "${PACKAGE_ARCH}" = "cortexa7hf-neon-vfpv4"; then
xf.li138ae442023-06-21 07:01:10 -070035 oe_runmake all -C ${SRC-DIR} ROOT=${STAGING_DIR_HOST} OFLAGS="--sysroot=${STAGING_DIR_HOST} -mhard-float"
lhcac8c5d2023-04-28 03:57:17 -070036 else
xf.li138ae442023-06-21 07:01:10 -070037 oe_runmake all -C ${SRC-DIR} ROOT=${STAGING_DIR_HOST} OFLAGS="--sysroot=${STAGING_DIR_HOST}"
lhcac8c5d2023-04-28 03:57:17 -070038 fi
39}
40
41do_install() {
42 echo "lynq-ril-service PN ${PN}"
43 echo "lynq-ril-service FILES_${PN} ${FILES_${PN}}"
44 echo "lynq-ril-service D ${D}"
45 echo "lynq-ril-service bindir ${bindir}"
46 echo "lynq-ril-service ${D}${bindir}"
47 echo "lynq-ril-service ${S}/Mobiletek_Tester_RDIT"
48 install -d ${D}${bindir}/
xf.li138ae442023-06-21 07:01:10 -070049 install -m 0755 ${SRC-DIR}/Mobiletek-Tester-RDIT ${D}${bindir}/
50 install -m 0755 ${SRC-DIR}/socket-tool ${D}${bindir}/
lhcac8c5d2023-04-28 03:57:17 -070051}