blob: d79e20de8517b03356208bb596408ff6f614d194 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001#Basic Configuration
2DESCRIPTION = "Connection Management"
3SECTION = "base"
4LICENSE = "MediaTekProprietary"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
6DEPENDS = "libsncfg libcmapi netmngrprofile libnm libatch"
7MTK_SRC = "${BACH_SRC}/libcm"
8
9WORKONSRC = "${MTK_SRC}"
10BB_INCLUDE_ADD = "--sysroot=${STAGING_DIR_HOST}"
11BB_LDFLAGS_ADD = "--sysroot=${STAGING_DIR_HOST} -Wl,--hash-style=gnu"
12
13inherit deploy workonsrc
14
15#Parameters passed to do_compile()
16EXTRA_OEMAKE = "'CROSS=${TARGET_PREFIX}'\
17 'PROJECT=${PROJ}'\
18 'PACKAGE_ARCH=${PACKAGE_ARCH}'\
19 'PLATFORM_CHIP=${PLATFORM_CHIP}'\
20 'PRODUCT_MODE=${PRODUCT_MODE}'\
21 'HAS_YOCTO_DEMO=${YOCTO_DEMO}'\
22 'BB_LDFLAGS_ADD=${BB_LDFLAGS_ADD}'"
23
24FILES_${PN} = "${base_libdir}/*.so\
25 ${base_bindir}\
26 ${base_sbindir}\
27 /usr/cfg \
28 /usr/sc/profile0 \
29 /mnt\
30 /tmp\
31 /etc\
32 /test"
33
34FILES_${PN}-dev = "${includedir}"
35
36FILES_${PN}-staticdev = "${base_libdir}/*.a"
37
38FILES_${PN}-doc = "/doc"
39
40FILES_${PN}-dbg = "/usr/src/debug \
41 ${base_bindir}/.debug \
42 ${base_libdir}/.debug \
43 ${base_sbindir}/.debug"
44
45#Skip strip check in QA test.
46INSANE_SKIP_${PN} += "already-stripped"
47
48
49do_compile () {
50 unset LDFLAGS
51 if [ "${PACKAGE_ARCH}" = "cortexa7hf-vfp-vfpv4-neon" ]; then
52 oe_runmake all ROOT=${STAGING_DIR_HOST} OFLAGS="--sysroot=${STAGING_DIR_HOST} -mhard-float"
53 elif [ "${PACKAGE_ARCH}" = "cortexa7hf-neon-vfpv4" ]; then
54 oe_runmake all ROOT=${STAGING_DIR_HOST} OFLAGS="--sysroot=${STAGING_DIR_HOST} -mhard-float"
55 else
56 oe_runmake all ROOT=${STAGING_DIR_HOST} OFLAGS="--sysroot=${STAGING_DIR_HOST}"
57 fi
58}
59
60do_install () {
61 install -d ${D}${base_bindir}
62 oe_runmake install ROOT=${D}
63
64 if [ -d "${D}/include" ]; then
65 install -d ${D}${includedir}
66 cp -af ${D}/include/* ${D}${includedir}
67 rm -rf ${D}/include
68 fi
69}
70
71addtask bachclean
72do_bachclean () {
73 oe_runmake clean
74}