blob: be964274c39c5b0ad4365ac1c97105d6cf476fdf [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001#Basic Configuration
2DESCRIPTION = "Network management plug-in."
3SECTION = "base"
4LICENSE = "MediaTekProprietary"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
6DEPENDS = "libatcputil platform-libs libsncfg libnm"
7MTK_SRC = "${BACH_SRC}/libnetmngr_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 = "/usr/src/debug \
40 ${base_libdir}/atcp_plugin/.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 if [ "${APSIM}" = "YES" ]; then
53 oe_runmake all ROOT=${STAGING_DIR_HOST} DEF_CFLAGS="-DCGDATA_L2P_LHIF"
54 else
55 oe_runmake all ROOT=${STAGING_DIR_HOST}
56 fi
57}
58
59do_install () {
60 if [ "${APSIM}" = "YES" ]; then
61 oe_runmake install ROOT=${D} DEF_CFLAGS="-DCGDATA_L2P_LHIF"
62 else
63 oe_runmake install ROOT=${D}
64 fi
65
66 if [ -d "${D}/include" ]; then
67 install -d ${D}${includedir}
68 cp -af ${D}/include/* ${D}${includedir}
69 rm -rf ${D}/include
70 fi
71}
72
73addtask bachclean
74do_bachclean () {
75 oe_runmake clean
76}