package/gdb: add C-SKY specific version
authorGuo Ren <ren_guo@c-sky.com>
Fri, 31 May 2019 06:39:05 +0000 (14:39 +0800)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 31 May 2019 21:00:26 +0000 (23:00 +0200)
Add gdb build for C-SKY Architecture:

 - Support host-gdb
 - Support gdbserver for target

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/gdb/Config.in
package/gdb/Config.in.host
package/gdb/gdb.hash
package/gdb/gdb.mk

index 0c3465d145ccf83c4febdf7b1c10ed8398de23b0..ab3d2157b6b0907267158d7ca9051a381ef4c19b 100644 (file)
@@ -57,6 +57,7 @@ config BR2_PACKAGE_GDB_DEBUGGER
        bool "full debugger"
        depends on BR2_USE_WCHAR
        depends on !BR2_sh
+       depends on !BR2_csky
        select BR2_PACKAGE_NCURSES
 
 comment "full gdb on target needs a toolchain w/ wchar"
index 9fdb0548b644dec2d68d468802a2fc603fa50850..7ce26c162869ed1d3ed341527b1b0affd0697fb1 100644 (file)
@@ -48,6 +48,7 @@ choice
        prompt "GDB debugger Version"
        default BR2_GDB_VERSION_8_1
        depends on !BR2_arc
+       depends on !BR2_csky
        help
          Select the version of gdb you wish to use.
 
@@ -95,6 +96,7 @@ config BR2_PACKAGE_GDB_NEEDS_CXX11
 config BR2_GDB_VERSION
        string
        default "arc-2019.03-rc1-gdb" if BR2_arc
+       default "4ecb98fbc2f94dbe01b69384afbc515107de73df" if BR2_csky
        default "7.12.1"   if BR2_GDB_VERSION_7_12
        default "8.0.1"    if BR2_GDB_VERSION_8_0
        default "8.1.1"    if BR2_GDB_VERSION_8_1 || !BR2_PACKAGE_HOST_GDB
index 9b7517eabf734db38161b98faa7502142daa3b42..f508b6bffcfdc8af14a3e24bc191a69a0b077fe5 100644 (file)
@@ -6,3 +6,6 @@ sha512  2aa81cfd389bb48c35d7d9f95cc10e88b4f7ad4597bdde0f8f1fd312f60f10d9fb2cc6e5
 
 # Locally calculated (fetched from Github)
 sha512  bc6dcd92991222418795c49b8fc13df7354b34ba7a7f1e4214b108776da0dad730259aa4611086694bc9291126f5182b449bbc22409aeadc44b89e7a42fb4e00       gdb-arc-2019.03-rc1-gdb.tar.gz
+
+# Locally calculated (fetched from https://github.com/c-sky/binutils-gdb)
+sha512  c421e1f3c0d6cfb3c04544573c0c4b0075c8d8e3d563c6c234fcc1e4c2167ab203d1e57aec3b58abd348dc46f8cf9b47b753d3a43dba3ea970c9c9a6bd78c07b       gdb-4ecb98fbc2f94dbe01b69384afbc515107de73df.tar.gz
index a92696137255123e8b5a2e23e6a1542571af652a..46d745a8970cac4d7a04cb5389f528fb08b708cf 100644 (file)
@@ -14,6 +14,12 @@ GDB_SOURCE = gdb-$(GDB_VERSION).tar.gz
 GDB_FROM_GIT = y
 endif
 
+ifeq ($(BR2_csky),y)
+GDB_SITE = $(call github,c-sky,binutils-gdb,$(GDB_VERSION))
+GDB_SOURCE = gdb-$(GDB_VERSION).tar.gz
+GDB_FROM_GIT = y
+endif
+
 GDB_LICENSE = GPL-2.0+, LGPL-2.0+, GPL-3.0+, LGPL-3.0+
 GDB_LICENSE_FILES = COPYING COPYING.LIB COPYING3 COPYING3.LIB