rita | ef2512f | 2023-05-19 16:40:44 +0800 | [diff] [blame] | 1 | inherit externalsrc package |
| 2 | |
| 3 | DESCRIPTION = "lynq sim" |
| 4 | LICENSE = "MobileTekProprietary" |
rita | 3f2ca90 | 2023-06-16 13:36:53 +0800 | [diff] [blame^] | 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=b1e07e8d88e26263e71d3a9e2aa9a2ff" |
rita | ef2512f | 2023-05-19 16:40:44 +0800 | [diff] [blame] | 6 | DEPENDS += "libpal gstreamer1.0 glib-2.0 libapn liblynq-log libvendor-ril liblynq-shm libbinder" |
| 7 | inherit workonsrc |
| 8 | WORKONSRC = "${TOPDIR}/../src/lynq/lib/liblynq-sim/" |
| 9 | |
| 10 | TARGET_CC_ARCH += "${LDFLAGS}" |
| 11 | BB_INCLUDE_ADD = "--sysroot=${STAGING_DIR_HOST}" |
| 12 | BB_LDFLAGS_ADD = "--sysroot=${STAGING_DIR_HOST} -Wl,--hash-style=gnu" |
| 13 | #Parameters passed to do_compile() |
| 14 | EXTRA_OEMAKE = "'RAT_CONFIG_C2K_SUPPORT = ${RAT_CONFIG_C2K_SUPPORT}'\ |
| 15 | 'MTK_MULTI_SIM_SUPPORT = ${MTK_MULTI_SIM_SUPPORT}'\ |
| 16 | 'TARGET_PLATFORM = ${TARGET_PLATFORM}'" |
| 17 | |
| 18 | FILES_${PN} = "${base_libdir}/*.so \ |
| 19 | ${base_bindir}\ |
| 20 | ${base_sbindir} \ |
| 21 | /etc/dbus-1/system.d/" |
| 22 | FILES_${PN}-dev = "/test \ |
| 23 | ${includedir}" |
| 24 | |
| 25 | FILES_${PN}-doc = "/doc" |
| 26 | |
| 27 | FILES_${PN}-dbg ="${base_bindir}/.debug \ |
| 28 | ${base_libdir}/.debug \ |
| 29 | ${base_sbindir}/.debug" |
| 30 | |
| 31 | INSANE_SKIP_${PN} += "already-stripped" |
| 32 | INSANE_SKIP_${PN} += "installed-vs-shipped" |
| 33 | |
| 34 | |
| 35 | #INHIBIT_PACKAGE_STRIP = "1" |
| 36 | do_compile () { |
| 37 | if [ "${PACKAGE_ARCH}" = "cortexa7hf-vfp-vfpv4-neon" ]; then |
| 38 | oe_runmake all ROOT=${STAGING_DIR_HOST} OFLAGS="--sysroot=${STAGING_DIR_HOST} -Os -mfpu=neon-vfpv4 -mhard-float -Wl,--hash-style=gnu -DTELEPHONYWARE" |
| 39 | elif [ "${PACKAGE_ARCH}" = "cortexa7hf-neon-vfpv4" ]; then |
| 40 | oe_runmake all ROOT=${STAGING_DIR_HOST} OFLAGS="--sysroot=${STAGING_DIR_HOST} -Os -mfpu=neon-vfpv4 -mhard-float -Wl,--hash-style=gnu -DTELEPHONYWARE" |
| 41 | elif [ "${PACKAGE_ARCH}" = "cortexa53hf-neon-fp-armv8" ]; then |
| 42 | oe_runmake all ROOT=${STAGING_DIR_HOST} OFLAGS="--sysroot=${STAGING_DIR_HOST} -Os -mfpu=neon-vfpv4 -mhard-float -Wl,--hash-style=gnu -DTELEPHONYWARE -mhard-float -mfpu=neon-fp-armv8 -mfloat-abi=hard -mcpu=cortex-a53 -mtune=cortex-a53" |
| 43 | else |
| 44 | oe_runmake all ROOT=${STAGING_DIR_HOST} OFLAGS="--sysroot=${STAGING_DIR_HOST} -Os -Wl,--hash-style=gnu -DTELEPHONYWARE" |
| 45 | fi |
| 46 | } |
| 47 | |
| 48 | do_install () { |
| 49 | oe_runmake install ROOT=${D} |
| 50 | |
| 51 | if [ -d "${WORKONSRC}" ] ; then |
| 52 | install -d ${D}${includedir}/ |
| 53 | cp -af ${S}/include/ ${D}${includedir}/ |
| 54 | fi |
| 55 | } |
| 56 | |
| 57 | addtask bachclean |
| 58 | do_bachclean () { |
| 59 | oe_runmake clean |
| 60 | } |