blob: c781e02cb2638e14176c97a504285fcc318b70d7 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001#Basic Configuration
2DESCRIPTION = "ATCP (AT Command Proxy) Plug-in."
3SECTION = "base"
4LICENSE = "MediaTekProprietary"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
6DEPENDS = "libatcputil libsncfg platform-libs"
7MTK_SRC = "${BACH_SRC}/libswext_plugin"
8
9WORKONSRC = "${MTK_SRC}"
10BB_INCLUDE_ADD = "--sysroot=${STAGING_DIR_HOST} -I${STAGING_DIR_HOST}/usr/include/logger"
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 'PREFIX=${BACH_PREFIX}'\
19 'PACKAGE_ARCH=${PACKAGE_ARCH}'\
20 'PLATFORM_CHIP=${PLATFORM_CHIP}'\
21 'BB_INCLUDE_ADD=${BB_INCLUDE_ADD}'\
22 'BB_LDFLAGS_ADD=${BB_LDFLAGS_ADD}'"
23
24FILES_${PN} = "${base_libdir}/atcp_plugin/*.so\
25 ${base_libdir}/*.so \
26 ${base_bindir}\
27 ${base_sbindir}\
28 /mnt\
29 /tmp\
30 /etc\
31 /test"
32
33FILES_${PN}-dev = "${includedir}"
34
35FILES_${PN}-staticdev = "${base_libdir}/*.a"
36
37FILES_${PN}-doc = "/doc"
38
39FILES_${PN}-dbg = "${base_libdir}/atcp_plugin/.debug \
40 /usr/src/debug \
41 ${base_bindir}/.debug \
42 ${base_libdir}/.debug \
43 ${base_sbindir}/.debug"
44
45
46#Skip strip check in QA test.
47INSANE_SKIP_${PN} += "already-stripped"
48
49
50do_compile () {
51 unset LDFLAGS
52 oe_runmake all ROOT=${STAGING_DIR_HOST}
53}
54
55do_install () {
56 oe_runmake install ROOT=${D}
57
58 if [ -d "${D}/include" ]; then
59 install -d ${D}${includedir}
60 cp -af ${D}/include/* ${D}${includedir}
61 rm -rf ${D}/include
62 fi
63}
64
65addtask bachclean
66do_bachclean () {
67 oe_runmake clean
68}