blob: f37ccde1cbe1294d6149a83695690968c23a34e3 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001DESCRIPTION = "Library containing NEON-optimized implementations for a common set of functions"
2HOMEPAGE = "http://projectne10.github.io/Ne10/"
3LICENSE = "BSD-3-Clause"
Brad Bishop6e60e8b2018-02-01 10:27:11 -05004LIC_FILES_CHKSUM = "file://LICENSE;md5=e7fe20c9be97be5579e3ab5d92d3a218"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05005SECTION = "libs"
6
Brad Bishop6e60e8b2018-02-01 10:27:11 -05007SRC_URI = "git://github.com/projectNe10/Ne10.git \
8 file://0001-CMakeLists.txt-Remove-mthumb-interwork.patch \
9 file://0001-Dont-specify-march-explicitly.patch \
10 "
11SRCREV = "18c4c982a595dad069cd8df4932aefb1d257591f"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050012
13S = "${WORKDIR}/git"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050014PV .= "gitr+${SRCPV}"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050015
16inherit cmake
17
Brad Bishop15ae2502019-06-18 21:44:24 -040018# Incompatible with archs other than armv7, armv7ve and aarch64
Brad Bishopc342db32019-05-15 21:57:59 -040019COMPATIBLE_MACHINE = "(^$)"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050020COMPATIBLE_MACHINE_aarch64 = "(.*)"
21COMPATIBLE_MACHINE_armv7a = "(.*)"
Brad Bishop15ae2502019-06-18 21:44:24 -040022COMPATIBLE_MACHINE_armv7ve = "(.*)"
Brad Bishopc342db32019-05-15 21:57:59 -040023NE10_TARGET_ARCH = ""
24NE10_TARGET_ARCH_aarch64 = "aarch64"
25NE10_TARGET_ARCH_armv7a = "armv7"
Brad Bishop15ae2502019-06-18 21:44:24 -040026NE10_TARGET_ARCH_armv7ve = "armv7"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050027
Brad Bishopc342db32019-05-15 21:57:59 -040028EXTRA_OECMAKE = '-DGNULINUX_PLATFORM=ON -DNE10_BUILD_SHARED=ON -DNE10_LINUX_TARGET_ARCH="${NE10_TARGET_ARCH}"'
Patrick Williamsb48b7b42016-08-17 15:04:38 -050029
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}/
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080036 cp -d ${B}/modules/libNE10.so ${D}${libdir}/
Patrick Williamsb48b7b42016-08-17 15:04:38 -050037}
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"