lh | cac8c5d | 2023-04-28 03:57:17 -0700 | [diff] [blame^] | 1 | #inherit externalsrc package |
| 2 | inherit externalsrc package systemd |
| 3 | DESCRIPTION = "Mobiletek_Tester_RDIT" |
| 4 | LICENSE = "MobileTekProprietary" |
| 5 | LICENSE = "CLOSED" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=b1e07e8d88e26263e71d3a9e2aa9a2ff" |
| 7 | DEPENDS += "liblynq-call" |
| 8 | inherit workonsrc |
| 9 | WORKONSRC = "${TOPDIR}/../src/lynq/packages/apps/Mobiletek_Tester_RDIT" |
| 10 | |
| 11 | TARGET_CC_ARCH += "${LDFLAGS}" |
| 12 | SYSTEMD_PACKAGES = "${PN}" |
| 13 | SYSTEMD_SERVICE_${PN} = "lynq_ril_service.service" |
| 14 | FILES_${PN} += "${systemd_unitdir}/system/lynq_ril_service.service" |
| 15 | FILES_${PN} += "/system/etc/tele/ring ${bindir}" |
| 16 | #Parameters passed to do_compile() |
| 17 | EXTRA_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}'" |
| 21 | EXTRA_OEMAKE += "'MOBILETEK_RIL_CFG = ${MOBILETEK_RIL_CFG}'" |
| 22 | |
| 23 | EXTRA_OEMAKE += "'MOBILETEK_FOTA_CFG = ${MOBILETEK_FOTA_CFG}'" |
| 24 | |
| 25 | #INHIBIT_PACKAGE_STRIP = "1" |
| 26 | do_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 | |
| 34 | do_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 | } |