blob: 7f384a9924cebc0edd0887d87364edcc74acc152 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001DESCRIPTION = "libbinder"
xf.li6c8fc1e2023-08-12 00:11:09 -07002DEPENDS = ""
lh9ed821d2023-04-07 01:36:19 -07003SECTION = "lib"
4LICENSE = "zte"
5PV = "1.0.0"
6PR = "r0"
7LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808"
8
9#配置code路径信息。
xf.libdd93d52023-05-12 07:10:14 -070010FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}/sdk:"
lh9ed821d2023-04-07 01:36:19 -070011SRC_URI = " \
12 file://binder \
13 "
14
15S = "${WORKDIR}"
16#引用公用头文件和编译选项。
17#include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc
18
19#编译
20do_compile () {
21 make -C binder
22}
23
24#库和头文件的安装
25do_install () {
26 install -d ${D}${libdir}/
27 install -d ${D}/usr/include/android
28 install -d ${D}/usr/include/binder
29 install -d ${D}/usr/include/cutils
30 install -d ${D}/usr/include/linux
31 install -d ${D}/usr/include/log
32 install -d ${D}/usr/include/private
33 install -d ${D}/usr/include/private/binder
34 install -d ${D}/usr/include/system
35 install -d ${D}/usr/include/utils
36
37 install -m 0755 ${S}/binder/libbinder.so ${D}${libdir}/
38 install -m 0755 ${S}/binder/libcutils/libcutils.so ${D}${libdir}/
39 install -m 0755 ${S}/binder/liblog/liblog.so ${D}${libdir}/
40 install -m 0755 ${S}/binder/libutils/libutils.so ${D}${libdir}/
41
42 install -m 0644 ${S}/binder/include/android/*.h ${D}/usr/include/android
43 install -m 0644 ${S}/binder/include/binder/*.h ${D}/usr/include/binder
44 install -m 0644 ${S}/binder/include/cutils/*.h ${D}/usr/include/cutils
45 install -m 0644 ${S}/binder/include/linux/*.h ${D}/usr/include/linux
46 install -m 0644 ${S}/binder/include/log/*.h ${D}/usr/include/log
47 install -m 0644 ${S}/binder/include/private/*.h ${D}/usr/include/private
48 install -m 0644 ${S}/binder/include/private/binder/*.h ${D}/usr/include/private/binder
49 install -m 0644 ${S}/binder/include/system/*.h ${D}/usr/include/system
50 install -m 0644 ${S}/binder/include/utils/*.h ${D}/usr/include/utils
51
52 #install elfs
53 install -d ${ELFS-PATH}/
54 install -m 0755 ${S}/binder/libbinder.so ${ELFS-PATH}/
55 install -m 0755 ${S}/binder/libcutils/libcutils.so ${ELFS-PATH}/
56 install -m 0755 ${S}/binder/liblog/liblog.so ${ELFS-PATH}/
57 install -m 0755 ${S}/binder/libutils/libutils.so ${ELFS-PATH}/
58}
59
60#清库
61do_cleanlibs () {
62 rm -fr ${ELFS-PATH}/libbinder.so
63 rm -fr ${ELFS-PATH}/libcutils.so
64 rm -fr ${ELFS-PATH}/liblog.so
65 rm -fr ${ELFS-PATH}/libutils.so
66}
67
68#rootfs包含的文件
69FILES_${PN} += "${libdir}/*.so"
70FILES_${PN}-dbg += "${libdir}/.debug"
71FILES_SOLIBSDEV = ""
72INSANE_SKIP_${PN} = "dev-so"