blob: a54e9917370de75fb7f9bc667f734200f2de7301 [file] [log] [blame]
#Basic Configuration
DESCRIPTION = "Event handler library."
SECTION = "base"
LICENSE = "MediaTekProprietary"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
DEPENDS = "modevt libsncfg platform-libs"
MTK_SRC = "${BACH_SRC}/libevt"
WORKONSRC = "${MTK_SRC}"
BB_CFLAGS_ADD = "--sysroot=${STAGING_DIR_HOST} -I${STAGING_DIR_HOST}/usr/include/logger"
BB_LDFLAGS_ADD = "--sysroot=${STAGING_DIR_HOST} -Wl,--hash-style=gnu"
PARALLEL_MAKEINST = "-j 1"
inherit deploy workonsrc
#Parameters passed to do_compile()
EXTRA_OEMAKE = "'CROSS=${TARGET_PREFIX}'\
'ROOT=${STAGING_DIR_HOST}'\
'PROJECT=${PROJ}'\
'PLATFORM_CHIP=${PLATFORM_CHIP}' \
'BB_LDFLAGS_ADD=${BB_LDFLAGS_ADD}'"
FILES_${PN} = "${base_libdir}/*.so\
/lib/modules\
${base_bindir}\
${base_sbindir}\
/mnt\
/tmp\
/etc\
/test"
FILES_${PN}-dev = "${includedir}"
FILES_${PN}-staticdev = "${base_libdir}/*.a"
FILES_${PN}-doc = "/doc"
FILES_${PN}-dbg = "/usr/src/debug \
${base_bindir}/.debug \
${base_libdir}/.debug \
${base_sbindir}/.debug"
do_compile () {
#unset LDFLAGS
if test "${PACKAGE_ARCH}" = "cortexa7hf-vfp-vfpv4-neon" || test "${PACKAGE_ARCH}" = "cortexa7hf-neon-vfpv4"; then
oe_runmake ROOT=${STAGING_DIR_HOST} BB_CFLAGS_ADD="${BB_CFLAGS_ADD} -mhard-float"
else
oe_runmake ROOT=${STAGING_DIR_HOST} BB_CFLAGS_ADD="${BB_CFLAGS_ADD}"
fi
}
do_install () {
oe_runmake install ROOT=${D}
}
addtask bachclean
do_bachclean () {
oe_runmake clean
}