blob: de0ce854e54498e726bbc662e7211256fac533e1 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001#Basic Configuration
2DESCRIPTION = "This module is used to provide AT command handler function interfaces for eemcs_mdlogger."
3SECTION = "base"
4LICENSE = "MediaTekProprietary"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
6MTK_SRC = "${BACH_SRC}/libmdlogger_plugin"
7MODEMINIT_OUT = "${WORKDIR}/out"
8CROSS = "${TARGET_PREFIX}"
9PROJECT = "${PROJ_NAME}"
10WORKONSRC = "${MTK_SRC}"
11DEPENDS="custom libatcputil"
12
13INCLUDE_ADD = "-I${STAGING_DIR_HOST}/usr/include -I${STAGING_DIR_HOST}/usr/include/logger "
14CFLAGS = "--sysroot ${STAGING_DIR_HOST}"
15LDFLAGS = "--sysroot ${STAGING_DIR_HOST}"
16
17
18inherit deploy workonsrc
19
20FILES_${PN} = "${base_libdir}/atcp_plugin/libmdlogger_plugin.so \
21 ${base_bindir} \
22 ${base_libdir}/*.so"
23
24FILES_${PN}-doc = "/doc"
25
26FILES_${PN}-dev = "/test \
27 ${includedir}"
28
29FILES_${PN}-dbg = "/usr/src/debug \
30 ${base_libdir}/atcp_plugin/.debug \
31 ${base_bindir}/.debug \
32 ${base_libdir}/.debug \
33 ${base_sbindir}/.debug"
34
35
36#Skip strip check in QA test.
37INSANE_SKIP_${PN} += "already-stripped"
38
39
40EXTRA_OEMAKE = "'CROSS=${CROSS}'\
41 'ROOT=${STAGING_DIR_HOST}'\
42 'PREFIX=${BACH_PREFIX}'\
43 'PACKAGE_ARCH=${PACKAGE_ARCH}'\
44 'BB_INCLUDE_ADD=${INCLUDE_ADD}'\
45 'BB_LDFLAGS_ADD=${LDFLAGS}'\
46 'BB_CFLAGS_ADD=${CFLAGS}'"
47
48do_install () {
49 oe_runmake install ROOT=${D}
50
51 if [ -d "${D}/include" ]; then
52 install -d ${D}${includedir}
53 cp -af ${D}/include/* ${D}${includedir}
54 rm -rf ${D}/include
55 fi
56}
57
58addtask bachclean
59do_bachclean() {
60 oe_runmake clean
61}
62
63
64