blob: 8555294fd25210eebb103518c37d72f959d78288 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001#Basic Configuration
2DESCRIPTION = "rilprotect"
3SECTION = "base"
4LICENSE = "MediaTekProprietary"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
6DEPENDS = "mal libsncfg platform-libs ril-headers ecccifsd"
7MTK_SRC = "${BACH_SRC}/mtkril/rilprotect"
8
9WORKONSRC = "${MTK_SRC}"
10#BB_INCLUDE_ADD = "--sysroot=${STAGING_DIR_HOST}"
11BB_LDFLAGS_ADD = "--sysroot=${STAGING_DIR_HOST}"
12
13inherit deploy workonsrc
14
15#Parameters passed to do_compile()
16EXTRA_OEMAKE = "'CROSS=${TARGET_PREFIX}'\
17 'PROJECT=${PROJ}'\
18 'ROOT=${STAGING_DIR_HOST}'\
19 'PLATFORM_CHIP=${PLATFORM_CHIP}'\
20 'LDFLAGS=${BB_LDFLAGS_ADD}'"
21
22FILES_${PN} = "${base_libdir}/*.so \
23 ${base_bindir}\
24 ${base_sbindir}\
25 /etc"
26
27FILES_${PN}-dev = "${includedir}/"
28
29FILES_${PN}-staticdev = "${base_libdir}/*.a"
30
31FILES_${PN}-doc = "/doc"
32
33ALLOW_EMPTY_${PN} = "1"
34
35do_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
43do_install () {
44 oe_runmake install ROOT=${D} PACKAGE_ARCH=${PACKAGE_ARCH}
45}
46
47addtask bachclean
48do_bachclean () {
49 oe_runmake clean
50}