lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | DESCRIPTION = "libbinder" |
xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 2 | DEPENDS = "" |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 3 | SECTION = "lib" |
| 4 | LICENSE = "zte" |
| 5 | PV = "1.0.0" |
| 6 | PR = "r0" |
| 7 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808" |
| 8 | |
| 9 | #配置code路径信息。 |
xf.li | bdd93d5 | 2023-05-12 07:10:14 -0700 | [diff] [blame] | 10 | FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}/sdk:" |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 11 | SRC_URI = " \ |
| 12 | file://binder \ |
| 13 | " |
| 14 | |
| 15 | S = "${WORKDIR}" |
| 16 | #引用公用头文件和编译选项。 |
| 17 | #include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc |
| 18 | |
| 19 | #编译 |
| 20 | do_compile () { |
| 21 | make -C binder |
| 22 | } |
| 23 | |
| 24 | #库和头文件的安装 |
| 25 | do_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 | #清库 |
| 61 | do_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包含的文件 |
| 69 | FILES_${PN} += "${libdir}/*.so" |
| 70 | FILES_${PN}-dbg += "${libdir}/.debug" |
| 71 | FILES_SOLIBSDEV = "" |
| 72 | INSANE_SKIP_${PN} = "dev-so" |