blob: 90b3164464c0a305b93f37ff00fbd8cd9970edbb [file] [log] [blame]
lhcac8c5d2023-04-28 03:57:17 -07001#inherit externalsrc package
2inherit externalsrc package systemd
3DESCRIPTION = "Mobiletek_Tester_RDIT"
4LICENSE = "MobileTekProprietary"
5LICENSE = "CLOSED"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=b1e07e8d88e26263e71d3a9e2aa9a2ff"
7DEPENDS += "liblynq-call"
8inherit workonsrc
9WORKONSRC = "${TOPDIR}/../src/lynq/packages/apps/Mobiletek_Tester_RDIT"
10
11TARGET_CC_ARCH += "${LDFLAGS}"
12SYSTEMD_PACKAGES = "${PN}"
13SYSTEMD_SERVICE_${PN} = "lynq_ril_service.service"
14FILES_${PN} += "${systemd_unitdir}/system/lynq_ril_service.service"
15FILES_${PN} += "/system/etc/tele/ring ${bindir}"
16#Parameters passed to do_compile()
17EXTRA_OEMAKE = "'RAT_CONFIG_C2K_SUPPORT = ${RAT_CONFIG_C2K_SUPPORT}'\
18 'MTK_MULTI_SIM_SUPPORT = ${MTK_MULTI_SIM_SUPPORT}'\
19 'TARGET_PLATFORM = ${TARGET_PLATFORM}'\
20 'MTK_LED_SUPPORT = ${MTK_LED_SUPPORT}'"
21EXTRA_OEMAKE += "'MOBILETEK_RIL_CFG = ${MOBILETEK_RIL_CFG}'"
22
23EXTRA_OEMAKE += "'MOBILETEK_FOTA_CFG = ${MOBILETEK_FOTA_CFG}'"
24
25#INHIBIT_PACKAGE_STRIP = "1"
26do_compile () {
27 if test "${PACKAGE_ARCH}" = "cortexa7hf-vfp-vfpv4-neon" || test "${PACKAGE_ARCH}" = "cortexa7hf-neon-vfpv4"; then
28 oe_runmake all ROOT=${STAGING_DIR_HOST} OFLAGS="--sysroot=${STAGING_DIR_HOST} -mhard-float"
29 else
30 oe_runmake all ROOT=${STAGING_DIR_HOST} OFLAGS="--sysroot=${STAGING_DIR_HOST}"
31 fi
32}
33
34do_install() {
35 echo "lynq-ril-service PN ${PN}"
36 echo "lynq-ril-service FILES_${PN} ${FILES_${PN}}"
37 echo "lynq-ril-service D ${D}"
38 echo "lynq-ril-service bindir ${bindir}"
39 echo "lynq-ril-service ${D}${bindir}"
40 echo "lynq-ril-service ${S}/Mobiletek_Tester_RDIT"
41 install -d ${D}${bindir}/
42 install -m 0755 ${S}Mobiletek-Tester-RDIT ${D}${bindir}/
43 install -m 0755 ${S}socket-tool ${D}${bindir}/
44}