blob: 5a28fade3944102029df60b3e796bc26fc844226 [file] [log] [blame]
#Basic Configuration
DESCRIPTION = "Customization plug-in."
SECTION = "base"
LICENSE = "MediaTekProprietary"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
DEPENDS = "libatcputil libsncfg platform-libs"
MTK_SRC = "${BACH_SRC}/libcustom_plugin"
WORKONSRC = "${MTK_SRC}"
BB_INCLUDE_ADD = "--sysroot=${STAGING_DIR_HOST} -I${STAGING_DIR_HOST}/usr/include/logger"
BB_LDFLAGS_ADD = "--sysroot=${STAGING_DIR_HOST} -Wl,--hash-style=gnu"
inherit deploy workonsrc
#Parameters passed to do_compile()
EXTRA_OEMAKE = "'CROSS=${TARGET_PREFIX}'\
'PROJECT=${PROJ}'\
'PREFIX=${BACH_PREFIX}'\
'PACKAGE_ARCH=${PACKAGE_ARCH}'\
'PLATFORM_CHIP=${PLATFORM_CHIP}'\
'BB_INCLUDE_ADD=${BB_INCLUDE_ADD}'\
'BB_LDFLAGS_ADD=${BB_LDFLAGS_ADD}'"
FILES_${PN} = "${base_libdir}/atcp_plugin/*.so\
${base_libdir}/*.so \
${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 = "${base_libdir}/atcp_plugin/.debug \
/usr/src/debug \
${base_bindir}/.debug \
${base_libdir}/.debug \
${base_sbindir}/.debug"
do_compile () {
unset LDFLAGS
oe_runmake all ROOT=${STAGING_DIR_HOST}
}
do_install () {
oe_runmake install ROOT=${D}
#rm -fr ${D}${base_libdir}/atcp_plugin
install -d ${D}${includedir}
cp -af ${D}/include/* ${D}${includedir}
rm -rf ${D}/include
}
addtask bachclean
do_bachclean () {
oe_runmake clean
}