| #Basic Configuration |
| DESCRIPTION = "emdlogger is a MD log control application." |
| SECTION = "base" |
| LICENSE = "MediaTekProprietary" |
| LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff" |
| MTK_SRC = "${BACH_SRC}/telephony/frameworks/opt/mdlogger" |
| EMD_OUT = "${WORKDIR}/out" |
| CROSS = "${TARGET_PREFIX}" |
| PROJECT = "${PROJ}" |
| PRODUCT_MODE = "${PROD_MODE}" |
| WORKONSRC = "${MTK_SRC}" |
| DEPENDS = "platform-libs libsncfg telephonyware" |
| |
| CFLAGS = "--sysroot=${STAGING_DIR_HOST}\ -I${STAGING_DIR_HOST}/usr/include/logger" |
| |
| |
| inherit deploy workonsrc |
| |
| #Parameters passed to do_compile() |
| EXTRA_OEMAKE = "'CROSS=${CROSS}'\ |
| 'PREFIX=${BACH_PREFIX}'\ |
| 'PACKAGE_ARCH=${PACKAGE_ARCH}'\ |
| 'ROOT=${STAGING_DIR_HOST}'" |
| |
| |
| FILES_${PN} = "${base_sbindir}/emdlogger1 \ |
| ${base_sbindir}/emdlogger_ctrl" |
| |
| FILES_${PN}-dbg = "${base_sbindir}/.debug" |
| |
| #Skip strip check in QA test. |
| #RDEPENDS_${PN} += "telephonyware-dev" |
| INSANE_SKIP_${PN} += "dev-deps already-stripped" |
| |
| |
| do_compile () { |
| if [ -d "${WORKONSRC}" ]; then |
| if test "${PACKAGE_ARCH}" = "cortexa7hf-vfp-vfpv4-neon" || test "${PACKAGE_ARCH}" = "cortexa7hf-neon-vfpv4"; then |
| oe_runmake all ROOT=${STAGING_DIR_HOST} DEF_CFLAGS="--sysroot=${STAGING_DIR_HOST} -I${STAGING_DIR_HOST}/usr/include/logger -mhard-float" |
| |
| else |
| oe_runmake all ROOT=${STAGING_DIR_HOST} DEF_CFLAGS=${CFLAGS} |
| fi |
| else |
| oe_runmake all ROOT=${STAGING_DIR_HOST} |
| fi |
| |
| } |
| |
| do_install () { |
| oe_runmake install ROOT=${D} |
| |
| if [ -d ${WORKONSRC} ]; then |
| install -d ${D}${base_sbindir} |
| cp -af mdlogger.elf ${D}${base_sbindir}/emdlogger1 |
| cp -af mdlogger_ctrl.elf ${D}${base_sbindir}/emdlogger_ctrl |
| fi |
| } |
| |
| addtask bachclean |
| do_bachclean () { |
| oe_runmake clean |
| } |