blob: 72cca0b1dd8556fb15cd8923f200073777083a0d [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001#Basic Configuration
2DESCRIPTION = "NM (Network Manager, IPv4/IPv6 NAT/IPPT)."
3SECTION = "base"
4LICENSE = "MediaTekProprietary"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
6DEPENDS = "libmwkal libsncfg"
7MTK_SRC = "${BACH_SRC}/netmngr_profile"
8
9WORKONSRC = "${MTK_SRC}"
10#BB_INCLUDE_ADD = "--sysroot=${STAGING_DIR_HOST} -I${STAGING_DIR_HOST}/usr/include/logger"
11BB_LDFLAGS_ADD = "--sysroot=${STAGING_DIR_HOST} -lmw_kal -lpthread -ldl -lsncfg -fPIC"
12PARALLEL_MAKE = ""
13
14inherit deploy workonsrc
15
16TARGET_CC_ARCH += "${LDFLAGS}"
17
18#Parameters passed to do_compile()
19EXTRA_OEMAKE = "'CROSS=${TARGET_PREFIX}'\
20 'CC=${CC}'\
21 'PROJECT=${PROJ}'\
22 'PREFIX=${BACH_PREFIX}'\
23 'PACKAGE_ARCH=${PACKAGE_ARCH}'\
24 'PLATFORM_CHIP=${PLATFORM_CHIP}'\
25 'ARCH_SUPER_DONGLE=${ARCH_SUPER_DONGLE}'\
26 'LDFLAGS=${BB_LDFLAGS_ADD}'"
27
28FILES_${PN} = "${base_libdir}/*.so\
29 ${base_bindir}\
30 ${base_sbindir}\
31 /usr/sc/profile1 \
32 /mnt\
33 /tmp\
34 /etc\
35 /test"
36
37FILES_${PN}-dev = "${includedir}"
38
39FILES_${PN}-staticdev = "${base_libdir}/*.a"
40
41FILES_${PN}-doc = "/doc"
42
43FILES_${PN}-dbg = "${base_sbindir}/.debug \
44 /usr/src/debug \
45 ${base_bindir}/.debug \
46 ${base_libdir}/.debug \
47 ${base_sbindir}/.debug"
48
49
50#Skip strip check in QA test.
51INSANE_SKIP_${PN} += "already-stripped"
52
53
54do_compile () {
55 unset LDFLAGS
56 oe_runmake all ROOT=${STAGING_DIR_HOST} DFLAGS="--sysroot=${STAGING_DIR_HOST} -I${STAGING_DIR_HOST}/usr/include/logger"
57}
58
59do_install () {
60 oe_runmake install ROOT=${D}
61
62 if [ -d "${D}/include" ]; then
63 install -d ${D}${includedir}
64 cp -af ${D}/include/* ${D}${includedir}
65 rm -rf ${D}/include
66 fi
67}
68
69addtask bachclean
70do_bachclean () {
71 oe_runmake clean
72}