blob: 891382a840a703248005af44b4c66e1a549339a3 [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 = "custom"
7MTK_SRC = "${BACH_SRC}/libatch"
8
9WORKONSRC = "${MTK_SRC}"
10
11BB_INCLUDE_ADD = "--sysroot=${STAGING_DIR_HOST}"
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 'PLATFORM_CHIP=${PLATFORM_CHIP}'\
22 'BB_INCLUDE_ADD=${BB_INCLUDE_ADD}'\
23 'BB_LDFLAGS_ADD=${BB_LDFLAGS_ADD}'"
24
25FILES_${PN} = "${base_libdir}/libatch.so \
26 ${base_bindir} \
27 /test"
28
29FILES_${PN}-dev = "${includedir} \
30 /test"
31
32FILES_${PN}-doc = "/doc"
33
34FILES_${PN}-staticdev = "${base_libdir}/libatch.a"
35
36FILES_${PN}-dbg = "${base_libdir}/.debug \
37 /usr/src/debug"
38
39#Skip strip check in QA test.
40INSANE_SKIP_${PN} += "already-stripped"
41
42
43do_install () {
44 oe_runmake install ROOT=${D}
45
46 if [ -d "${D}/include" ]; then
47 install -d ${D}${includedir}
48 cp -af ${D}/include/* ${D}${includedir}
49 rm -rf ${D}/include
50 fi
51}
52
53addtask bachclean
54do_bachclean () {
55 oe_runmake clean
56}