blob: a86fb5ab370772fd469fce4393405def06c33129 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001#Basic Configuration
2DESCRIPTION = "This module a Modem control utility daemon used to create socket or control multiple channels from one channel."
3SECTION = "base"
4LICENSE = "MediaTekProprietary"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
6DEPENDS = "custom libatch platform-libs"
7MTK_SRC = "${BACH_SRC}/libatmux"
8
9WORKONSRC = "${MTK_SRC}"
10
11BB_INCLUDE_ADD = "--sysroot=${STAGING_DIR_HOST} -I${STAGING_DIR_HOST}/usr/include/logger"
12BB_LDFLAGS_ADD = "--sysroot=${STAGING_DIR_HOST} -Wl,--hash-style=gnu"
13
14inherit deploy workonsrc
15
16#Parameters passed to do_compile()
17EXTRA_OEMAKE = "'CROSS=${TARGET_PREFIX}'\
18 'PROJECT=${PROJ}'\
19 'PREFIX=${BACH_PREFIX}'\
20 'PACKAGE_ARCH=${PACKAGE_ARCH}'\
21 'ROOT=${STAGING_DIR_HOST}'\
22 'PLATFORM_CHIP=${PLATFORM_CHIP}'\
23 'PRODUCT_MODE=${PRODUCT_MODE}'\
24 'BB_INCLUDE_ADD=${BB_INCLUDE_ADD}'\
25 'BB_LDFLAGS_ADD=${BB_LDFLAGS_ADD}'"
26
27FILES_${PN} = "${base_libdir}/libatmux.so \
28 ${base_bindir}/atmux.elf \
29 /etc/init.d/atmuxd "
30
31FILES_${PN}-dev = "/test \
32 ${includedir}"
33
34FILES_${PN}-staticdev = "${base_libdir}/libatmux.a"
35
36FILES_${PN}-doc = "/doc"
37
38FILES_${PN}-dbg = "/usr/src/debug \
39 ${base_bindir}/.debug"
40
41#Skip strip check in QA test.
42INSANE_SKIP_${PN} += "already-stripped"
43
44
45do_install () {
46 oe_runmake install ROOT=${D}
47
48 if [ -d "${D}/include" ]; then
49 install -d ${D}${includedir}
50 cp -af ${D}/include/* ${D}${includedir}
51 rm -rf ${D}/include
52 fi
53}
54
55addtask bachclean
56do_bachclean () {
57 oe_runmake clean
58}