summaryrefslogtreecommitdiffstats
path: root/meta-networking/dynamic-layers
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2023-01-17 12:22:23 +0800
committerKhem Raj <raj.khem@gmail.com>2023-01-16 21:29:24 -0800
commit27ce15a04717fa2048328115be7390be5e3687ee (patch)
tree12ff21d4ffcda82cf06e889af655a338af74db99 /meta-networking/dynamic-layers
parent175682f0df219e54b8f728e6327d81969ba8c436 (diff)
downloadmeta-openembedded-27ce15a04717fa2048328115be7390be5e3687ee.tar.gz
crda: 3.18 -> 4.15
Update crda from 3.18 to 4.15: * use git repo in SRC_URI that no tar archive found for recent releases * drop fix-gcc-6-unused-variables.patch and make.patch * rebase patches Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/dynamic-layers')
-rw-r--r--meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/0001-Makefile-respect-LDFLAGS-for-libreg.patch12
-rw-r--r--meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/crda-4.14-python-3.patch11
-rw-r--r--meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/do-not-run-ldconfig-if-destdir-is-set.patch13
-rw-r--r--meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/fix-gcc-6-unused-variables.patch11
-rw-r--r--meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/fix-linking-of-libraries-used-by-reglib.patch8
-rw-r--r--meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/make.patch25
-rw-r--r--meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda_4.15.bb (renamed from meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda_3.18.bb)9
7 files changed, 37 insertions, 52 deletions
diff --git a/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/0001-Makefile-respect-LDFLAGS-for-libreg.patch b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/0001-Makefile-respect-LDFLAGS-for-libreg.patch
index 16800d506..d61ea8069 100644
--- a/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/0001-Makefile-respect-LDFLAGS-for-libreg.patch
+++ b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/0001-Makefile-respect-LDFLAGS-for-libreg.patch
@@ -7,20 +7,24 @@ Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
8 8
9Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de> 9Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
10
11Rebase for crda 4.15.
12
13Signed-off-by: Kai Kang <kai.kang@windriver.com>
10--- 14---
11 Makefile | 2 +- 15 Makefile | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-) 16 1 file changed, 1 insertion(+), 1 deletion(-)
13 17
14diff --git a/Makefile b/Makefile 18diff --git a/Makefile b/Makefile
15index 2879896..1650db8 100644 19index 528a14e..31f1b5e 100644
16--- a/Makefile 20--- a/Makefile
17+++ b/Makefile 21+++ b/Makefile
18@@ -116,7 +116,7 @@ keys-%.c: utils/key2pub.py $(wildcard $(PUBKEY_DIR)/*.pem) 22@@ -116,7 +116,7 @@ keys-%.c: utils/key2pub.py $(wildcard $(PUBKEY_DIR)/*.pem)
19 23
20 $(LIBREG): regdb.h reglib.h reglib.c 24 $(LIBREG): reglib.c regdb.h reglib.h
21 $(NQ) ' CC ' $@ 25 $(NQ) ' CC ' $@
22- $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $^ $(LIBREGLDLIBS) 26- $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $< $(LIBREGLDLIBS)
23+ $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $^ $(LDFLAGS) $(LIBREGLDLIBS) 27+ $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $< $(LDFLAGS) $(LIBREGLDLIBS)
24 28
25 install-libreg-headers: 29 install-libreg-headers:
26 $(NQ) ' INSTALL libreg-headers' 30 $(NQ) ' INSTALL libreg-headers'
diff --git a/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/crda-4.14-python-3.patch b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/crda-4.14-python-3.patch
index 9125d0ab9..6c209dc37 100644
--- a/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/crda-4.14-python-3.patch
+++ b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/crda-4.14-python-3.patch
@@ -3,6 +3,15 @@ https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c50acec16bc7c33d6dc122c007
3 3
4Signed-off-by: Khem Raj <raj.khem@gmail.com> 4Signed-off-by: Khem Raj <raj.khem@gmail.com>
5 5
6Rebase for crda 4.15.
7
8Signed-off-by: Kai Kang <kai.kang@windriver.com>
9
10 utils/key2pub.py | 28 +++++++++++++++-------------
11 1 file changed, 15 insertions(+), 13 deletions(-)
12
13diff --git a/utils/key2pub.py b/utils/key2pub.py
14index 22fda55..2a4980b 100755
6--- a/utils/key2pub.py 15--- a/utils/key2pub.py
7+++ b/utils/key2pub.py 16+++ b/utils/key2pub.py
8@@ -1,22 +1,22 @@ 17@@ -1,22 +1,22 @@
@@ -77,7 +86,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
77 idx = 0 86 idx = 0
78@@ -118,7 +118,7 @@ struct key_params { 87@@ -118,7 +118,7 @@ struct key_params {
79 88
80 static const struct key_params keys[] __attribute__((unused))= { 89 static const struct key_params __attribute__ ((unused)) keys[] = {
81 ''') 90 ''')
82- for n in xrange(n + 1): 91- for n in xrange(n + 1):
83+ for n in range(n + 1): 92+ for n in range(n + 1):
diff --git a/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/do-not-run-ldconfig-if-destdir-is-set.patch b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/do-not-run-ldconfig-if-destdir-is-set.patch
index 3ef35ee54..b5bce40a9 100644
--- a/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/do-not-run-ldconfig-if-destdir-is-set.patch
+++ b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/do-not-run-ldconfig-if-destdir-is-set.patch
@@ -7,12 +7,21 @@ Upstream-Status: Backport [http://www.spinics.net/lists/linux-wireless/msg126028
7Signed-off-by: Ben Hutchings <ben@decadent.org.uk> 7Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
8Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com> 8Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
9 9
10Rebase patch for crda 4.15.
11
12Signed-off-by: Kai Kang <kai.kang@windriver.com>
13
14 Makefile | 2 ++
15 1 file changed, 2 insertions(+)
16
17diff --git a/Makefile b/Makefile
18index 6ca26f3..528a14e 100644
10--- a/Makefile 19--- a/Makefile
11+++ b/Makefile 20+++ b/Makefile
12@@ -132,7 +132,9 @@ install-libreg: 21@@ -127,7 +127,9 @@ install-libreg:
13 $(NQ) ' INSTALL libreg' 22 $(NQ) ' INSTALL libreg'
14 $(Q)mkdir -p $(DESTDIR)/$(LIBDIR) 23 $(Q)mkdir -p $(DESTDIR)/$(LIBDIR)
15 $(Q)cp $(LIBREG) $(DESTDIR)/$(LIBDIR)/ 24 $(Q)$(INSTALL) -m 644 $(LIBREG) $(DESTDIR)/$(LIBDIR)/
16+ifndef DESTDIR 25+ifndef DESTDIR
17 $(Q)ldconfig 26 $(Q)ldconfig
18+endif 27+endif
diff --git a/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/fix-gcc-6-unused-variables.patch b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/fix-gcc-6-unused-variables.patch
deleted file mode 100644
index 747804d34..000000000
--- a/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/fix-gcc-6-unused-variables.patch
+++ /dev/null
@@ -1,11 +0,0 @@
1--- crda-3.18/utils/key2pub.py.orig 2016-06-18 09:54:23.671326113 -0400
2+++ crda-3.18/utils/key2pub.py 2016-06-18 09:54:34.387326300 -0400
3@@ -115,7 +115,7 @@
4 .n = _n, .len_n = sizeof(_n), \
5 }
6
7-static const struct key_params keys[] = {
8+static const struct key_params keys[] __attribute__((unused))= {
9 ''')
10 for n in xrange(n + 1):
11 output.write(' KEYS(e_%d, n_%d),\n' % (n, n))
diff --git a/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/fix-linking-of-libraries-used-by-reglib.patch b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/fix-linking-of-libraries-used-by-reglib.patch
index 812e98379..a7fb22a72 100644
--- a/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/fix-linking-of-libraries-used-by-reglib.patch
+++ b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/fix-linking-of-libraries-used-by-reglib.patch
@@ -15,7 +15,7 @@ Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
15 1 file changed, 4 insertions(+), 4 deletions(-) 15 1 file changed, 4 insertions(+), 4 deletions(-)
16 16
17diff --git a/Makefile b/Makefile 17diff --git a/Makefile b/Makefile
18index a3ead30..da2dcc3 100644 18index 528a14e..acd818b 100644
19--- a/Makefile 19--- a/Makefile
20+++ b/Makefile 20+++ b/Makefile
21@@ -30,7 +30,7 @@ CFLAGS += -std=gnu99 -Wall -Werror -pedantic 21@@ -30,7 +30,7 @@ CFLAGS += -std=gnu99 -Wall -Werror -pedantic
@@ -45,10 +45,10 @@ index a3ead30..da2dcc3 100644
45 45
46@@ -116,7 +116,7 @@ keys-%.c: utils/key2pub.py $(wildcard $(PUBKEY_DIR)/*.pem) 46@@ -116,7 +116,7 @@ keys-%.c: utils/key2pub.py $(wildcard $(PUBKEY_DIR)/*.pem)
47 47
48 $(LIBREG): regdb.h reglib.h reglib.c 48 $(LIBREG): reglib.c regdb.h reglib.h
49 $(NQ) ' CC ' $@ 49 $(NQ) ' CC ' $@
50- $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $^ 50- $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $<
51+ $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $^ $(LIBREGLDLIBS) 51+ $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $< $(LIBREGLDLIBS)
52 52
53 install-libreg-headers: 53 install-libreg-headers:
54 $(NQ) ' INSTALL libreg-headers' 54 $(NQ) ' INSTALL libreg-headers'
diff --git a/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/make.patch b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/make.patch
deleted file mode 100644
index 0b737852c..000000000
--- a/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/make.patch
+++ /dev/null
@@ -1,25 +0,0 @@
1These headers are not related to any Make rule but they do appear in
2compiling of libreg.so, specifying .h files in compiler cmdline is flagged
3as error by clang
4
5| clang-4.0: error: cannot specify -o when generating multiple output files
6| make: *** [libreg.so] Error 1
7
8This is how we see headers in cmdline
9-O2 -fpic -std=gnu
1099 -Wall -Werror -pedantic -Wall -g -DUSE_GCRYPT -DCONFIG_LIBNL30 `pkg-config --cflags libnl-3.0` -o libreg.so -shared -Wl,-soname,libreg.so
11regdb.h reglib.h reglib.c keys-gcrypt.c -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -L ./ -lm -lgcrypt
12
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14
15--- a/Makefile.kk 2016-11-15 04:54:53.338670000 +0000
16+++ a/Makefile 2016-11-15 04:55:07.718670000 +0000
17@@ -114,7 +114,7 @@ keys-%.c: utils/key2pub.py $(wildcard $(
18 $(NQ) ' Trusted pubkeys:' $(wildcard $(PUBKEY_DIR)/*.pem)
19 $(Q)./utils/key2pub.py --$* $(wildcard $(PUBKEY_DIR)/*.pem) $@
20
21-$(LIBREG): regdb.h reglib.h reglib.c
22+$(LIBREG): reglib.c
23 $(NQ) ' CC ' $@
24 $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $^ $(LDFLAGS) $(LIBREGLDLIBS)
25
diff --git a/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda_3.18.bb b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda_4.15.bb
index 2f4d4dac9..dd2df3222 100644
--- a/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda_3.18.bb
+++ b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda_4.15.bb
@@ -6,20 +6,19 @@ LIC_FILES_CHKSUM = "file://copyleft-next-0.3.0;md5=8743a2c359037d4d329a31e79eabe
6 6
7DEPENDS = "python3-m2crypto-native libnl libgcrypt" 7DEPENDS = "python3-m2crypto-native libnl libgcrypt"
8 8
9SRC_URI = "https://www.kernel.org/pub/software/network/${BPN}/${BP}.tar.xz \ 9SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/crda.git;branch=master \
10 file://do-not-run-ldconfig-if-destdir-is-set.patch \ 10 file://do-not-run-ldconfig-if-destdir-is-set.patch \
11 file://fix-linking-of-libraries-used-by-reglib.patch \ 11 file://fix-linking-of-libraries-used-by-reglib.patch \
12 file://fix-gcc-6-unused-variables.patch \
13 file://0001-Makefile-respect-LDFLAGS-for-libreg.patch \ 12 file://0001-Makefile-respect-LDFLAGS-for-libreg.patch \
14 file://make.patch \
15 file://use-target-word-size-instead-of-host-s.patch \ 13 file://use-target-word-size-instead-of-host-s.patch \
16 file://fix-issues-when-USE_OPENSSL-1.patch \ 14 file://fix-issues-when-USE_OPENSSL-1.patch \
17 file://crda-4.14-python-3.patch \ 15 file://crda-4.14-python-3.patch \
18 file://0001-Make-alpha2-to-be-3-characters-long.patch \ 16 file://0001-Make-alpha2-to-be-3-characters-long.patch \
19 file://0001-reglib-Remove-unused-variables.patch \ 17 file://0001-reglib-Remove-unused-variables.patch \
20" 18"
21SRC_URI[md5sum] = "0431fef3067bf503dfb464069f06163a" 19SRCREV = "6aeea99ceeec85dd7a9202ee39c7f3b2a8f5195d"
22SRC_URI[sha256sum] = "43fcb9679f8b75ed87ad10944a506292def13e4afb194afa7aa921b01e8ecdbf" 20
21S = "${WORKDIR}/git"
23 22
24inherit pkgconfig python3-dir python3native siteinfo 23inherit pkgconfig python3-dir python3native siteinfo
25 24