blob: a54e9917370de75fb7f9bc667f734200f2de7301 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001#Basic Configuration
2DESCRIPTION = "Event handler library."
3SECTION = "base"
4LICENSE = "MediaTekProprietary"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
6DEPENDS = "modevt libsncfg platform-libs"
7MTK_SRC = "${BACH_SRC}/libevt"
8
9WORKONSRC = "${MTK_SRC}"
10BB_CFLAGS_ADD = "--sysroot=${STAGING_DIR_HOST} -I${STAGING_DIR_HOST}/usr/include/logger"
11BB_LDFLAGS_ADD = "--sysroot=${STAGING_DIR_HOST} -Wl,--hash-style=gnu"
12
13PARALLEL_MAKEINST = "-j 1"
14
15inherit deploy workonsrc
16
17#Parameters passed to do_compile()
18EXTRA_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
24FILES_${PN} = "${base_libdir}/*.so\
25 /lib/modules\
26 ${base_bindir}\
27 ${base_sbindir}\
28 /mnt\
29 /tmp\
30 /etc\
31 /test"
32
33FILES_${PN}-dev = "${includedir}"
34
35FILES_${PN}-staticdev = "${base_libdir}/*.a"
36
37FILES_${PN}-doc = "/doc"
38
39FILES_${PN}-dbg = "/usr/src/debug \
40 ${base_bindir}/.debug \
41 ${base_libdir}/.debug \
42 ${base_sbindir}/.debug"
43
44
45do_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
54do_install () {
55 oe_runmake install ROOT=${D}
56}
57
58addtask bachclean
59do_bachclean () {
60 oe_runmake clean
61}