summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc <marc@cpdesign.com.au>2020-08-28 08:25:36 +1000
committerKhem Raj <raj.khem@gmail.com>2020-08-28 17:16:57 -0700
commit0a27b0840f57d64cab091c9a0681582832d72c2d (patch)
tree290cf9bc3e1f8311c2d8b0cd95cfd98b6782d3b1
parent00bd5ad72f3fef26127b1579d9870cd681725893 (diff)
downloadmeta-openembedded-0a27b0840f57d64cab091c9a0681582832d72c2d.tar.gz
openocd: Update to latest git version
The 0001-Do-not-include-sysctrl.h-with-glibc.patch is no longer needed, and is thus removed. The 0001-bitbang-Make-bitbang_swd-extern-definition.patch was fixed upstream in c60252ac2b636c4d99b766a574b9df0966151696 and is thus removed. Signed-off-by: Marc Reilly <marc@cpdesign.com.au> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-devtools/openocd/openocd/0001-Do-not-include-syscrtl.h-with-glibc.patch33
-rw-r--r--meta-oe/recipes-devtools/openocd/openocd/0001-bitbang-Make-bitbang_swd-extern-definition.patch42
-rw-r--r--meta-oe/recipes-devtools/openocd/openocd_git.bb8
3 files changed, 3 insertions, 80 deletions
diff --git a/meta-oe/recipes-devtools/openocd/openocd/0001-Do-not-include-syscrtl.h-with-glibc.patch b/meta-oe/recipes-devtools/openocd/openocd/0001-Do-not-include-syscrtl.h-with-glibc.patch
deleted file mode 100644
index 618ce26890..0000000000
--- a/meta-oe/recipes-devtools/openocd/openocd/0001-Do-not-include-syscrtl.h-with-glibc.patch
+++ /dev/null
@@ -1,33 +0,0 @@
1From a763610719e7d7f6cdc45569b6fbfdb91bb7c87b Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 27 Jul 2019 14:30:08 -0700
4Subject: [PATCH] Do not include syscrtl.h with glibc
5
6glibc 2.30 has deprecated it see [1]
7Fixes
8sys/sysctl.h:21:2: error: "The <sys/sysctl.h> header is deprecated and will be removed." [-Werror,-W#warnings]
9
10[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=744e829637162bb7d5029632aacf341c64b86990
11
12Upstream-Status: Pending
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 src/helper/options.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/src/helper/options.c b/src/helper/options.c
19index 12755e010..4007e37f6 100644
20--- a/src/helper/options.c
21+++ b/src/helper/options.c
22@@ -34,7 +34,7 @@
23 #if IS_DARWIN
24 #include <libproc.h>
25 #endif
26-#ifdef HAVE_SYS_SYSCTL_H
27+#if defined(HAVE_SYS_SYSCTL_H) && !defined(__GLIBC__)
28 #include <sys/sysctl.h>
29 #endif
30 #if IS_WIN32 && !IS_CYGWIN
31--
322.22.0
33
diff --git a/meta-oe/recipes-devtools/openocd/openocd/0001-bitbang-Make-bitbang_swd-extern-definition.patch b/meta-oe/recipes-devtools/openocd/openocd/0001-bitbang-Make-bitbang_swd-extern-definition.patch
deleted file mode 100644
index d42b628dae..0000000000
--- a/meta-oe/recipes-devtools/openocd/openocd/0001-bitbang-Make-bitbang_swd-extern-definition.patch
+++ /dev/null
@@ -1,42 +0,0 @@
1From 428f9f3c4a5be973e4c7fc1325ae9dbe41040df2 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 13 Aug 2020 17:47:35 -0700
4Subject: [PATCH] bitbang: Make bitbang_swd extern definition
5
6Fixes build with gcc10+
7
8Upstream-Status: Pending
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 src/jtag/drivers/bitbang.c | 1 +
12 src/jtag/drivers/bitbang.h | 2 +-
13 2 files changed, 2 insertions(+), 1 deletion(-)
14
15diff --git a/src/jtag/drivers/bitbang.c b/src/jtag/drivers/bitbang.c
16index b5078c080..f8612aade 100644
17--- a/src/jtag/drivers/bitbang.c
18+++ b/src/jtag/drivers/bitbang.c
19@@ -43,6 +43,7 @@ static int bitbang_stableclocks(int num_cycles);
20 static void bitbang_swd_write_reg(uint8_t cmd, uint32_t value, uint32_t ap_delay_clk);
21
22 struct bitbang_interface *bitbang_interface;
23+const struct swd_driver bitbang_swd;
24
25 /* DANGER!!!! clock absolutely *MUST* be 0 in idle or reset won't work!
26 *
27diff --git a/src/jtag/drivers/bitbang.h b/src/jtag/drivers/bitbang.h
28index 577717ebd..0faf5d9ae 100644
29--- a/src/jtag/drivers/bitbang.h
30+++ b/src/jtag/drivers/bitbang.h
31@@ -57,7 +57,7 @@ struct bitbang_interface {
32 void (*swdio_drive)(bool on);
33 };
34
35-const struct swd_driver bitbang_swd;
36+extern const struct swd_driver bitbang_swd;
37
38 extern bool swd_mode;
39
40--
412.28.0
42
diff --git a/meta-oe/recipes-devtools/openocd/openocd_git.bb b/meta-oe/recipes-devtools/openocd/openocd_git.bb
index c7d754fdba..4f6aaa8a6a 100644
--- a/meta-oe/recipes-devtools/openocd/openocd_git.bb
+++ b/meta-oe/recipes-devtools/openocd/openocd_git.bb
@@ -9,15 +9,13 @@ SRC_URI = " \
9 git://repo.or.cz/r/git2cl.git;protocol=http;destsuffix=tools/git2cl;name=git2cl \ 9 git://repo.or.cz/r/git2cl.git;protocol=http;destsuffix=tools/git2cl;name=git2cl \
10 git://repo.or.cz/r/jimtcl.git;protocol=http;destsuffix=git/jimtcl;name=jimtcl \ 10 git://repo.or.cz/r/jimtcl.git;protocol=http;destsuffix=git/jimtcl;name=jimtcl \
11 git://repo.or.cz/r/libjaylink.git;protocol=http;destsuffix=git/src/jtag/drivers/libjaylink;name=libjaylink \ 11 git://repo.or.cz/r/libjaylink.git;protocol=http;destsuffix=git/src/jtag/drivers/libjaylink;name=libjaylink \
12 file://0001-Do-not-include-syscrtl.h-with-glibc.patch \
13 file://0001-bitbang-Make-bitbang_swd-extern-definition.patch \
14" 12"
15 13
16SRCREV_FORMAT = "openocd" 14SRCREV_FORMAT = "openocd"
17SRCREV_openocd = "ded67990255cc1e63c77832ffd6e6bef9120873d" 15SRCREV_openocd = "d46f28c2ea2611f5fbbc679a5eed253d3dcd2fe3"
18SRCREV_git2cl = "8373c9f74993e218a08819cbcdbab3f3564bbeba" 16SRCREV_git2cl = "8373c9f74993e218a08819cbcdbab3f3564bbeba"
19SRCREV_jimtcl = "dc4ba7770d580800634f90b67a24e077b4a26d98" 17SRCREV_jimtcl = "0aa0fb4e3a38d38a49de9eb585d93d63a370dcf6"
20SRCREV_libjaylink = "3322dfa5e7aa56f5b12b7f2197e3e6b850b7b66e" 18SRCREV_libjaylink = "9aa7a5957c07bb6e862fc1a6d3153d109c7407e4"
21 19
22PV = "0.10+gitr${SRCPV}" 20PV = "0.10+gitr${SRCPV}"
23S = "${WORKDIR}/git" 21S = "${WORKDIR}/git"