summaryrefslogtreecommitdiffstats
path: root/meta-networking/dynamic-layers/meta-python
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/dynamic-layers/meta-python')
-rw-r--r--meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/0001-Make-alpha2-to-be-3-characters-long.patch31
-rw-r--r--meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/0001-Makefile-respect-LDFLAGS-for-libreg.patch29
-rw-r--r--meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/crda-4.14-python-3.patch101
-rw-r--r--meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/do-not-run-ldconfig-if-destdir-is-set.patch21
-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-issues-when-USE_OPENSSL-1.patch58
-rw-r--r--meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/fix-linking-of-libraries-used-by-reglib.patch57
-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/use-target-word-size-instead-of-host-s.patch34
-rw-r--r--meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda_3.18.bb39
10 files changed, 406 insertions, 0 deletions
diff --git a/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/0001-Make-alpha2-to-be-3-characters-long.patch b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/0001-Make-alpha2-to-be-3-characters-long.patch
new file mode 100644
index 0000000000..f1d2cbc5a3
--- /dev/null
+++ b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/0001-Make-alpha2-to-be-3-characters-long.patch
@@ -0,0 +1,31 @@
1From 078e962d345fd0536fe7ba797485ee1a4159c032 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 4 Feb 2022 09:18:30 -0800
4Subject: [PATCH] Make alpha2 to be 3 characters long
5
6Fixes buffer overflow
7reglib.c:969:9: error: 'sscanf' may overflow; destination buffer in argument 3 has size 2, but the corresponding specifier may require size 3 [-Werror,-Wfortify-source]
8 alpha2,
9 ^
10Upstream-Status: Pending
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 reglib.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/reglib.c b/reglib.c
17index e00e9b8..8565a0b 100644
18--- a/reglib.c
19+++ b/reglib.c
20@@ -958,7 +958,7 @@ reglib_parse_rules(FILE *fp, struct ieee80211_regdomain *trd)
21 static int reglib_parse_country_dfs(char *line, struct ieee80211_regdomain *rd)
22 {
23 char dfs_region_alpha[9];
24- char alpha2[2];
25+ char alpha2[3];
26 int hits;
27
28 memset(rd, 0, sizeof(*rd));
29--
302.35.1
31
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
new file mode 100644
index 0000000000..16800d5066
--- /dev/null
+++ b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/0001-Makefile-respect-LDFLAGS-for-libreg.patch
@@ -0,0 +1,29 @@
1From 1e1a78b7b4fa1662b4447aa19c15b1e839b7e9db Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Stefan=20M=C3=BCller-Klieser?= <s.mueller-klieser@phytec.de>
3Date: Wed, 24 Aug 2016 10:58:45 +0200
4Subject: [PATCH] Makefile: respect LDFLAGS for libreg
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
10---
11 Makefile | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/Makefile b/Makefile
15index 2879896..1650db8 100644
16--- a/Makefile
17+++ b/Makefile
18@@ -116,7 +116,7 @@ keys-%.c: utils/key2pub.py $(wildcard $(PUBKEY_DIR)/*.pem)
19
20 $(LIBREG): regdb.h reglib.h reglib.c
21 $(NQ) ' CC ' $@
22- $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $^ $(LIBREGLDLIBS)
23+ $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $^ $(LDFLAGS) $(LIBREGLDLIBS)
24
25 install-libreg-headers:
26 $(NQ) ' INSTALL libreg-headers'
27--
281.9.1
29
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
new file mode 100644
index 0000000000..9125d0ab97
--- /dev/null
+++ b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/crda-4.14-python-3.patch
@@ -0,0 +1,101 @@
1Imported from Gentoo
2https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c50acec16bc7c33d6dc122c007d713e7fbecf9c
3
4Signed-off-by: Khem Raj <raj.khem@gmail.com>
5
6--- a/utils/key2pub.py
7+++ b/utils/key2pub.py
8@@ -1,22 +1,22 @@
9-#!/usr/bin/env python
10+#!/usr/bin/env python3
11
12 import sys
13 try:
14 from M2Crypto import RSA
15-except ImportError, e:
16+except ImportError as e:
17 sys.stderr.write('ERROR: Failed to import the "M2Crypto" module: %s\n' % e.message)
18 sys.stderr.write('Please install the "M2Crypto" Python module.\n')
19 sys.stderr.write('On Debian GNU/Linux the package is called "python-m2crypto".\n')
20 sys.exit(1)
21
22 def print_ssl_64(output, name, val):
23- while val[0] == '\0':
24+ while val[0:1] == b'\0':
25 val = val[1:]
26 while len(val) % 8:
27- val = '\0' + val
28+ val = b'\0' + val
29 vnew = []
30 while len(val):
31- vnew.append((val[0], val[1], val[2], val[3], val[4], val[5], val[6], val[7]))
32+ vnew.append((val[0:1], val[1:2], val[2:3], val[3:4], val[4:5], val[5:6], val[6:7], val[7:8]))
33 val = val[8:]
34 vnew.reverse()
35 output.write('static BN_ULONG %s[%d] = {\n' % (name, len(vnew)))
36@@ -34,13 +34,13 @@ def print_ssl_64(output, name, val):
37 output.write('};\n\n')
38
39 def print_ssl_32(output, name, val):
40- while val[0] == '\0':
41+ while val[0:1] == b'\0':
42 val = val[1:]
43 while len(val) % 4:
44- val = '\0' + val
45+ val = b'\0' + val
46 vnew = []
47 while len(val):
48- vnew.append((val[0], val[1], val[2], val[3], ))
49+ vnew.append((val[0:1], val[1:2], val[2:3], val[3:4]))
50 val = val[4:]
51 vnew.reverse()
52 output.write('static BN_ULONG %s[%d] = {\n' % (name, len(vnew)))
53@@ -81,21 +81,21 @@ struct pubkey {
54
55 static struct pubkey keys[] __attribute__((unused))= {
56 ''')
57- for n in xrange(n + 1):
58+ for n in range(n + 1):
59 output.write(' KEYS(e_%d, n_%d),\n' % (n, n))
60 output.write('};\n')
61 pass
62
63 def print_gcrypt(output, name, val):
64 output.write('#include <stdint.h>\n')
65- while val[0] == '\0':
66+ while val[0:1] == b'\0':
67 val = val[1:]
68 output.write('static const uint8_t %s[%d] = {\n' % (name, len(val)))
69 idx = 0
70 for v in val:
71 if not idx:
72 output.write('\t')
73- output.write('0x%.2x, ' % ord(v))
74+ output.write('0x%.2x, ' % (v if sys.version_info[0] >=3 else ord(v)))
75 idx += 1
76 if idx == 8:
77 idx = 0
78@@ -118,7 +118,7 @@ struct key_params {
79
80 static const struct key_params keys[] __attribute__((unused))= {
81 ''')
82- for n in xrange(n + 1):
83+ for n in range(n + 1):
84 output.write(' KEYS(e_%d, n_%d),\n' % (n, n))
85 output.write('};\n')
86
87@@ -136,7 +136,7 @@ except IndexError:
88 mode = None
89
90 if not mode in modes:
91- print 'Usage: %s [%s] input-file... output-file' % (sys.argv[0], '|'.join(modes.keys()))
92+ print('Usage: %s [%s] input-file... output-file' % (sys.argv[0], '|'.join(modes.keys())))
93 sys.exit(2)
94
95 output = open(outfile, 'w')
96@@ -154,3 +154,5 @@ for f in files:
97 idx += 1
98
99 modes[mode][1](output, idx - 1)
100+
101+output.close()
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
new file mode 100644
index 0000000000..3ef35ee549
--- /dev/null
+++ b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/do-not-run-ldconfig-if-destdir-is-set.patch
@@ -0,0 +1,21 @@
1From: Ben Hutchings <ben@decadent.org.uk>
2Date: Sat, 23 Aug 2014 12:27:34 -0700
3Subject: crda: Do not run ldconfig if DESTDIR is set
4
5Upstream-Status: Backport [http://www.spinics.net/lists/linux-wireless/msg126028.html]
6
7Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
8Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
9
10--- a/Makefile
11+++ b/Makefile
12@@ -132,7 +132,9 @@ install-libreg:
13 $(NQ) ' INSTALL libreg'
14 $(Q)mkdir -p $(DESTDIR)/$(LIBDIR)
15 $(Q)cp $(LIBREG) $(DESTDIR)/$(LIBDIR)/
16+ifndef DESTDIR
17 $(Q)ldconfig
18+endif
19
20 %.o: %.c regdb.h $(LIBREG)
21 $(NQ) ' CC ' $@
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
new file mode 100644
index 0000000000..747804d345
--- /dev/null
+++ b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/fix-gcc-6-unused-variables.patch
@@ -0,0 +1,11 @@
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-issues-when-USE_OPENSSL-1.patch b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/fix-issues-when-USE_OPENSSL-1.patch
new file mode 100644
index 0000000000..1bb5c638f0
--- /dev/null
+++ b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/fix-issues-when-USE_OPENSSL-1.patch
@@ -0,0 +1,58 @@
1From 8d2164a090f17286ea8291f30a123595cf447dc3 Mon Sep 17 00:00:00 2001
2From: Haiqing Bai <Haiqing.Bai@windriver.com>
3Date: Wed, 30 Nov 2016 10:27:36 +0800
4Subject: [PATCH] crda: fix issues when 'USE_OPENSSL=1'.
5
6Fxed the below issues if configured with 'USE_OPENSSL=1':
7a. keys-ssl.c uses BN_ULONG but doesn't include the openssl headers leading
8 to build failures:
9 keys-ssl.c:2:8: error: unknown type name 'BN_ULONG'
10 static BN_ULONG e_0[1] = {
11
12b. The large unqualified constants also break building:
13 keys-ssl.c:8:2: warning: overflow in implicit constant conversion [-Woverflow]
14 0x63a2705416a0d8e1, 0xdc9fca11c8ba757b,
15
16c. keys-ssl.c: error: 'keys' defined but not used [-Werror=unused-variable]
17 static struct pubkey keys[] = {
18
19Signed-off-by: Mike Frysinger <vapier@gentoo.org>
20Upstream-Status: Pending
21Signed-off-by: Haiqing Bai <Haiqing.Bai@windriver.com>
22---
23 utils/key2pub.py | 5 +++--
24 1 file changed, 3 insertions(+), 2 deletions(-)
25
26diff --git a/utils/key2pub.py b/utils/key2pub.py
27index 401d58a..3ae00b8 100755
28--- a/utils/key2pub.py
29+++ b/utils/key2pub.py
30@@ -24,7 +24,7 @@ def print_ssl_64(output, name, val):
31 for v1, v2, v3, v4, v5, v6, v7, v8 in vnew:
32 if not idx:
33 output.write('\t')
34- output.write('0x%.2x%.2x%.2x%.2x%.2x%.2x%.2x%.2x, ' % (ord(v1), ord(v2), ord(v3), ord(v4), ord(v5), ord(v6), ord(v7), ord(v8)))
35+ output.write('0x%.2x%.2x%.2x%.2x%.2x%.2x%.2x%.2xULL, ' % (ord(v1), ord(v2), ord(v3), ord(v4), ord(v5), ord(v6), ord(v7), ord(v8)))
36 idx += 1
37 if idx == 2:
38 idx = 0
39@@ -60,6 +60,7 @@ def print_ssl_32(output, name, val):
40 def print_ssl(output, name, val):
41 import os
42 output.write('#include <stdint.h>\n')
43+ output.write('#include <openssl/bn.h>\n')
44 if os.getenv('TARGET_BITS') == '64':
45 return print_ssl_64(output, name, val)
46 else:
47@@ -78,7 +79,7 @@ struct pubkey {
48
49 #define KEYS(e,n) { KEY(e), KEY(n), }
50
51-static struct pubkey keys[] = {
52+static struct pubkey keys[] __attribute__((unused))= {
53 ''')
54 for n in xrange(n + 1):
55 output.write(' KEYS(e_%d, n_%d),\n' % (n, n))
56--
571.9.1
58
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
new file mode 100644
index 0000000000..812e983798
--- /dev/null
+++ b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/fix-linking-of-libraries-used-by-reglib.patch
@@ -0,0 +1,57 @@
1From 890f5bf2654b695a866262d72bfa9750af921a3b Mon Sep 17 00:00:00 2001
2From: Ben Hutchings <ben@decadent.org.uk>
3Date: Sat, 23 Aug 2014 12:26:37 -0700
4Subject: [PATCH] Fix linking of libraries used by libreg
5
6The math and crypto libraries are called by and need to be linked to
7libreg.so, not to the executables.
8
9Upstream-Status: Backport [http://www.spinics.net/lists/linux-wireless/msg126027.html]
10
11Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
12Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
13---
14 Makefile | 8 ++++----
15 1 file changed, 4 insertions(+), 4 deletions(-)
16
17diff --git a/Makefile b/Makefile
18index a3ead30..da2dcc3 100644
19--- a/Makefile
20+++ b/Makefile
21@@ -30,7 +30,7 @@ CFLAGS += -std=gnu99 -Wall -Werror -pedantic
22 CFLAGS += -Wall -g
23 LDLIBREG += -lreg
24 LDLIBS += $(LDLIBREG)
25-LDLIBS += -lm
26+LIBREGLDLIBS += -lm
27 LIBREG += libreg.so
28 LDFLAGS += -L ./
29
30@@ -40,13 +40,13 @@ all_noverify: $(LIBREG) crda intersect regdbdump db2rd optimize
31
32 ifeq ($(USE_OPENSSL),1)
33 CFLAGS += -DUSE_OPENSSL -DPUBKEY_DIR=\"$(RUNTIME_PUBKEY_DIR)\" `pkg-config --cflags openssl`
34-LDLIBS += `pkg-config --libs openssl`
35+LIBREGLDLIBS += `pkg-config --libs openssl`
36
37 $(LIBREG): keys-ssl.c
38
39 else
40 CFLAGS += -DUSE_GCRYPT
41-LDLIBS += -lgcrypt
42+LIBREGLDLIBS += -lgcrypt
43
44 $(LIBREG): keys-gcrypt.c
45
46@@ -116,7 +116,7 @@ keys-%.c: utils/key2pub.py $(wildcard $(PUBKEY_DIR)/*.pem)
47
48 $(LIBREG): regdb.h reglib.h reglib.c
49 $(NQ) ' CC ' $@
50- $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $^
51+ $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $^ $(LIBREGLDLIBS)
52
53 install-libreg-headers:
54 $(NQ) ' INSTALL libreg-headers'
55--
562.7.4
57
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
new file mode 100644
index 0000000000..0b737852c2
--- /dev/null
+++ b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/make.patch
@@ -0,0 +1,25 @@
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/use-target-word-size-instead-of-host-s.patch b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/use-target-word-size-instead-of-host-s.patch
new file mode 100644
index 0000000000..100b765f2d
--- /dev/null
+++ b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/use-target-word-size-instead-of-host-s.patch
@@ -0,0 +1,34 @@
1From c1c42513edd27c97341f2033af77c13a4724eb8f Mon Sep 17 00:00:00 2001
2From: Haiqing Bai <Haiqing.Bai@windriver.com>
3Date: Fri, 25 Nov 2016 16:48:01 +0800
4Subject: [PATCH] crda: Use target word size instead of host's.
5
6In key2pub.py, the codes check the wordsize
7of the host machine but not the target's, this fix
8fetches the wordsize of target from the build system.
9
10Upstream-Status: Pending
11Signed-off-by: Haiqing Bai <Haiqing.Bai@windriver.com>
12---
13 utils/key2pub.py | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
15
16diff --git a/utils/key2pub.py b/utils/key2pub.py
17index 3e84cd2..401d58a 100755
18--- a/utils/key2pub.py
19+++ b/utils/key2pub.py
20@@ -58,9 +58,9 @@ def print_ssl_32(output, name, val):
21 output.write('};\n\n')
22
23 def print_ssl(output, name, val):
24- import struct
25+ import os
26 output.write('#include <stdint.h>\n')
27- if len(struct.pack('@L', 0)) == 8:
28+ if os.getenv('TARGET_BITS') == '64':
29 return print_ssl_64(output, name, val)
30 else:
31 return print_ssl_32(output, name, val)
32--
331.9.1
34
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_3.18.bb
new file mode 100644
index 0000000000..9abfd61cf2
--- /dev/null
+++ b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda_3.18.bb
@@ -0,0 +1,39 @@
1SUMMARY = "Wireless Central Regulatory Domain Agent"
2HOMEPAGE = "http://wireless.kernel.org/en/developers/Regulatory/CRDA"
3SECTION = "net"
4LICENSE = "copyleft-next-0.3.0"
5LIC_FILES_CHKSUM = "file://copyleft-next-0.3.0;md5=8743a2c359037d4d329a31e79eabeffe"
6
7DEPENDS = "python3-m2crypto-native libnl libgcrypt"
8
9SRC_URI = "https://www.kernel.org/pub/software/network/${BPN}/${BP}.tar.xz \
10 file://do-not-run-ldconfig-if-destdir-is-set.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 \
14 file://make.patch \
15 file://use-target-word-size-instead-of-host-s.patch \
16 file://fix-issues-when-USE_OPENSSL-1.patch \
17 file://crda-4.14-python-3.patch \
18 file://0001-Make-alpha2-to-be-3-characters-long.patch \
19"
20SRC_URI[md5sum] = "0431fef3067bf503dfb464069f06163a"
21SRC_URI[sha256sum] = "43fcb9679f8b75ed87ad10944a506292def13e4afb194afa7aa921b01e8ecdbf"
22
23inherit pkgconfig python3-dir python3native siteinfo
24
25# Recursive make problem
26EXTRA_OEMAKE = "MAKEFLAGS= DESTDIR=${D} LIBDIR=${libdir}/crda LDLIBREG='-Wl,-rpath,${libdir}/crda -lreg' \
27 UDEV_RULE_DIR=${nonarch_base_libdir}/udev/rules.d/"
28TARGET_BITS = "${SITEINFO_BITS}"
29export TARGET_BITS
30
31do_compile() {
32 oe_runmake all_noverify
33}
34
35do_install() {
36 oe_runmake SBINDIR=${sbindir}/ install
37}
38
39RDEPENDS:${PN} = "udev wireless-regdb-static"