]> code.ossystems Code Review - meta-freescale.git/commitdiff
fsl-dynamic-packagearch.bbclass: Stop using ARM-specific architectures
authorOtavio Salvador <otavio@ossystems.com.br>
Mon, 19 Sep 2016 12:12:24 +0000 (09:12 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 23 Sep 2016 18:30:46 +0000 (15:30 -0300)
The code to dynamically assign the architecture does take into account
the default tune so we don't need to include the other architectures
with the SoC suffix into the possible package architecture list.

This allow for the class to be used across different architectures
(such as PowerPC) thus fixing issues while integrating it for QorIQ
usage.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
classes/fsl-dynamic-packagearch.bbclass

index fa542fcef2126d8a0c591975556c11b9ac434726..95ea77578b67a821741f330f0d967339a2bfac96 100644 (file)
@@ -23,7 +23,7 @@
 # MACHINE_ARCH_FILTER = "virtual/kernel"
 # MACHINE_SOCARCH_FILTER_soc = "virtual/libgles1 ... virtual/libgl"
 #
-# Copyright 2013-2015 (C) O.S. Systems Software LTDA.
+# Copyright 2013-2016 (C) O.S. Systems Software LTDA.
 
 python __anonymous () {
     machine_arch_filter = set((d.getVar("MACHINE_ARCH_FILTER", True) or "").split())
@@ -50,16 +50,9 @@ python __anonymous () {
             d.setVar("PACKAGE_ARCH", package_arch)
 
     cur_package_archs = (d.getVar("PACKAGE_ARCHS", True) or "").split()
-    arch_extra_socarch = (d.getVar("ARM_EXTRA_SOCARCH", True) or "")
-    thumb_extra_socarch = (d.getVar("THUMB_EXTRA_SOCARCH", True) or "")
-    if not arch_extra_socarch in cur_package_archs:
-        d.appendVar("PACKAGE_EXTRA_ARCHS", " %s" % arch_extra_socarch)
-
-    if not thumb_extra_socarch in cur_package_archs:
-        d.appendVar("PACKAGE_EXTRA_ARCHS", " %s" % thumb_extra_socarch)
+    machine_socarch = (d.getVar("MACHINE_SOCARCH", True) or "")
+    if not machine_socarch in cur_package_archs:
+        d.appendVar("PACKAGE_EXTRA_ARCHS", " %s" % machine_socarch)
 }
 
-ARM_EXTRA_SOCARCH = "${ARMPKGARCH}${ARMPKGSFX_DSP}${ARMPKGSFX_EABI}${ARMPKGSFX_ENDIAN}${ARMPKGSFX_FPU}${MACHINE_SOCARCH_SUFFIX}"
-THUMB_EXTRA_SOCARCH = "${ARMPKGARCH}${ARM_THUMB_SUFFIX}${ARMPKGSFX_DSP}${ARMPKGSFX_EABI}${ARMPKGSFX_ENDIAN}${ARMPKGSFX_FPU}${MACHINE_SOCARCH_SUFFIX}"
-
-MACHINE_SOCARCH = "${@bb.utils.contains('ARM_INSTRUCTION_SET', 'thumb', '${THUMB_EXTRA_SOCARCH}', '${ARM_EXTRA_SOCARCH}', d)}"
+MACHINE_SOCARCH = "${TUNE_PKGARCH}${MACHINE_SOCARCH_SUFFIX}"