[2/2] package/qemu: Add C-SKY qemu support
diff mbox series

Message ID 1559564887-4088-2-git-send-email-guoren@kernel.org
State Accepted
Headers show
Series
  • [1/2] package/qemu: Move patches to version directory
Related show

Commit Message

Guo Ren June 3, 2019, 12:28 p.m. UTC
From: Guo Ren <ren_guo@c-sky.com>

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
 package/qemu/Config.in.host |  1 +
 package/qemu/qemu.hash      |  1 +
 package/qemu/qemu.mk        | 12 ++++++++++++
 3 files changed, 14 insertions(+)

Comments

Guo Ren June 12, 2019, 5:49 a.m. UTC | #1
Hello Thomas,

Ping ...

As you've asked in:
https://lore.kernel.org/linux-csky/20190603093212.74f84255@windsurf/T/#u

Is the patch all right for buildroot?

Best Regards
 Guo Ren

On Mon, Jun 3, 2019 at 8:28 PM <guoren@kernel.org> wrote:
>
> From: Guo Ren <ren_guo@c-sky.com>
>
> Signed-off-by: Guo Ren <ren_guo@c-sky.com>
> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> ---
>  package/qemu/Config.in.host |  1 +
>  package/qemu/qemu.hash      |  1 +
>  package/qemu/qemu.mk        | 12 ++++++++++++
>  3 files changed, 14 insertions(+)
>
> diff --git a/package/qemu/Config.in.host b/package/qemu/Config.in.host
> index 8a0df38..effe58b 100644
> --- a/package/qemu/Config.in.host
> +++ b/package/qemu/Config.in.host
> @@ -3,6 +3,7 @@ config BR2_PACKAGE_HOST_QEMU_ARCH_SUPPORTS
>         default y if BR2_arm
>         default y if BR2_armeb
>         default y if BR2_aarch64
> +       default y if BR2_csky
>         default y if BR2_i386
>         default y if BR2_m68k
>         default y if BR2_microblazeel
> diff --git a/package/qemu/qemu.hash b/package/qemu/qemu.hash
> index 338d2ae..9ee9833 100644
> --- a/package/qemu/qemu.hash
> +++ b/package/qemu/qemu.hash
> @@ -2,3 +2,4 @@
>  sha256 6a0508df079a0a33c2487ca936a56c12122f105b8a96a44374704bef6c69abfc  qemu-3.1.0.tar.xz
>  sha256 6f04ae8364d0079a192b14635f4b1da294ce18724c034c39a6a41d1b09df6100  COPYING
>  sha256 48ffe9fc7f1d5462dbd19340bc4dd1d8a9e37c61ed535813e614cbe4a5f0d4df  COPYING.LIB
> +sha256 61091767ffd16002e77f005155d096208094e69dee35e6d5ddcaa6c8a13b5e26  qemu-b517e1dc3125a57555d67a8deed9eac7b42288e2.tar.gz
> diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
> index 19bcafa..012406e 100644
> --- a/package/qemu/qemu.mk
> +++ b/package/qemu/qemu.mk
> @@ -4,9 +4,14 @@
>  #
>  ################################################################################
>
> +ifeq ($(BR2_csky),y)
> +QEMU_VERSION = b517e1dc3125a57555d67a8deed9eac7b42288e2
> +QEMU_SITE = $(call github,c-sky,qemu,$(QEMU_VERSION))
> +else
>  QEMU_VERSION = 3.1.0
>  QEMU_SOURCE = qemu-$(QEMU_VERSION).tar.xz
>  QEMU_SITE = http://download.qemu.org
> +endif
>  QEMU_LICENSE = GPL-2.0, LGPL-2.1, MIT, BSD-3-Clause, BSD-2-Clause, Others/BSD-1c
>  QEMU_LICENSE_FILES = COPYING COPYING.LIB
>  # NOTE: there is no top-level license file for non-(L)GPL licenses;
> @@ -209,6 +214,13 @@ endif
>  ifeq ($(HOST_QEMU_ARCH),sh4aeb)
>  HOST_QEMU_ARCH = sh4eb
>  endif
> +ifeq ($(HOST_QEMU_ARCH),csky)
> +ifeq ($(BR2_ck610),y)
> +HOST_QEMU_ARCH = cskyv1
> +else
> +HOST_QEMU_ARCH = cskyv2
> +endif
> +endif
>  HOST_QEMU_SYS_ARCH ?= $(HOST_QEMU_ARCH)
>
>  ifeq ($(BR2_PACKAGE_HOST_QEMU_SYSTEM_MODE),y)
> --
> 2.7.4
>
> _______________________________________________
> buildroot mailing list
> buildroot@busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

Patch
diff mbox series

diff --git a/package/qemu/Config.in.host b/package/qemu/Config.in.host
index 8a0df38..effe58b 100644
--- a/package/qemu/Config.in.host
+++ b/package/qemu/Config.in.host
@@ -3,6 +3,7 @@  config BR2_PACKAGE_HOST_QEMU_ARCH_SUPPORTS
 	default y if BR2_arm
 	default y if BR2_armeb
 	default y if BR2_aarch64
+	default y if BR2_csky
 	default y if BR2_i386
 	default y if BR2_m68k
 	default y if BR2_microblazeel
diff --git a/package/qemu/qemu.hash b/package/qemu/qemu.hash
index 338d2ae..9ee9833 100644
--- a/package/qemu/qemu.hash
+++ b/package/qemu/qemu.hash
@@ -2,3 +2,4 @@ 
 sha256 6a0508df079a0a33c2487ca936a56c12122f105b8a96a44374704bef6c69abfc  qemu-3.1.0.tar.xz
 sha256 6f04ae8364d0079a192b14635f4b1da294ce18724c034c39a6a41d1b09df6100  COPYING
 sha256 48ffe9fc7f1d5462dbd19340bc4dd1d8a9e37c61ed535813e614cbe4a5f0d4df  COPYING.LIB
+sha256 61091767ffd16002e77f005155d096208094e69dee35e6d5ddcaa6c8a13b5e26  qemu-b517e1dc3125a57555d67a8deed9eac7b42288e2.tar.gz
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index 19bcafa..012406e 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -4,9 +4,14 @@ 
 #
 ################################################################################
 
+ifeq ($(BR2_csky),y)
+QEMU_VERSION = b517e1dc3125a57555d67a8deed9eac7b42288e2
+QEMU_SITE = $(call github,c-sky,qemu,$(QEMU_VERSION))
+else
 QEMU_VERSION = 3.1.0
 QEMU_SOURCE = qemu-$(QEMU_VERSION).tar.xz
 QEMU_SITE = http://download.qemu.org
+endif
 QEMU_LICENSE = GPL-2.0, LGPL-2.1, MIT, BSD-3-Clause, BSD-2-Clause, Others/BSD-1c
 QEMU_LICENSE_FILES = COPYING COPYING.LIB
 # NOTE: there is no top-level license file for non-(L)GPL licenses;
@@ -209,6 +214,13 @@  endif
 ifeq ($(HOST_QEMU_ARCH),sh4aeb)
 HOST_QEMU_ARCH = sh4eb
 endif
+ifeq ($(HOST_QEMU_ARCH),csky)
+ifeq ($(BR2_ck610),y)
+HOST_QEMU_ARCH = cskyv1
+else
+HOST_QEMU_ARCH = cskyv2
+endif
+endif
 HOST_QEMU_SYS_ARCH ?= $(HOST_QEMU_ARCH)
 
 ifeq ($(BR2_PACKAGE_HOST_QEMU_SYSTEM_MODE),y)