rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | #Basic Configuration |
| 2 | DESCRIPTION = "ATCP (AT Command Proxy) Plug-in." |
| 3 | SECTION = "base" |
| 4 | LICENSE = "MediaTekProprietary" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff" |
| 6 | DEPENDS = "custom" |
| 7 | MTK_SRC = "${BACH_SRC}/libatch" |
| 8 | |
| 9 | WORKONSRC = "${MTK_SRC}" |
| 10 | |
| 11 | BB_INCLUDE_ADD = "--sysroot=${STAGING_DIR_HOST}" |
| 12 | BB_LDFLAGS_ADD = "--sysroot=${STAGING_DIR_HOST} -Wl,--hash-style=gnu" |
| 13 | |
| 14 | inherit deploy workonsrc |
| 15 | |
| 16 | #Parameters passed to do_compile() |
| 17 | EXTRA_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 | |
| 25 | FILES_${PN} = "${base_libdir}/libatch.so \ |
| 26 | ${base_bindir} \ |
| 27 | /test" |
| 28 | |
| 29 | FILES_${PN}-dev = "${includedir} \ |
| 30 | /test" |
| 31 | |
| 32 | FILES_${PN}-doc = "/doc" |
| 33 | |
| 34 | FILES_${PN}-staticdev = "${base_libdir}/libatch.a" |
| 35 | |
| 36 | FILES_${PN}-dbg = "${base_libdir}/.debug \ |
| 37 | /usr/src/debug" |
| 38 | |
| 39 | #Skip strip check in QA test. |
| 40 | INSANE_SKIP_${PN} += "already-stripped" |
| 41 | |
| 42 | |
| 43 | do_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 | |
| 53 | addtask bachclean |
| 54 | do_bachclean () { |
| 55 | oe_runmake clean |
| 56 | } |