1*4882a593SmuzhiyunDESCRIPTION = "Library containing NEON-optimized implementations for a common set of functions" 2*4882a593SmuzhiyunHOMEPAGE = "http://projectne10.github.io/Ne10/" 3*4882a593SmuzhiyunLICENSE = "BSD-3-Clause" 4*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://LICENSE;md5=e7fe20c9be97be5579e3ab5d92d3a218" 5*4882a593SmuzhiyunSECTION = "libs" 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunSRC_URI = "git://github.com/projectNe10/Ne10.git;branch=master;protocol=https \ 8*4882a593Smuzhiyun file://0001-CMakeLists.txt-Remove-mthumb-interwork.patch \ 9*4882a593Smuzhiyun file://0001-Dont-specify-march-explicitly.patch \ 10*4882a593Smuzhiyun " 11*4882a593SmuzhiyunSRCREV = "18c4c982a595dad069cd8df4932aefb1d257591f" 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunS = "${WORKDIR}/git" 14*4882a593SmuzhiyunPV .= "gitr+${SRCPV}" 15*4882a593Smuzhiyun 16*4882a593Smuzhiyuninherit cmake 17*4882a593Smuzhiyun 18*4882a593Smuzhiyun# Incompatible with archs other than armv7, armv7ve and aarch64 19*4882a593SmuzhiyunCOMPATIBLE_MACHINE = "(^$)" 20*4882a593SmuzhiyunCOMPATIBLE_MACHINE:aarch64 = "(.*)" 21*4882a593SmuzhiyunCOMPATIBLE_MACHINE:armv7a = "(.*)" 22*4882a593SmuzhiyunCOMPATIBLE_MACHINE:armv7ve = "(.*)" 23*4882a593SmuzhiyunNE10_TARGET_ARCH = "" 24*4882a593SmuzhiyunNE10_TARGET_ARCH:aarch64 = "aarch64" 25*4882a593SmuzhiyunNE10_TARGET_ARCH:armv7a = "armv7" 26*4882a593SmuzhiyunNE10_TARGET_ARCH:armv7ve = "armv7" 27*4882a593Smuzhiyun 28*4882a593SmuzhiyunEXTRA_OECMAKE = '-DGNULINUX_PLATFORM=ON -DNE10_BUILD_SHARED=ON -DNE10_LINUX_TARGET_ARCH="${NE10_TARGET_ARCH}"' 29*4882a593Smuzhiyun 30*4882a593Smuzhiyundo_install() { 31*4882a593Smuzhiyun install -d ${D}${libdir} 32*4882a593Smuzhiyun install -d ${D}${includedir} 33*4882a593Smuzhiyun install -m 0644 ${S}/inc/NE10*.h ${D}${includedir}/ 34*4882a593Smuzhiyun install -m 0644 ${B}/modules/libNE10.a ${D}${libdir}/ 35*4882a593Smuzhiyun install -m 0755 ${B}/modules/libNE10.so.* ${D}${libdir}/ 36*4882a593Smuzhiyun cp -d ${B}/modules/libNE10.so ${D}${libdir}/ 37*4882a593Smuzhiyun} 38*4882a593Smuzhiyun 39*4882a593Smuzhiyun# ERROR: QA Issue: ELF binary 'ne10/1.2.1-r0/packages-split/ne10/usr/lib/libNE10.so.10' has relocations in .text [textrel] 40*4882a593Smuzhiyun# ERROR: QA Issue: ELF binary 'ne10/1.2.1-r0/packages-split/ne10/usr/lib/libNE10.so.10' has relocations in .text [textrel] 41*4882a593SmuzhiyunINSANE_SKIP:${PN} += "textrel" 42