rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | #Basic Configuration |
| 2 | DESCRIPTION = "NM (Network Manager, IPv4/IPv6 NAT/IPPT)." |
| 3 | SECTION = "base" |
| 4 | LICENSE = "MediaTekProprietary" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff" |
| 6 | DEPENDS = "libmwkal libsncfg" |
| 7 | MTK_SRC = "${BACH_SRC}/netmngr_profile" |
| 8 | |
| 9 | WORKONSRC = "${MTK_SRC}" |
| 10 | #BB_INCLUDE_ADD = "--sysroot=${STAGING_DIR_HOST} -I${STAGING_DIR_HOST}/usr/include/logger" |
| 11 | BB_LDFLAGS_ADD = "--sysroot=${STAGING_DIR_HOST} -lmw_kal -lpthread -ldl -lsncfg -fPIC" |
| 12 | PARALLEL_MAKE = "" |
| 13 | |
| 14 | inherit deploy workonsrc |
| 15 | |
| 16 | TARGET_CC_ARCH += "${LDFLAGS}" |
| 17 | |
| 18 | #Parameters passed to do_compile() |
| 19 | EXTRA_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 | |
| 28 | FILES_${PN} = "${base_libdir}/*.so\ |
| 29 | ${base_bindir}\ |
| 30 | ${base_sbindir}\ |
| 31 | /usr/sc/profile1 \ |
| 32 | /mnt\ |
| 33 | /tmp\ |
| 34 | /etc\ |
| 35 | /test" |
| 36 | |
| 37 | FILES_${PN}-dev = "${includedir}" |
| 38 | |
| 39 | FILES_${PN}-staticdev = "${base_libdir}/*.a" |
| 40 | |
| 41 | FILES_${PN}-doc = "/doc" |
| 42 | |
| 43 | FILES_${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. |
| 51 | INSANE_SKIP_${PN} += "already-stripped" |
| 52 | |
| 53 | |
| 54 | do_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 | |
| 59 | do_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 | |
| 69 | addtask bachclean |
| 70 | do_bachclean () { |
| 71 | oe_runmake clean |
| 72 | } |