[oe] [PATCH] {insane, kernel-arch, site-info}.bbclass: New architecture nios2.

Leon Woestenberg leon.woestenberg at gmail.com
Sun Dec 6 22:44:36 UTC 2009


From: Walter Goossens <walter.goossens at axon.tv>

These adds nios2 to the hard-coded architecture bits we have in
the BitBake classes.

Tested-by: Leon Woestenberg <leon at sidebranch.com>
Signed-off-by: Leon Woestenberg <leon at sidebranch.com>
---
 classes/insane.bbclass      |    4 ++--
 classes/kernel-arch.bbclass |    2 +-
 classes/siteinfo.bbclass    |    1 +
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/classes/insane.bbclass b/classes/insane.bbclass
index 495c3a5..4ab16ae 100644
--- a/classes/insane.bbclass
+++ b/classes/insane.bbclass
@@ -63,8 +63,8 @@ def package_qa_get_machine_dict():
                         "i686":       (   3,     0,    0,          True,          True),
                         "mipsel":     (   8,     0,    0,          True,          True),
                         "avr32":      (6317,     0,    0,          False,         True),
-			"sh4":        (42,	 0,    0,          True,          True),
-
+                        "sh4":        (42,       0,    0,          True,          True),
+                        "nios2":      (113,      0,    0,          True,          True),
                       },
             "uclinux-uclibc" : {
                         "bfin":       ( 106,     0,    0,          True,         True),
diff --git a/classes/kernel-arch.bbclass b/classes/kernel-arch.bbclass
index 8894fa5..648f50d 100644
--- a/classes/kernel-arch.bbclass
+++ b/classes/kernel-arch.bbclass
@@ -12,7 +12,7 @@ valid_archs = "alpha cris ia64 \
                m32r mips \
 	       sh sh64 um h8300   \
 	       parisc s390  v850 \
-	       avr32 blackfin"
+	       avr32 blackfin nios2"
 
 def map_kernel_arch(a, d):
 	import re
diff --git a/classes/siteinfo.bbclass b/classes/siteinfo.bbclass
index 93cee4f..7e7b9e9 100644
--- a/classes/siteinfo.bbclass
+++ b/classes/siteinfo.bbclass
@@ -52,6 +52,7 @@ def get_siteinfo_list(d):
                "mipsel-linux-uclibc":     "endian-little bit-32 common-linux common-uclibc mips-common",\
                "mips-linux":              "endian-big bit-32 common-linux common-glibc mips-common",\
                "mips-linux-uclibc":       "endian-big bit-32 common-linux common-uclibc mips-common",\
+               "nios2-linux-uclibc":      "endian-little bit-32 common-linux common-uclibc",\
                "powerpc-darwin":          "endian-big bit-32 common-darwin",\
                "ppc-linux":               "endian-big bit-32 common-linux common-glibc powerpc-common powerpc-linux",\
                "ppc64-linux":             "endian-big bit-64 common-linux common-glibc powerpc-common powerpc64-linux",\
-- 
1.6.0.4





More information about the Openembedded-devel mailing list