rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | DESCRIPTION = "sensor hardware abstract layer" |
| 2 | LICENSE = "MediaTekProprietary" |
| 3 | MTK_SRC = "${TOPDIR}/../src/navigation/sensor/sensor_hal" |
| 4 | LIC_FILES_CHKSUM = "file://${MTK_SRC}/LICENSE;md5=e1696b147d49d491bcb4da1a57173fff" |
| 5 | |
| 6 | inherit deploy workonsrc |
| 7 | WORKONSRC = "${MTK_SRC}" |
| 8 | |
| 9 | SECURITY_CFLAGS = "" |
| 10 | |
| 11 | FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*${SOLIBS}\ |
| 12 | ${sysconfdir} ${sharedstatedir} ${localstatedir}\ |
| 13 | ${base_libdir}/*${SOLIBS}\ |
| 14 | ${base_bindir}/*\ |
| 15 | ${base_sbindir}\ |
| 16 | /usr/lib/*.so*\ |
| 17 | /lib/*.so*" |
| 18 | FILES_SOLIBSDEV ?= "${base_libdir}/lib*${SOLIBSDEV} ${libdir}/lib*${SOLIBSDEV}" |
| 19 | FILES_${PN}-dev = "${includedir} ${FILES_SOLIBSDEV} ${libdir}/*.la \ |
| 20 | ${libdir}/*.o ${libdir}/pkgconfig ${datadir}/pkgconfig \ |
| 21 | ${datadir}/aclocal ${base_libdir}/*.o \ |
| 22 | ${libdir}/${BPN}/*.la ${base_libdir}/*.la " |
| 23 | |
| 24 | SECTION_${PN}-dev = "devel" |
| 25 | ALLOW_EMPTY_${PN} = "1" |
| 26 | RDEPENDS_${PN}-dev = "${PN} (=${EXTENDPKGV})" |
| 27 | |
| 28 | FILES_${PN}-staticdev = "${libdir}/*.a ${base_libdir}/*.a ${libdir}/${BPN}/*.a" |
| 29 | SECTION_${PN}-staticdev = "devel" |
| 30 | RDEPENDS_${PN}-staticdev = "${PN}-dev (=${EXTENDPKGV})" |
| 31 | |
| 32 | FILES_${PN}-doc += "/doc" |
| 33 | FILES_${PN}-dbg += "/usr/src/debug \ |
| 34 | ${base_bindir}/.debug \ |
| 35 | ${base_libdir}/.debug \ |
| 36 | ${base_sbindir}/.debug" |
| 37 | |
| 38 | # Avoid QA Issue: 'Files/directories were installed but not shipped' |
| 39 | INSANE_SKIP_${PN} += "installed-vs-shipped" |
| 40 | |
| 41 | #Skip strip check in QA test. |
| 42 | INSANE_SKIP_${PN} += "already-stripped" |
| 43 | |
| 44 | # inherit showinfo |
| 45 | |
| 46 | do_compile() { |
| 47 | oe_runmake PACKAGE_ARCH=${PACKAGE_ARCH} |
| 48 | } |
| 49 | |
| 50 | do_install_append() { |
| 51 | install -d ${D}${base_libdir} |
| 52 | install -d ${D}${base_bindir} |
| 53 | install -d ${D}${base_sbindir} |
| 54 | install -d ${D}${includedir} |
| 55 | } |
| 56 | |
| 57 | inherit autotools |