blob: 5a28fade3944102029df60b3e796bc26fc844226 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001#Basic Configuration
2DESCRIPTION = "Customization plug-in."
3SECTION = "base"
4LICENSE = "MediaTekProprietary"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
6DEPENDS = "libatcputil libsncfg platform-libs"
7MTK_SRC = "${BACH_SRC}/libcustom_plugin"
8
9WORKONSRC = "${MTK_SRC}"
10BB_INCLUDE_ADD = "--sysroot=${STAGING_DIR_HOST} -I${STAGING_DIR_HOST}/usr/include/logger"
11BB_LDFLAGS_ADD = "--sysroot=${STAGING_DIR_HOST} -Wl,--hash-style=gnu"
12
13inherit deploy workonsrc
14
15#Parameters passed to do_compile()
16EXTRA_OEMAKE = "'CROSS=${TARGET_PREFIX}'\
17 'PROJECT=${PROJ}'\
18 'PREFIX=${BACH_PREFIX}'\
19 'PACKAGE_ARCH=${PACKAGE_ARCH}'\
20 'PLATFORM_CHIP=${PLATFORM_CHIP}'\
21 'BB_INCLUDE_ADD=${BB_INCLUDE_ADD}'\
22 'BB_LDFLAGS_ADD=${BB_LDFLAGS_ADD}'"
23
24FILES_${PN} = "${base_libdir}/atcp_plugin/*.so\
25 ${base_libdir}/*.so \
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 = "${base_libdir}/atcp_plugin/.debug \
40 /usr/src/debug \
41 ${base_bindir}/.debug \
42 ${base_libdir}/.debug \
43 ${base_sbindir}/.debug"
44
45
46
47do_compile () {
48 unset LDFLAGS
49 oe_runmake all ROOT=${STAGING_DIR_HOST}
50}
51
52do_install () {
53 oe_runmake install ROOT=${D}
54 #rm -fr ${D}${base_libdir}/atcp_plugin
55 install -d ${D}${includedir}
56 cp -af ${D}/include/* ${D}${includedir}
57 rm -rf ${D}/include
58
59}
60
61addtask bachclean
62do_bachclean () {
63 oe_runmake clean
64}