rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | #Basic Configuration |
| 2 | DESCRIPTION = "rilprotect" |
| 3 | SECTION = "base" |
| 4 | LICENSE = "MediaTekProprietary" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff" |
| 6 | DEPENDS = "mal libsncfg platform-libs ril-headers ecccifsd" |
| 7 | MTK_SRC = "${BACH_SRC}/mtkril/rilprotect" |
| 8 | |
| 9 | WORKONSRC = "${MTK_SRC}" |
| 10 | #BB_INCLUDE_ADD = "--sysroot=${STAGING_DIR_HOST}" |
| 11 | BB_LDFLAGS_ADD = "--sysroot=${STAGING_DIR_HOST}" |
| 12 | |
| 13 | inherit deploy workonsrc |
| 14 | |
| 15 | #Parameters passed to do_compile() |
| 16 | EXTRA_OEMAKE = "'CROSS=${TARGET_PREFIX}'\ |
| 17 | 'PROJECT=${PROJ}'\ |
| 18 | 'ROOT=${STAGING_DIR_HOST}'\ |
| 19 | 'PLATFORM_CHIP=${PLATFORM_CHIP}'\ |
| 20 | 'LDFLAGS=${BB_LDFLAGS_ADD}'" |
| 21 | |
| 22 | FILES_${PN} = "${base_libdir}/*.so \ |
| 23 | ${base_bindir}\ |
| 24 | ${base_sbindir}\ |
| 25 | /etc" |
| 26 | |
| 27 | FILES_${PN}-dev = "${includedir}/" |
| 28 | |
| 29 | FILES_${PN}-staticdev = "${base_libdir}/*.a" |
| 30 | |
| 31 | FILES_${PN}-doc = "/doc" |
| 32 | |
| 33 | ALLOW_EMPTY_${PN} = "1" |
| 34 | |
| 35 | do_compile () { |
| 36 | if test "${PACKAGE_ARCH}" = "cortexa7hf-vfp-vfpv4-neon" || test "${PACKAGE_ARCH}" = "cortexa7hf-neon-vfpv4"; then |
| 37 | oe_runmake all BB_CFLAGS_ADD="--sysroot=${STAGING_DIR_HOST} -I${STAGING_DIR_HOST}/usr/include/logger -mhard-float" |
| 38 | else |
| 39 | oe_runmake all BB_CFLAGS_ADD="--sysroot=${STAGING_DIR_HOST} -I${STAGING_DIR_HOST}/usr/include/logger" |
| 40 | fi |
| 41 | } |
| 42 | |
| 43 | do_install () { |
| 44 | oe_runmake install ROOT=${D} PACKAGE_ARCH=${PACKAGE_ARCH} |
| 45 | } |
| 46 | |
| 47 | addtask bachclean |
| 48 | do_bachclean () { |
| 49 | oe_runmake clean |
| 50 | } |