blob: d11e6e8bed696a636a991ad060ff420dc1241770 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001DESCRIPTION = "sensor hardware abstract layer"
2LICENSE = "MediaTekProprietary"
3MTK_SRC = "${TOPDIR}/../src/navigation/sensor/sensor_hal"
4LIC_FILES_CHKSUM = "file://${MTK_SRC}/LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
5
6inherit deploy workonsrc
7WORKONSRC = "${MTK_SRC}"
8
9SECURITY_CFLAGS = ""
10
11FILES_${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*"
18FILES_SOLIBSDEV ?= "${base_libdir}/lib*${SOLIBSDEV} ${libdir}/lib*${SOLIBSDEV}"
19FILES_${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
24SECTION_${PN}-dev = "devel"
25ALLOW_EMPTY_${PN} = "1"
26RDEPENDS_${PN}-dev = "${PN} (=${EXTENDPKGV})"
27
28FILES_${PN}-staticdev = "${libdir}/*.a ${base_libdir}/*.a ${libdir}/${BPN}/*.a"
29SECTION_${PN}-staticdev = "devel"
30RDEPENDS_${PN}-staticdev = "${PN}-dev (=${EXTENDPKGV})"
31
32FILES_${PN}-doc += "/doc"
33FILES_${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'
39INSANE_SKIP_${PN} += "installed-vs-shipped"
40
41#Skip strip check in QA test.
42INSANE_SKIP_${PN} += "already-stripped"
43
44# inherit showinfo
45
46do_compile() {
47 oe_runmake PACKAGE_ARCH=${PACKAGE_ARCH}
48}
49
50do_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
57inherit autotools