Skip to contentSkip to conversation

qemu: Add nios2 target

PATCH In review Marek Vasut 3 participants 4 messages May 24, 2017 – May 26, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qemu: Add nios2 target

Add nios2 qemu target since nios2 is now supported in mainline.

Cc Richard Purdie <[email protected]>
Cc Ross Burton <[email protected]>
---
 meta-poky/conf/distro/poky.conf     | 3 ++-
 meta/recipes-devtools/qemu/qemu.inc | 2 +-
 scripts/runqemu                     | 4 +++-
 3 files changed, 6 insertions(+), 3 deletions(-)
meta-poky/conf/distro/poky.conf +2 -1
index 57b7e71d5f..d262f572ad 100644
@@ -39,13 +39,14 @@ POKYQEMUDEPS = "${@bb.utils.contains("INCOMPATIBLE_LICENSE", "GPL-3.0", "", "pac
 DISTRO_EXTRA_RDEPENDS_append_qemuarm = " ${POKYQEMUDEPS}"
 DISTRO_EXTRA_RDEPENDS_append_qemuarm64 = " ${POKYQEMUDEPS}"
 DISTRO_EXTRA_RDEPENDS_append_qemumips = " ${POKYQEMUDEPS}"
+DISTRO_EXTRA_RDEPENDS_append_qemunios2 = " ${POKYQEMUDEPS}"
 DISTRO_EXTRA_RDEPENDS_append_qemuppc = " ${POKYQEMUDEPS}"
 DISTRO_EXTRA_RDEPENDS_append_qemux86 = " ${POKYQEMUDEPS}"
 DISTRO_EXTRA_RDEPENDS_append_qemux86-64 = " ${POKYQEMUDEPS}"
 
 TCLIBCAPPEND = ""
 
-QEMU_TARGETS ?= "arm aarch64 i386 mips mipsel mips64 mips64el ppc x86_64"
+QEMU_TARGETS ?= "arm aarch64 i386 mips mipsel mips64 mips64el nios2 ppc x86_64"
 # Other QEMU_TARGETS "sh4"
 
 PREMIRRORS ??= "\
meta/recipes-devtools/qemu/qemu.inc +1 -1
index 0e1411af64..c9ac56121f 100644
@@ -9,7 +9,7 @@ inherit autotools pkgconfig bluetooth
 BBCLASSEXTEND = "native nativesdk"
 
 # QEMU_TARGETS is overridable variable
-QEMU_TARGETS ?= "arm aarch64 i386 mips mipsel mips64 mips64el ppc sh4 x86_64"
+QEMU_TARGETS ?= "arm aarch64 i386 mips mipsel mips64 mips64el nios2 ppc sh4 x86_64"
 
 EXTRA_OECONF = " \
     --prefix=${prefix} \
scripts/runqemu +3 -1
index f0ddeea1bf..f4f1bba17d 100755
@@ -1018,7 +1018,7 @@ class BaseConfig(object):
         """attempt to determine the appropriate qemu-system binary"""
         mach = self.get('MACHINE')
         if not mach:
-            search = '.*(qemux86-64|qemux86|qemuarm64|qemuarm|qemumips64|qemumips64el|qemumipsel|qemumips|qemuppc).*'
+            search = '.*(qemux86-64|qemux86|qemuarm64|qemuarm|qemumips64|qemumips64el|qemumipsel|qemumips|qemunios2|qemuppc).*'
             if self.rootfs:
                 match = re.match(search, self.rootfs)
                 if match:
@@ -1049,6 +1049,8 @@ class BaseConfig(object):
             qbsys = 'mipsel'
         elif mach == 'qemumips64el':
             qbsys = 'mips64el'
+        elif mach == 'qemunios2':
+            qbsys = 'nios2'
 
         return 'qemu-system-%s' % qbsys
 
Signature · 1 line
2.11.0
#1 lore raw

✗ patchtest: failure for qemu: Add nios2 target

== Series Details ==

Series: qemu: Add nios2 target
Revision: 1
URL : https://patchwork.openembedded.org/series/6891/
State : failure

== Summary ==

Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been executed on the proposed series by patchtest resulting in the following failures:

* Issue Series does not apply on top of target branch [test_series_merge_on_head]
Suggested fix Rebase your series on top of targeted branch
Targeted branch master (currently at 496a9dc179)

* Issue Series sent to the wrong mailing list or some patches from the series correspond to different mailing lists [test_target_mailing_list]

  Suggested fix    Send the series again to the correct mailing list (ML)
  Suggested ML     [email protected] [http://git.yoctoproject.org/cgit/cgit.cgi/poky/]
  Patch's path:    meta-poky/conf/distro/poky.conf

If you believe any of these test results are incorrect, please reply to the mailing list ([email protected]) raising your concerns. Otherwise we would appreciate you correcting the issues and submitting a new version of the patchset if applicable. Please ensure you add/increment the version number when sending the new version (i.e. [PATCH] -> [PATCH v2] -> [PATCH v3] -> ...).

---

Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite:     http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe
#2 lore raw

Re: ✗ patchtest: failure for qemu: Add nios2 target

Quoted 8 lines · Patchwork

* Issue Series sent to the wrong mailing list or some patches
from the series correspond to different mailing lists [test_target_mailing_list]
Suggested fix Send the series again to the correct mailing list (ML)
Suggested ML [email protected] [http://git.yoctoproject.org/
cgit/cgit.cgi/poky/]
Patch's path: meta-poky/conf/distro/poky.conf

Marek, please can you split this into patches for oe-core and meta-poky.

Cheers,
Ross

#3 lore raw

Re: ✗ patchtest: failure for qemu: Add nios2 target

Quoted 16 lines · Ross

On 24 May 2017 at 22:02, Patchwork <[email protected] <mailto:[email protected]>> wrote:

* Issue Series sent to the wrong mailing list or some
patches from the series correspond to different mailing lists [test_target_mailing_list]
Suggested fix Send the series again to the correct mailing list
(ML)
Suggested ML [email protected]
<mailto:[email protected]>
[http://git.yoctoproject.org/cgit/cgit.cgi/poky/
<http://git.yoctoproject.org/cgit/cgit.cgi/poky/>]
Patch's path: meta-poky/conf/distro/poky.conf

Quoted 1 line

Marek, please can you split this into patches for oe-core and meta-poky.

Aw snap, I didn't realize I brought a poky bit into the mix. Yes, I'll split it once the qemu recipe update lands and I can build test things.

Signature · 2 lines
Best regards,
Marek Vasut