lh | cac8c5d | 2023-04-28 03:57:17 -0700 | [diff] [blame] | 1 | #inherit externalsrc package |
xf.li | 138ae44 | 2023-06-21 07:01:10 -0700 | [diff] [blame] | 2 | #inherit externalsrc package systemd |
lh | cac8c5d | 2023-04-28 03:57:17 -0700 | [diff] [blame] | 3 | DESCRIPTION = "Mobiletek_Tester_RDIT" |
xf.li | 138ae44 | 2023-06-21 07:01:10 -0700 | [diff] [blame] | 4 | LICENSE = "CLOSED" |
lh | cac8c5d | 2023-04-28 03:57:17 -0700 | [diff] [blame] | 5 | LICENSE = "CLOSED" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=b1e07e8d88e26263e71d3a9e2aa9a2ff" |
q.huang | 4d1aa01 | 2023-07-13 15:55:26 +0800 | [diff] [blame] | 7 | |
| 8 | DEPENDS += "liblynq-call liblynq-sms liblynq-network liblynq-sim liblynq-data liblynq-qser-data liblynq-qser-network" |
| 9 | |
xf.li | 138ae44 | 2023-06-21 07:01:10 -0700 | [diff] [blame] | 10 | #inherit workonsrc |
lh | cac8c5d | 2023-04-28 03:57:17 -0700 | [diff] [blame] | 11 | WORKONSRC = "${TOPDIR}/../src/lynq/packages/apps/Mobiletek_Tester_RDIT" |
xf.li | 138ae44 | 2023-06-21 07:01:10 -0700 | [diff] [blame] | 12 | FILESEXTRAPATHS_prepend :="${TOPDIR}/../src/lynq/packages/apps/:" |
| 13 | SRC_URI = " \ |
| 14 | file://Mobiletek_Tester_RDIT \ |
| 15 | " |
lh | cac8c5d | 2023-04-28 03:57:17 -0700 | [diff] [blame] | 16 | |
xf.li | 138ae44 | 2023-06-21 07:01:10 -0700 | [diff] [blame] | 17 | SRC-DIR = "${S}/../Mobiletek_Tester_RDIT" |
lh | cac8c5d | 2023-04-28 03:57:17 -0700 | [diff] [blame] | 18 | TARGET_CC_ARCH += "${LDFLAGS}" |
| 19 | SYSTEMD_PACKAGES = "${PN}" |
| 20 | SYSTEMD_SERVICE_${PN} = "lynq_ril_service.service" |
| 21 | FILES_${PN} += "${systemd_unitdir}/system/lynq_ril_service.service" |
| 22 | FILES_${PN} += "/system/etc/tele/ring ${bindir}" |
| 23 | #Parameters passed to do_compile() |
| 24 | EXTRA_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}'" |
| 28 | EXTRA_OEMAKE += "'MOBILETEK_RIL_CFG = ${MOBILETEK_RIL_CFG}'" |
| 29 | |
| 30 | EXTRA_OEMAKE += "'MOBILETEK_FOTA_CFG = ${MOBILETEK_FOTA_CFG}'" |
| 31 | |
| 32 | #INHIBIT_PACKAGE_STRIP = "1" |
| 33 | do_compile () { |
| 34 | if test "${PACKAGE_ARCH}" = "cortexa7hf-vfp-vfpv4-neon" || test "${PACKAGE_ARCH}" = "cortexa7hf-neon-vfpv4"; then |
xf.li | 138ae44 | 2023-06-21 07:01:10 -0700 | [diff] [blame] | 35 | oe_runmake all -C ${SRC-DIR} ROOT=${STAGING_DIR_HOST} OFLAGS="--sysroot=${STAGING_DIR_HOST} -mhard-float" |
lh | cac8c5d | 2023-04-28 03:57:17 -0700 | [diff] [blame] | 36 | else |
xf.li | 138ae44 | 2023-06-21 07:01:10 -0700 | [diff] [blame] | 37 | oe_runmake all -C ${SRC-DIR} ROOT=${STAGING_DIR_HOST} OFLAGS="--sysroot=${STAGING_DIR_HOST}" |
lh | cac8c5d | 2023-04-28 03:57:17 -0700 | [diff] [blame] | 38 | fi |
| 39 | } |
| 40 | |
| 41 | do_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.li | 138ae44 | 2023-06-21 07:01:10 -0700 | [diff] [blame] | 49 | install -m 0755 ${SRC-DIR}/Mobiletek-Tester-RDIT ${D}${bindir}/ |
| 50 | install -m 0755 ${SRC-DIR}/socket-tool ${D}${bindir}/ |
lh | cac8c5d | 2023-04-28 03:57:17 -0700 | [diff] [blame] | 51 | } |