blob: df19b63e0675d897b14e413cf832e9536f8e156e [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001#Basic Configuration
2DESCRIPTION = "Connection Management for customize connection policy"
3SECTION = "base"
4LICENSE = "MediaTekProprietary"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
6DEPENDS = "libcm"
7MTK_SRC = "${BACH_SRC}/libcm_cust"
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 'BB_LDFLAGS_ADD=${BB_LDFLAGS_ADD}'"
22
23FILES_${PN} = "${base_libdir}/*.so\
24 ${base_bindir}\
25 ${base_sbindir}\
26 /mnt\
27 /tmp\
28 /etc\
29 /test"
30
31FILES_${PN}-dev = "${includedir}"
32
33FILES_${PN}-staticdev = "${base_libdir}/*.a"
34
35FILES_${PN}-doc = "/doc"
36
37FILES_${PN}-dbg = "/usr/src/debug \
38 ${base_bindir}/.debug \
39 ${base_libdir}/.debug \
40 ${base_sbindir}/.debug"
41
42#Skip strip check in QA test.
43INSANE_SKIP_${PN} += "already-stripped"
44
45
46do_compile () {
47 unset LDFLAGS
48 if [ "${PACKAGE_ARCH}" = "cortexa7hf-vfp-vfpv4-neon" ]; then
49 oe_runmake all ROOT=${STAGING_DIR_HOST} OFLAGS="--sysroot=${STAGING_DIR_HOST} -mhard-float -Wl,--hash-style=gnu"
50 elif [ "${PACKAGE_ARCH}" = "cortexa7hf-neon-vfpv4" ]; then
51 oe_runmake all ROOT=${STAGING_DIR_HOST} OFLAGS="--sysroot=${STAGING_DIR_HOST} -mhard-float -Wl,--hash-style=gnu"
52 else
53 oe_runmake all ROOT=${STAGING_DIR_HOST} OFLAGS="--sysroot=${STAGING_DIR_HOST} -Wl,--hash-style=gnu"
54 fi
55}
56
57do_install () {
58 install -d ${D}${base_bindir}
59 oe_runmake install ROOT=${D}
60
61 if [ -d "${D}/include" ]; then
62 install -d ${D}${includedir}
63 cp -af ${D}/include/* ${D}${includedir}
64 rm -rf ${D}/include
65 fi
66}
67
68addtask bachclean
69do_bachclean () {
70 oe_runmake clean
71}