xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/ne10/ne10_1.2.1.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1DESCRIPTION = "Library containing NEON-optimized implementations for a common set of functions"
2HOMEPAGE = "http://projectne10.github.io/Ne10/"
3LICENSE = "BSD-3-Clause"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=e7fe20c9be97be5579e3ab5d92d3a218"
5SECTION = "libs"
6
7SRC_URI = "git://github.com/projectNe10/Ne10.git;branch=master;protocol=https \
8           file://0001-CMakeLists.txt-Remove-mthumb-interwork.patch \
9           file://0001-Dont-specify-march-explicitly.patch \
10           "
11SRCREV = "18c4c982a595dad069cd8df4932aefb1d257591f"
12
13S = "${WORKDIR}/git"
14PV .= "gitr+${SRCPV}"
15
16inherit cmake
17
18# Incompatible with archs other than armv7, armv7ve and aarch64
19COMPATIBLE_MACHINE = "(^$)"
20COMPATIBLE_MACHINE:aarch64 = "(.*)"
21COMPATIBLE_MACHINE:armv7a = "(.*)"
22COMPATIBLE_MACHINE:armv7ve = "(.*)"
23NE10_TARGET_ARCH = ""
24NE10_TARGET_ARCH:aarch64 = "aarch64"
25NE10_TARGET_ARCH:armv7a = "armv7"
26NE10_TARGET_ARCH:armv7ve = "armv7"
27
28EXTRA_OECMAKE = '-DGNULINUX_PLATFORM=ON -DNE10_BUILD_SHARED=ON -DNE10_LINUX_TARGET_ARCH="${NE10_TARGET_ARCH}"'
29
30do_install() {
31    install -d ${D}${libdir}
32    install -d ${D}${includedir}
33    install -m 0644 ${S}/inc/NE10*.h ${D}${includedir}/
34    install -m 0644 ${B}/modules/libNE10.a ${D}${libdir}/
35    install -m 0755 ${B}/modules/libNE10.so.* ${D}${libdir}/
36    cp -d ${B}/modules/libNE10.so ${D}${libdir}/
37}
38
39# ERROR: QA Issue: ELF binary 'ne10/1.2.1-r0/packages-split/ne10/usr/lib/libNE10.so.10' has relocations in .text [textrel]
40# ERROR: QA Issue: ELF binary 'ne10/1.2.1-r0/packages-split/ne10/usr/lib/libNE10.so.10' has relocations in .text [textrel]
41INSANE_SKIP:${PN} += "textrel"
42