ne10: add recipe
PATCH 1/1 ne10: add recipe
Add recipe for the Ne10 library ( http://projectne10.github.io/Ne10/ ). This library provides heavily ARM NEON optimized versions of functions that are commonly used.
--- meta-oe/recipes-support/ne10/ne10_1.2.1.bb | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 meta-oe/recipes-support/ne10/ne10_1.2.1.bb
meta-oe/recipes-support/ne10/ne10_1.2.1.bb new file +38 -0
@@ -0,0 +1,38 @@ +DESCRIPTION = "Library containing NEON-optimized implementations for a common set of functions" +HOMEPAGE = "http://projectne10.github.io/Ne10/" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=463ac0a7d64edc2b787c4206635ca2b1" +SECTION = "libs" + +SRC_URI = "git://github.com/projectNe10/Ne10.git" +SRCREV = "v${PV}" + +S = "${WORKDIR}/git" + +inherit cmake + +NE10_TARGET_ARCH = "" +EXTRA_OECMAKE = '-DGNULINUX_PLATFORM=ON -DNE10_BUILD_SHARED=ON -DNE10_LINUX_TARGET_ARCH="${NE10_TARGET_ARCH}"' + +COMPATIBLE_MACHINE_aarch64 = "(.*)" +COMPATIBLE_MACHINE_armv7a = "(.*)" + +python () { + if any(t.startswith('armv7') for t in d.getVar('TUNE_FEATURES', True).split()): + d.setVar('NE10_TARGET_ARCH', 'armv7') + bb.note('Building Ne10 for armv7') + elif any(t.startswith('aarch64') for t in d.getVar('TUNE_FEATURES', True).split()): + d.setVar('NE10_TARGET_ARCH', 'aarch64') + bb.note('Building Ne10 for aarch64') + else: + raise bb.parse.SkipPackage("Incompatible with archs other than armv7 and aarch64") +} + +do_install() { + install -d ${D}${libdir} + install -d ${D}${includedir} + install -m 0644 ${S}/inc/NE10*.h ${D}${includedir}/ + install -m 0644 ${B}/modules/libNE10.a ${D}${libdir}/ + install -m 0755 ${B}/modules/libNE10.so.* ${D}${libdir}/ + cp -a ${B}/modules/libNE10.so ${D}${libdir}/ +}
Signature · 1 line
2.5.0
Quoted 16 lines · Carlos Rafael Giani
Add recipe for the Ne10 library ( http://projectne10.github.io/Ne10/ ). This library provides heavily ARM NEON optimized versions of functions that are commonly used.
Signed-off-by Carlos Rafael Giani <[email protected]>--- meta-oe/recipes-support/ne10/ne10_1.2.1.bb | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 meta-oe/recipes-support/ne10/ne10_1.2.1.bbmeta-oe/recipes-support/ne10/ne10_1.2.1.bb new file +0
-0
meta-oe/recipes-support/ne10/ne10_1.2.1.bb line 8
Quoted 8 lines
meta-oe/recipes-support/ne10/ne10_1.2.1.bb new file +8
-0@@ -0,0 +1,38 @@ +DESCRIPTION = "Library containing NEON-optimized implementations for a common set of functions" +HOMEPAGE = "http://projectne10.github.io/Ne10/" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=463ac0a7d64edc2b787c4206635ca2b1" +SECTION = "libs" + +SRC_URI = "git://github.com/projectNe10/Ne10.git" +SRCREV = "v${PV}"
please set SRCREV to git hash, so that fetcher won't try to access remote repo to translate tag name to SRCREV.
Quoted 18 lines
meta-oe/recipes-support/ne10/ne10_1.2.1.bb new file +18
-0+S = "${WORKDIR}/git" + +inherit cmake + +NE10_TARGET_ARCH = "" +EXTRA_OECMAKE = '-DGNULINUX_PLATFORM=ON -DNE10_BUILD_SHARED=ON -DNE10_LINUX_TARGET_ARCH="${NE10_TARGET_ARCH}"' + +COMPATIBLE_MACHINE_aarch64 = "(.*)" +COMPATIBLE_MACHINE_armv7a = "(.*)" + +python () { + if any(t.startswith('armv7') for t in d.getVar('TUNE_FEATURES', True).split()): + d.setVar('NE10_TARGET_ARCH', 'armv7') + bb.note('Building Ne10 for armv7') + elif any(t.startswith('aarch64') for t in d.getVar('TUNE_FEATURES', True).split()): + d.setVar('NE10_TARGET_ARCH', 'aarch64') + bb.note('Building Ne10 for aarch64') + else:
meta-oe/recipes-support/ne10/ne10_1.2.1.bb line 37
Quoted 10 lines
meta-oe/recipes-support/ne10/ne10_1.2.1.bb new file +10
-0+ raise bb.parse.SkipPackage("Incompatible with archs other than armv7 and aarch64") +} + +do_install() { + install -d ${D}${libdir} + install -d ${D}${includedir} + install -m 0644 ${S}/inc/NE10*.h ${D}${includedir}/ + install -m 0644 ${B}/modules/libNE10.a ${D}${libdir}/ + install -m 0755 ${B}/modules/libNE10.so.* ${D}${libdir}/ + cp -a ${B}/modules/libNE10.so ${D}${libdir}/
Use 4 spaces for indentation.
Quoted 9 lines
meta-oe/recipes-support/ne10/ne10_1.2.1.bb new file +1
-0+}Signature · 7 lines
2.5.0 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
PATCH v2 1/1 ne10: add recipe
Add recipe for the Ne10 library ( http://projectne10.github.io/Ne10/ ). This library provides heavily ARM NEON optimized versions of functions that are commonly used.
--- meta-oe/recipes-support/ne10/ne10_1.2.1.bb | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 meta-oe/recipes-support/ne10/ne10_1.2.1.bb
meta-oe/recipes-support/ne10/ne10_1.2.1.bb new file +38 -0
@@ -0,0 +1,38 @@ +DESCRIPTION = "Library containing NEON-optimized implementations for a common set of functions" +HOMEPAGE = "http://projectne10.github.io/Ne10/" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=463ac0a7d64edc2b787c4206635ca2b1" +SECTION = "libs" + +SRC_URI = "git://github.com/projectNe10/Ne10.git" +SRCREV = "a08b29d88e3c94d32b5b8f827e7fcf0bc2b34ac2" + +S = "${WORKDIR}/git" + +inherit cmake + +NE10_TARGET_ARCH = "" +EXTRA_OECMAKE = '-DGNULINUX_PLATFORM=ON -DNE10_BUILD_SHARED=ON -DNE10_LINUX_TARGET_ARCH="${NE10_TARGET_ARCH}"' + +COMPATIBLE_MACHINE_aarch64 = "(.*)" +COMPATIBLE_MACHINE_armv7a = "(.*)" + +python () { + if any(t.startswith('armv7') for t in d.getVar('TUNE_FEATURES', True).split()): + d.setVar('NE10_TARGET_ARCH', 'armv7') + bb.note('Building Ne10 for armv7') + elif any(t.startswith('aarch64') for t in d.getVar('TUNE_FEATURES', True).split()): + d.setVar('NE10_TARGET_ARCH', 'aarch64') + bb.note('Building Ne10 for aarch64') + else: + raise bb.parse.SkipPackage("Incompatible with archs other than armv7 and aarch64") +} + +do_install() { + install -d ${D}${libdir} + install -d ${D}${includedir} + install -m 0644 ${S}/inc/NE10*.h ${D}${includedir}/ + install -m 0644 ${B}/modules/libNE10.a ${D}${libdir}/ + install -m 0755 ${B}/modules/libNE10.so.* ${D}${libdir}/ + cp -a ${B}/modules/libNE10.so ${D}${libdir}/ +}
Signature · 1 line
2.5.0
Quoted 3 lines · Carlos Rafael Giani
Add recipe for the Ne10 library ( http://projectne10.github.io/Ne10/ ). This library provides heavily ARM NEON optimized versions of functions that are commonly used.
ERROR: QA Issue: ELF binary 'ne10/1.2.1-r0/packages-split/ne10/usr/lib/libNE10.so.10' has relocations in .text [textrel]
ERROR: QA Issue: ELF binary 'ne10/1.2.1-r0/packages-split/ne10/usr/lib/libNE10.so.10' has relocations in .text [textrel]
Quoted 59 lines
Signed-off-by Carlos Rafael Giani <[email protected]>--- meta-oe/recipes-support/ne10/ne10_1.2.1.bb | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 meta-oe/recipes-support/ne10/ne10_1.2.1.bbmeta-oe/recipes-support/ne10/ne10_1.2.1.bb new file +38
-0@@ -0,0 +1,38 @@ +DESCRIPTION = "Library containing NEON-optimized implementations for a common set of functions" +HOMEPAGE = "http://projectne10.github.io/Ne10/" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=463ac0a7d64edc2b787c4206635ca2b1" +SECTION = "libs" + +SRC_URI = "git://github.com/projectNe10/Ne10.git" +SRCREV = "a08b29d88e3c94d32b5b8f827e7fcf0bc2b34ac2" + +S = "${WORKDIR}/git" + +inherit cmake + +NE10_TARGET_ARCH = "" +EXTRA_OECMAKE = '-DGNULINUX_PLATFORM=ON -DNE10_BUILD_SHARED=ON -DNE10_LINUX_TARGET_ARCH="${NE10_TARGET_ARCH}"' + +COMPATIBLE_MACHINE_aarch64 = "(.*)" +COMPATIBLE_MACHINE_armv7a = "(.*)" + +python () { + if any(t.startswith('armv7') for t in d.getVar('TUNE_FEATURES', True).split()): + d.setVar('NE10_TARGET_ARCH', 'armv7') + bb.note('Building Ne10 for armv7') + elif any(t.startswith('aarch64') for t in d.getVar('TUNE_FEATURES', True).split()): + d.setVar('NE10_TARGET_ARCH', 'aarch64') + bb.note('Building Ne10 for aarch64') + else: + raise bb.parse.SkipPackage("Incompatible with archs other than armv7 and aarch64") +} + +do_install() { + install -d ${D}${libdir} + install -d ${D}${includedir} + install -m 0644 ${S}/inc/NE10*.h ${D}${includedir}/ + install -m 0644 ${B}/modules/libNE10.a ${D}${libdir}/ + install -m 0755 ${B}/modules/libNE10.so.* ${D}${libdir}/ + cp -a ${B}/modules/libNE10.so ${D}${libdir}/ +}Signature · 7 lines
2.5.0 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 35 lines · Carlos Rafael Giani
Add recipe for the Ne10 library ( http://projectne10.github.io/Ne10/ ). This library provides heavily ARM NEON optimized versions of functions that are commonly used.
Signed-off-by Carlos Rafael Giani <[email protected]>--- meta-oe/recipes-support/ne10/ne10_1.2.1.bb | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 meta-oe/recipes-support/ne10/ne10_1.2.1.bbmeta-oe/recipes-support/ne10/ne10_1.2.1.bb new file +19
-0@@ -0,0 +1,38 @@ +DESCRIPTION = "Library containing NEON-optimized implementations for a common set of functions" +HOMEPAGE = "http://projectne10.github.io/Ne10/" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=463ac0a7d64edc2b787c4206635ca2b1" +SECTION = "libs" + +SRC_URI = "git://github.com/projectNe10/Ne10.git" +SRCREV = "a08b29d88e3c94d32b5b8f827e7fcf0bc2b34ac2" + +S = "${WORKDIR}/git" + +inherit cmake + +NE10_TARGET_ARCH = "" +EXTRA_OECMAKE = '-DGNULINUX_PLATFORM=ON -DNE10_BUILD_SHARED=ON -DNE10_LINUX_TARGET_ARCH="${NE10_TARGET_ARCH}"' + +COMPATIBLE_MACHINE_aarch64 = "(.*)" +COMPATIBLE_MACHINE_armv7a = "(.*)" +
meta-oe/recipes-support/ne10/ne10_1.2.1.bb line 29
Quoted 10 lines
meta-oe/recipes-support/ne10/ne10_1.2.1.bb new file +10
-0+python () { + if any(t.startswith('armv7') for t in d.getVar('TUNE_FEATURES', True).split()): + d.setVar('NE10_TARGET_ARCH', 'armv7') + bb.note('Building Ne10 for armv7') + elif any(t.startswith('aarch64') for t in d.getVar('TUNE_FEATURES', True).split()): + d.setVar('NE10_TARGET_ARCH', 'aarch64') + bb.note('Building Ne10 for aarch64') + else: + raise bb.parse.SkipPackage("Incompatible with archs other than armv7 and aarch64") +}
Maybe you should drop bb.note as well, it's a bit confusing when you run something like:
# bitbake perl it will show: Parsing recipes...NOTE: Building Ne10 for armv7 even when ne10 won't be built.
Quoted 17 lines
meta-oe/recipes-support/ne10/ne10_1.2.1.bb new file +9
-0+ +do_install() { + install -d ${D}${libdir} + install -d ${D}${includedir} + install -m 0644 ${S}/inc/NE10*.h ${D}${includedir}/ + install -m 0644 ${B}/modules/libNE10.a ${D}${libdir}/ + install -m 0755 ${B}/modules/libNE10.so.* ${D}${libdir}/ + cp -a ${B}/modules/libNE10.so ${D}${libdir}/ +}Signature · 7 lines
2.5.0 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]