rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | #Basic Configuration |
| 2 | DESCRIPTION = "Event handler library." |
| 3 | SECTION = "base" |
| 4 | LICENSE = "MediaTekProprietary" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff" |
| 6 | DEPENDS = "modevt libsncfg platform-libs" |
| 7 | MTK_SRC = "${BACH_SRC}/libevt" |
| 8 | |
| 9 | WORKONSRC = "${MTK_SRC}" |
| 10 | BB_CFLAGS_ADD = "--sysroot=${STAGING_DIR_HOST} -I${STAGING_DIR_HOST}/usr/include/logger" |
| 11 | BB_LDFLAGS_ADD = "--sysroot=${STAGING_DIR_HOST} -Wl,--hash-style=gnu" |
| 12 | |
| 13 | PARALLEL_MAKEINST = "-j 1" |
| 14 | |
| 15 | inherit deploy workonsrc |
| 16 | |
| 17 | #Parameters passed to do_compile() |
| 18 | EXTRA_OEMAKE = "'CROSS=${TARGET_PREFIX}'\ |
| 19 | 'ROOT=${STAGING_DIR_HOST}'\ |
| 20 | 'PROJECT=${PROJ}'\ |
| 21 | 'PLATFORM_CHIP=${PLATFORM_CHIP}' \ |
| 22 | 'BB_LDFLAGS_ADD=${BB_LDFLAGS_ADD}'" |
| 23 | |
| 24 | FILES_${PN} = "${base_libdir}/*.so\ |
| 25 | /lib/modules\ |
| 26 | ${base_bindir}\ |
| 27 | ${base_sbindir}\ |
| 28 | /mnt\ |
| 29 | /tmp\ |
| 30 | /etc\ |
| 31 | /test" |
| 32 | |
| 33 | FILES_${PN}-dev = "${includedir}" |
| 34 | |
| 35 | FILES_${PN}-staticdev = "${base_libdir}/*.a" |
| 36 | |
| 37 | FILES_${PN}-doc = "/doc" |
| 38 | |
| 39 | FILES_${PN}-dbg = "/usr/src/debug \ |
| 40 | ${base_bindir}/.debug \ |
| 41 | ${base_libdir}/.debug \ |
| 42 | ${base_sbindir}/.debug" |
| 43 | |
| 44 | |
| 45 | do_compile () { |
| 46 | #unset LDFLAGS |
| 47 | if test "${PACKAGE_ARCH}" = "cortexa7hf-vfp-vfpv4-neon" || test "${PACKAGE_ARCH}" = "cortexa7hf-neon-vfpv4"; then |
| 48 | oe_runmake ROOT=${STAGING_DIR_HOST} BB_CFLAGS_ADD="${BB_CFLAGS_ADD} -mhard-float" |
| 49 | else |
| 50 | oe_runmake ROOT=${STAGING_DIR_HOST} BB_CFLAGS_ADD="${BB_CFLAGS_ADD}" |
| 51 | fi |
| 52 | } |
| 53 | |
| 54 | do_install () { |
| 55 | oe_runmake install ROOT=${D} |
| 56 | } |
| 57 | |
| 58 | addtask bachclean |
| 59 | do_bachclean () { |
| 60 | oe_runmake clean |
| 61 | } |