blob: 8555294fd25210eebb103518c37d72f959d78288 [file] [log] [blame]
#Basic Configuration
DESCRIPTION = "rilprotect"
SECTION = "base"
LICENSE = "MediaTekProprietary"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
DEPENDS = "mal libsncfg platform-libs ril-headers ecccifsd"
MTK_SRC = "${BACH_SRC}/mtkril/rilprotect"
WORKONSRC = "${MTK_SRC}"
#BB_INCLUDE_ADD = "--sysroot=${STAGING_DIR_HOST}"
BB_LDFLAGS_ADD = "--sysroot=${STAGING_DIR_HOST}"
inherit deploy workonsrc
#Parameters passed to do_compile()
EXTRA_OEMAKE = "'CROSS=${TARGET_PREFIX}'\
'PROJECT=${PROJ}'\
'ROOT=${STAGING_DIR_HOST}'\
'PLATFORM_CHIP=${PLATFORM_CHIP}'\
'LDFLAGS=${BB_LDFLAGS_ADD}'"
FILES_${PN} = "${base_libdir}/*.so \
${base_bindir}\
${base_sbindir}\
/etc"
FILES_${PN}-dev = "${includedir}/"
FILES_${PN}-staticdev = "${base_libdir}/*.a"
FILES_${PN}-doc = "/doc"
ALLOW_EMPTY_${PN} = "1"
do_compile () {
if test "${PACKAGE_ARCH}" = "cortexa7hf-vfp-vfpv4-neon" || test "${PACKAGE_ARCH}" = "cortexa7hf-neon-vfpv4"; then
oe_runmake all BB_CFLAGS_ADD="--sysroot=${STAGING_DIR_HOST} -I${STAGING_DIR_HOST}/usr/include/logger -mhard-float"
else
oe_runmake all BB_CFLAGS_ADD="--sysroot=${STAGING_DIR_HOST} -I${STAGING_DIR_HOST}/usr/include/logger"
fi
}
do_install () {
oe_runmake install ROOT=${D} PACKAGE_ARCH=${PACKAGE_ARCH}
}
addtask bachclean
do_bachclean () {
oe_runmake clean
}