blob: 76e0741b1f3efc03f88c118ba27d3d2e5916c491 [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
18NE10_TARGET_ARCH = ""
19EXTRA_OECMAKE = '-DGNULINUX_PLATFORM=ON -DNE10_BUILD_SHARED=ON -DNE10_LINUX_TARGET_ARCH="${NE10_TARGET_ARCH}"'
20
21COMPATIBLE_MACHINE_aarch64 = "(.*)"
22COMPATIBLE_MACHINE_armv7a = "(.*)"
23
24python () {
Brad Bishop6e60e8b2018-02-01 10:27:11 -050025 if any(t.startswith('armv7') for t in d.getVar('TUNE_FEATURES').split()):
Patrick Williamsb48b7b42016-08-17 15:04:38 -050026 d.setVar('NE10_TARGET_ARCH', 'armv7')
27 bb.debug(2, 'Building Ne10 for armv7')
Brad Bishop6e60e8b2018-02-01 10:27:11 -050028 elif any(t.startswith('aarch64') for t in d.getVar('TUNE_FEATURES').split()):
Patrick Williamsb48b7b42016-08-17 15:04:38 -050029 d.setVar('NE10_TARGET_ARCH', 'aarch64')
30 bb.debug(2, 'Building Ne10 for aarch64')
31 else:
Brad Bishop316dfdd2018-06-25 12:45:53 -040032 raise bb.parse.SkipRecipe("Incompatible with archs other than armv7 and aarch64")
Patrick Williamsb48b7b42016-08-17 15:04:38 -050033}
34
35do_install() {
36 install -d ${D}${libdir}
37 install -d ${D}${includedir}
38 install -m 0644 ${S}/inc/NE10*.h ${D}${includedir}/
39 install -m 0644 ${B}/modules/libNE10.a ${D}${libdir}/
40 install -m 0755 ${B}/modules/libNE10.so.* ${D}${libdir}/
41 cp -a ${B}/modules/libNE10.so ${D}${libdir}/
42}
43
44# ERROR: QA Issue: ELF binary 'ne10/1.2.1-r0/packages-split/ne10/usr/lib/libNE10.so.10' has relocations in .text [textrel]
45# ERROR: QA Issue: ELF binary 'ne10/1.2.1-r0/packages-split/ne10/usr/lib/libNE10.so.10' has relocations in .text [textrel]
46INSANE_SKIP_${PN} += "textrel"