blob: 72cca0b1dd8556fb15cd8923f200073777083a0d [file] [log] [blame]
#Basic Configuration
DESCRIPTION = "NM (Network Manager, IPv4/IPv6 NAT/IPPT)."
SECTION = "base"
LICENSE = "MediaTekProprietary"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
DEPENDS = "libmwkal libsncfg"
MTK_SRC = "${BACH_SRC}/netmngr_profile"
WORKONSRC = "${MTK_SRC}"
#BB_INCLUDE_ADD = "--sysroot=${STAGING_DIR_HOST} -I${STAGING_DIR_HOST}/usr/include/logger"
BB_LDFLAGS_ADD = "--sysroot=${STAGING_DIR_HOST} -lmw_kal -lpthread -ldl -lsncfg -fPIC"
PARALLEL_MAKE = ""
inherit deploy workonsrc
TARGET_CC_ARCH += "${LDFLAGS}"
#Parameters passed to do_compile()
EXTRA_OEMAKE = "'CROSS=${TARGET_PREFIX}'\
'CC=${CC}'\
'PROJECT=${PROJ}'\
'PREFIX=${BACH_PREFIX}'\
'PACKAGE_ARCH=${PACKAGE_ARCH}'\
'PLATFORM_CHIP=${PLATFORM_CHIP}'\
'ARCH_SUPER_DONGLE=${ARCH_SUPER_DONGLE}'\
'LDFLAGS=${BB_LDFLAGS_ADD}'"
FILES_${PN} = "${base_libdir}/*.so\
${base_bindir}\
${base_sbindir}\
/usr/sc/profile1 \
/mnt\
/tmp\
/etc\
/test"
FILES_${PN}-dev = "${includedir}"
FILES_${PN}-staticdev = "${base_libdir}/*.a"
FILES_${PN}-doc = "/doc"
FILES_${PN}-dbg = "${base_sbindir}/.debug \
/usr/src/debug \
${base_bindir}/.debug \
${base_libdir}/.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} DFLAGS="--sysroot=${STAGING_DIR_HOST} -I${STAGING_DIR_HOST}/usr/include/logger"
}
do_install () {
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
}