blob: 028d538ee4e0d2a419cf69ba7ba659a9f24be742 [file] [log] [blame]
#Basic Configuration
DESCRIPTION = "Webpages"
SECTION = "base"
LICENSE = "MediaTekProprietary"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
DEPENDS = "libmwkal libsncfg netmngrprofile libwebrpcplugin libcmapi smsd libcm libcmcust minihttpd"
MTK_SRC = "${BACH_SRC}/webpages"
WORKONSRC = "${MTK_SRC}"
BB_INCLUDE_ADD = "--sysroot=${STAGING_DIR_HOST}"
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}'\
'HAS_YOCTO_DEMO=${YOCTO_DEMO}'\
'PACKAGE_ARCH=${PACKAGE_ARCH}'\
'PLATFORM_CHIP=${PLATFORM_CHIP}'\
'PRODUCT_MODE=${PRODUCT_MODE}'\
'ARCH_SUPER_DONGLE=TRUE'\
'OFLAGS=${BB_INCLUDE_ADD}'\
'BB_INCLUDE_ADD=${BB_INCLUDE_ADD}'\
'BB_LDFLAGS_ADD=${BB_LDFLAGS_ADD}'"
FILES_${PN} = "${base_libdir}/*.so\
/usr/web/mtk_open_cm_api/lib/*.so\
${base_bindir}\
${base_sbindir}\
/usr/web \
/usr/www \
/usr/web/mtk_open_cm_api \
/mnt\
/tmp\
/etc\
/etc/rc.d \
/etc/init.d \
/test"
FILES_${PN}-dev = "${includedir}"
FILES_${PN}-staticdev = "${base_libdir}/*.a"
FILES_${PN}-doc = "/doc"
FILES_${PN}-dbg = "/usr/src/debug \
${base_libdir}/.debug \
/usr/web/mtk_open_cm_api/lib/.debug \
${base_bindir}/.debug \
${base_sbindir}/.debug"
#Skip strip check in QA test.
INSANE_SKIP_${PN} += "already-stripped"
do_compile () {
unset LDFLAGS
oe_runmake all ROOT=${STAGING_DIR_HOST}
}
do_install () {
install -d ${D}${base_bindir}
oe_runmake install ROOT=${D}
if [ -d "${D}/include" ]; then
install -d ${D}${includedir}
cp -af ${D}/include/* ${D}${includedir}
rm -rf ${D}/include
fi
}
addtask bachclean
do_bachclean () {
oe_runmake clean
}