Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | DESCRIPTION = "Library containing NEON-optimized implementations for a common set of functions" |
| 2 | HOMEPAGE = "http://projectne10.github.io/Ne10/" |
| 3 | LICENSE = "BSD-3-Clause" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e7fe20c9be97be5579e3ab5d92d3a218" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 5 | SECTION = "libs" |
| 6 | |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 7 | SRC_URI = "git://github.com/projectNe10/Ne10.git;branch=master;protocol=https \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 8 | file://0001-CMakeLists.txt-Remove-mthumb-interwork.patch \ |
| 9 | file://0001-Dont-specify-march-explicitly.patch \ |
| 10 | " |
| 11 | SRCREV = "18c4c982a595dad069cd8df4932aefb1d257591f" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 12 | |
| 13 | S = "${WORKDIR}/git" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 14 | PV .= "gitr+${SRCPV}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 15 | |
| 16 | inherit cmake |
| 17 | |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 18 | # Incompatible with archs other than armv7, armv7ve and aarch64 |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 19 | COMPATIBLE_MACHINE = "(^$)" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 20 | COMPATIBLE_MACHINE:aarch64 = "(.*)" |
| 21 | COMPATIBLE_MACHINE:armv7a = "(.*)" |
| 22 | COMPATIBLE_MACHINE:armv7ve = "(.*)" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 23 | NE10_TARGET_ARCH = "" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 24 | NE10_TARGET_ARCH:aarch64 = "aarch64" |
| 25 | NE10_TARGET_ARCH:armv7a = "armv7" |
| 26 | NE10_TARGET_ARCH:armv7ve = "armv7" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 27 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 28 | EXTRA_OECMAKE = '-DGNULINUX_PLATFORM=ON -DNE10_BUILD_SHARED=ON -DNE10_LINUX_TARGET_ARCH="${NE10_TARGET_ARCH}"' |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 29 | |
| 30 | do_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 Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 36 | cp -d ${B}/modules/libNE10.so ${D}${libdir}/ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 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] |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 41 | INSANE_SKIP:${PN} += "textrel" |