summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-support/ne10/ne10_1.2.1.bb19
1 files changed, 6 insertions, 13 deletions
diff --git a/meta-oe/recipes-support/ne10/ne10_1.2.1.bb b/meta-oe/recipes-support/ne10/ne10_1.2.1.bb
index 3afdff7786..4e8986de18 100644
--- a/meta-oe/recipes-support/ne10/ne10_1.2.1.bb
+++ b/meta-oe/recipes-support/ne10/ne10_1.2.1.bb
@@ -15,22 +15,15 @@ PV .= "gitr+${SRCPV}"
15 15
16inherit cmake 16inherit cmake
17 17
18NE10_TARGET_ARCH = "" 18# Incompatible with archs other than armv7 and aarch64
19EXTRA_OECMAKE = '-DGNULINUX_PLATFORM=ON -DNE10_BUILD_SHARED=ON -DNE10_LINUX_TARGET_ARCH="${NE10_TARGET_ARCH}"' 19COMPATIBLE_MACHINE = "(^$)"
20
21COMPATIBLE_MACHINE_aarch64 = "(.*)" 20COMPATIBLE_MACHINE_aarch64 = "(.*)"
22COMPATIBLE_MACHINE_armv7a = "(.*)" 21COMPATIBLE_MACHINE_armv7a = "(.*)"
22NE10_TARGET_ARCH = ""
23NE10_TARGET_ARCH_aarch64 = "aarch64"
24NE10_TARGET_ARCH_armv7a = "armv7"
23 25
24python () { 26EXTRA_OECMAKE = '-DGNULINUX_PLATFORM=ON -DNE10_BUILD_SHARED=ON -DNE10_LINUX_TARGET_ARCH="${NE10_TARGET_ARCH}"'
25 if any(t.startswith('armv7') for t in d.getVar('TUNE_FEATURES').split()):
26 d.setVar('NE10_TARGET_ARCH', 'armv7')
27 bb.debug(2, 'Building Ne10 for armv7')
28 elif any(t.startswith('aarch64') for t in d.getVar('TUNE_FEATURES').split()):
29 d.setVar('NE10_TARGET_ARCH', 'aarch64')
30 bb.debug(2, 'Building Ne10 for aarch64')
31 else:
32 raise bb.parse.SkipRecipe("Incompatible with archs other than armv7 and aarch64")
33}
34 27
35do_install() { 28do_install() {
36 install -d ${D}${libdir} 29 install -d ${D}${libdir}