diff options
7 files changed, 419 insertions, 38 deletions
diff --git a/meta-networking/licenses/copyleft-next-0.3.0 b/meta-networking/licenses/copyleft-next-0.3.0 new file mode 100644 index 000000000..a66d5bf5e --- /dev/null +++ b/meta-networking/licenses/copyleft-next-0.3.0 | |||
@@ -0,0 +1,219 @@ | |||
1 | copyleft-next 0.3.0 ("this License") | ||
2 | Release date: 2013-05-16 | ||
3 | |||
4 | 1. License Grants; No Trademark License | ||
5 | |||
6 | Subject to the terms of this License, I grant You: | ||
7 | |||
8 | a) A non-exclusive, worldwide, perpetual, royalty-free, irrevocable | ||
9 | copyright license, to reproduce, Distribute, prepare derivative works | ||
10 | of, publicly perform and publicly display My Work. | ||
11 | |||
12 | b) A non-exclusive, worldwide, perpetual, royalty-free, irrevocable | ||
13 | patent license under Licensed Patents to make, have made, use, sell, | ||
14 | offer for sale, and import Covered Works. | ||
15 | |||
16 | This License does not grant any rights in My name, trademarks, service | ||
17 | marks, or logos. | ||
18 | |||
19 | 2. Distribution: General Conditions | ||
20 | |||
21 | You may Distribute Covered Works, provided that You (i) inform | ||
22 | recipients how they can obtain a copy of this License; (ii) satisfy the | ||
23 | applicable conditions of sections 3 through 6; and (iii) preserve all | ||
24 | Legal Notices contained in My Work (to the extent they remain | ||
25 | pertinent). "Legal Notices" means copyright notices, license notices, | ||
26 | license texts, and author attributions, but does not include logos, | ||
27 | other graphical images, trademarks or trademark legends. | ||
28 | |||
29 | 3. Conditions for Distributing Derived Works; Outbound GPL Compatibility | ||
30 | |||
31 | If You Distribute a Derived Work, You must license the entire Derived | ||
32 | Work as a whole under this License, with prominent notice of such | ||
33 | licensing. This condition may not be avoided through such means as | ||
34 | separate Distribution of portions of the Derived Work. You may | ||
35 | additionally license the Derived Work under the GPL, so that the | ||
36 | recipient may further Distribute the Derived Work under either this | ||
37 | License or the GPL. | ||
38 | |||
39 | 4. Condition Against Further Restrictions; Inbound License Compatibility | ||
40 | |||
41 | When Distributing a Covered Work, You may not impose further | ||
42 | restrictions on the exercise of rights in the Covered Work granted under | ||
43 | this License. This condition is not excused merely because such | ||
44 | restrictions result from Your compliance with conditions or obligations | ||
45 | extrinsic to this License (such as a court order or an agreement with a | ||
46 | third party). | ||
47 | |||
48 | However, You may Distribute a Covered Work incorporating material | ||
49 | governed by a license that is both OSI-Approved and FSF-Free as of the | ||
50 | release date of this License, provided that Your Distribution complies | ||
51 | with such other license. | ||
52 | |||
53 | 5. Conditions for Distributing Object Code | ||
54 | |||
55 | You may Distribute an Object Code form of a Covered Work, provided that | ||
56 | you accompany the Object Code with a URL through which the Corresponding | ||
57 | Source is made available, at no charge, by some standard or customary | ||
58 | means of providing network access to source code. | ||
59 | |||
60 | If you Distribute the Object Code in a physical product or tangible | ||
61 | storage medium ("Product"), the Corresponding Source must be available | ||
62 | through such URL for two years from the date of Your most recent | ||
63 | Distribution of the Object Code in the Product. However, if the Product | ||
64 | itself contains or is accompanied by the Corresponding Source (made | ||
65 | available in a customarily accessible manner), You need not also comply | ||
66 | with the first paragraph of this section. | ||
67 | |||
68 | Each recipient of the Covered Work from You is an intended third-party | ||
69 | beneficiary of this License solely as to this section 5, with the right | ||
70 | to enforce its terms. | ||
71 | |||
72 | 6. Symmetrical Licensing Condition for Upstream Contributions | ||
73 | |||
74 | If You Distribute a work to Me specifically for inclusion in or | ||
75 | modification of a Covered Work (a "Patch"), and no explicit licensing | ||
76 | terms apply to the Patch, You license the Patch under this License, to | ||
77 | the extent of Your copyright in the Patch. This condition does not | ||
78 | negate the other conditions of this License, if applicable to the Patch. | ||
79 | |||
80 | 7. Nullification of Copyleft/Proprietary Dual Licensing | ||
81 | |||
82 | If I offer to license, for a fee, a Covered Work under terms other than | ||
83 | a license that is OSI-Approved or FSF-Free as of the release date of this | ||
84 | License or a numbered version of copyleft-next released by the | ||
85 | Copyleft-Next Project, then the license I grant You under section 1 is no | ||
86 | longer subject to the conditions in sections 2 through 5. | ||
87 | |||
88 | 8. Copyleft Sunset | ||
89 | |||
90 | The conditions in sections 2 through 5 no longer apply once fifteen | ||
91 | years have elapsed from the date of My first Distribution of My Work | ||
92 | under this License. | ||
93 | |||
94 | 9. Pass-Through | ||
95 | |||
96 | When You Distribute a Covered Work, the recipient automatically receives | ||
97 | a license to My Work from Me, subject to the terms of this License. | ||
98 | |||
99 | 10. Termination | ||
100 | |||
101 | Your license grants under section 1 are automatically terminated if You | ||
102 | |||
103 | a) fail to comply with the conditions of this License, unless You cure | ||
104 | such noncompliance within thirty days after becoming aware of it, or | ||
105 | |||
106 | b) initiate a patent infringement litigation claim (excluding | ||
107 | declaratory judgment actions, counterclaims, and cross-claims) | ||
108 | alleging that any part of My Work directly or indirectly infringes | ||
109 | any patent. | ||
110 | |||
111 | Termination of Your license grants extends to all copies of Covered | ||
112 | Works You subsequently obtain. Termination does not terminate the | ||
113 | rights of those who have received copies or rights from You subject to | ||
114 | this License. | ||
115 | |||
116 | To the extent permission to make copies of a Covered Work is necessary | ||
117 | merely for running it, such permission is not terminable. | ||
118 | |||
119 | 11. Later License Versions | ||
120 | |||
121 | The Copyleft-Next Project may release new versions of copyleft-next, | ||
122 | designated by a distinguishing version number ("Later Versions"). | ||
123 | Unless I explicitly remove the option of Distributing Covered Works | ||
124 | under Later Versions, You may Distribute Covered Works under any Later | ||
125 | Version. | ||
126 | |||
127 | ** 12. No Warranty ** | ||
128 | ** ** | ||
129 | ** My Work is provided "as-is", without warranty. You bear the risk ** | ||
130 | ** of using it. To the extent permitted by applicable law, each ** | ||
131 | ** Distributor of My Work excludes the implied warranties of title, ** | ||
132 | ** merchantability, fitness for a particular purpose and ** | ||
133 | ** non-infringement. ** | ||
134 | |||
135 | ** 13. Limitation of Liability ** | ||
136 | ** ** | ||
137 | ** To the extent permitted by applicable law, in no event will any ** | ||
138 | ** Distributor of My Work be liable to You for any damages ** | ||
139 | ** whatsoever, whether direct, indirect, special, incidental, or ** | ||
140 | ** consequential damages, whether arising under contract, tort ** | ||
141 | ** (including negligence), or otherwise, even where the Distributor ** | ||
142 | ** knew or should have known about the possibility of such damages. ** | ||
143 | |||
144 | 14. Severability | ||
145 | |||
146 | The invalidity or unenforceability of any provision of this License | ||
147 | does not affect the validity or enforceability of the remainder of | ||
148 | this License. Such provision is to be reformed to the minimum extent | ||
149 | necessary to make it valid and enforceable. | ||
150 | |||
151 | 15. Definitions | ||
152 | |||
153 | "Copyleft-Next Project" means the project that maintains the source | ||
154 | code repository at <https://gitorious.org/copyleft-next/> as of the | ||
155 | release date of this License. | ||
156 | |||
157 | "Corresponding Source" of a Covered Work in Object Code form means (i) | ||
158 | the Source Code form of the Covered Work; (ii) all scripts, | ||
159 | instructions and similar information that are reasonably necessary for | ||
160 | a skilled developer to generate such Object Code from the Source Code | ||
161 | provided under (i); and (iii) a list clearly identifying all Separate | ||
162 | Works (other than those provided in compliance with (ii)) that were | ||
163 | specifically used in building and (if applicable) installing the | ||
164 | Covered Work (for example, a specified proprietary compiler including | ||
165 | its version number). Corresponding Source must be machine-readable. | ||
166 | |||
167 | "Covered Work" means My Work or a Derived Work. | ||
168 | |||
169 | "Derived Work" means a work of authorship that copies from, modifies, | ||
170 | adapts, is based on, is a derivative work of, transforms, translates or | ||
171 | contains all or part of My Work, such that copyright permission is | ||
172 | required. The following are not Derived Works: (i) Mere Aggregation; | ||
173 | (ii) a mere reproduction of My Work; and (iii) if My Work fails to | ||
174 | explicitly state an expectation otherwise, a work that merely makes | ||
175 | reference to My Work. | ||
176 | |||
177 | "Distribute" means to distribute, transfer or make a copy available to | ||
178 | someone else, such that copyright permission is required. | ||
179 | |||
180 | "Distributor" means Me and anyone else who Distributes a Covered Work. | ||
181 | |||
182 | "FSF-Free" means classified as 'free' by the Free Software Foundation. | ||
183 | |||
184 | "GPL" means a version of the GNU General Public License or the GNU | ||
185 | Affero General Public License. | ||
186 | |||
187 | "I"/"Me"/"My" refers to the individual or legal entity that places My | ||
188 | Work under this License. "You"/"Your" refers to the individual or legal | ||
189 | entity exercising rights in My Work under this License. A legal entity | ||
190 | includes each entity that controls, is controlled by, or is under | ||
191 | common control with such legal entity. "Control" means (a) the power to | ||
192 | direct the actions of such legal entity, whether by contract or | ||
193 | otherwise, or (b) ownership of more than fifty percent of the | ||
194 | outstanding shares or beneficial ownership of such legal entity. | ||
195 | |||
196 | "Licensed Patents" means all patent claims licensable royalty-free by | ||
197 | Me, now or in the future, that are necessarily infringed by making, | ||
198 | using, or selling My Work, and excludes claims that would be infringed | ||
199 | only as a consequence of further modification of My Work. | ||
200 | |||
201 | "Mere Aggregation" means an aggregation of a Covered Work with a | ||
202 | Separate Work. | ||
203 | |||
204 | "My Work" means the particular work of authorship I license to You | ||
205 | under this License. | ||
206 | |||
207 | "Object Code" means any form of a work that is not Source Code. | ||
208 | |||
209 | "OSI-Approved" means approved as 'Open Source' by the Open Source | ||
210 | Initiative. | ||
211 | |||
212 | "Separate Work" means a work that is separate from and independent of a | ||
213 | particular Covered Work and is not by its nature an extension or | ||
214 | enhancement of the Covered Work, and/or a runtime library, standard | ||
215 | library or similar component that is used to generate an Object Code | ||
216 | form of a Covered Work. | ||
217 | |||
218 | "Source Code" means the preferred form of a work for making | ||
219 | modifications to it. | ||
diff --git a/meta-networking/recipes-connectivity/crda/crda-3.13/crda-Add-DESTDIR-support-in-install-libreg-rules-in-.patch b/meta-networking/recipes-connectivity/crda/crda-3.13/crda-Add-DESTDIR-support-in-install-libreg-rules-in-.patch new file mode 100644 index 000000000..36464004d --- /dev/null +++ b/meta-networking/recipes-connectivity/crda/crda-3.13/crda-Add-DESTDIR-support-in-install-libreg-rules-in-.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From: "John W. Linville" <linville@tuxdriver.com> | ||
2 | Date: Fri, 14 Feb 2014 13:58:44 -0500 | ||
3 | Subject: [PATCH] crda: Add DESTDIR support in install-libreg* rules in Makefile | ||
4 | Origin: https://git.kernel.org/?p=linux/kernel/git/mcgrof/crda.git/commit?id=2cabb2588da56735369131b709f191453c080be0 | ||
5 | |||
6 | Upstream-Status: Backport | ||
7 | |||
8 | Signed-off-by: John W. Linville <linville@tuxdriver.com> | ||
9 | Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com> | ||
10 | --- | ||
11 | Makefile | 8 ++++---- | ||
12 | 1 file changed, 4 insertions(+), 4 deletions(-) | ||
13 | |||
14 | diff --git a/Makefile b/Makefile | ||
15 | index 0b2f0d7..1f25509 100644 | ||
16 | --- a/Makefile | ||
17 | +++ b/Makefile | ||
18 | @@ -120,13 +120,13 @@ $(LIBREG): regdb.h reglib.h reglib.c | ||
19 | |||
20 | install-libreg-headers: | ||
21 | $(NQ) ' INSTALL libreg-headers' | ||
22 | - $(Q)mkdir -p $(INCLUDE_DIR) | ||
23 | - $(Q)cp *.h $(INCLUDE_DIR)/ | ||
24 | + $(Q)mkdir -p $(DESTDIR)/$(INCLUDE_DIR) | ||
25 | + $(Q)cp *.h $(DESTDIR)/$(INCLUDE_DIR)/ | ||
26 | |||
27 | install-libreg: | ||
28 | $(NQ) ' INSTALL libreg' | ||
29 | - $(Q)mkdir -p $(LIBDIR) | ||
30 | - $(Q)cp $(LIBREG) $(LIBDIR)/ | ||
31 | + $(Q)mkdir -p $(DESTDIR)/$(LIBDIR) | ||
32 | + $(Q)cp $(LIBREG) $(DESTDIR)/$(LIBDIR)/ | ||
33 | $(Q)ldconfig | ||
34 | |||
35 | %.o: %.c regdb.h $(LIBREG) | ||
diff --git a/meta-networking/recipes-connectivity/crda/crda-3.13/crda-Fix-the-linking-order-to-avoid-compilation-erro.patch b/meta-networking/recipes-connectivity/crda/crda-3.13/crda-Fix-the-linking-order-to-avoid-compilation-erro.patch new file mode 100644 index 000000000..68b4b13e9 --- /dev/null +++ b/meta-networking/recipes-connectivity/crda/crda-3.13/crda-Fix-the-linking-order-to-avoid-compilation-erro.patch | |||
@@ -0,0 +1,51 @@ | |||
1 | From: Krishna Chaitanya <chaitanya.mgit@gmail.com> | ||
2 | Date: Mon, 16 Dec 2013 21:57:39 +0530 | ||
3 | Subject: [PATCH] crda: Fix the linking order to avoid compilation error | ||
4 | Origin: https://git.kernel.org/?p=linux/kernel/git/mcgrof/crda.git/commit?id=fefefdb2c52c8fbedbb339b4badb8226cad7e7e0 | ||
5 | |||
6 | While linking the crda.o and libreg.so, first put crda.o | ||
7 | and then -lreg. This fixed the below error: | ||
8 | |||
9 | GEN keys-gcrypt.c | ||
10 | Trusted pubkeys: pubkeys/linville.key.pub.pem | ||
11 | CC libreg.so | ||
12 | CC crda.o | ||
13 | LD crda | ||
14 | crda.o: In function `main': | ||
15 | crda/crda.c:196: undefined reference to `reglib_get_rd_alpha2' | ||
16 | collect2: ld returned 1 exit status | ||
17 | make: *** [crda] Error 1 | ||
18 | |||
19 | Note: This still doesn't fix the below error (will send another mail) | ||
20 | |||
21 | CHK /usr/lib/crda/regulatory.bin | ||
22 | Database signature verification failed. | ||
23 | Invalid or empty regulatory file, note: a binary regulatory file should be used. | ||
24 | make: *** [verify] Error 234 | ||
25 | |||
26 | Upstream-Status: Backport | ||
27 | |||
28 | Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com> | ||
29 | Signed-off-by: Chaitanya T K <chaitanya.mgit@gmail.com> | ||
30 | --- | ||
31 | Makefile | 5 +++-- | ||
32 | 1 file changed, 3 insertions(+), 2 deletions(-) | ||
33 | |||
34 | diff --git a/Makefile b/Makefile | ||
35 | index 4a351c6..0b2f0d7 100644 | ||
36 | --- a/Makefile | ||
37 | +++ b/Makefile | ||
38 | @@ -28,10 +28,11 @@ RUNTIME_PUBKEY_DIR?=/etc/wireless-regdb/pubkeys | ||
39 | CFLAGS += -O2 -fpic | ||
40 | CFLAGS += -std=gnu99 -Wall -Werror -pedantic | ||
41 | CFLAGS += -Wall -g | ||
42 | -LDLIBS += -lm | ||
43 | LDLIBREG += -lreg | ||
44 | +LDLIBS += $(LDLIBREG) | ||
45 | +LDLIBS += -lm | ||
46 | LIBREG += libreg.so | ||
47 | -LDFLAGS += -L ./ $(LDLIBREG) | ||
48 | +LDFLAGS += -L ./ | ||
49 | |||
50 | all: all_noverify verify | ||
51 | |||
diff --git a/meta-networking/recipes-connectivity/crda/crda-3.13/do-not-run-ldconfig-if-destdir-is-set.patch b/meta-networking/recipes-connectivity/crda/crda-3.13/do-not-run-ldconfig-if-destdir-is-set.patch new file mode 100644 index 000000000..3ef35ee54 --- /dev/null +++ b/meta-networking/recipes-connectivity/crda/crda-3.13/do-not-run-ldconfig-if-destdir-is-set.patch | |||
@@ -0,0 +1,21 @@ | |||
1 | From: Ben Hutchings <ben@decadent.org.uk> | ||
2 | Date: Sat, 23 Aug 2014 12:27:34 -0700 | ||
3 | Subject: crda: Do not run ldconfig if DESTDIR is set | ||
4 | |||
5 | Upstream-Status: Backport [http://www.spinics.net/lists/linux-wireless/msg126028.html] | ||
6 | |||
7 | Signed-off-by: Ben Hutchings <ben@decadent.org.uk> | ||
8 | Signed-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/recipes-connectivity/crda/crda-3.13/fix-linking-of-libraries-used-by-reglib.patch b/meta-networking/recipes-connectivity/crda/crda-3.13/fix-linking-of-libraries-used-by-reglib.patch new file mode 100644 index 000000000..aceb56df7 --- /dev/null +++ b/meta-networking/recipes-connectivity/crda/crda-3.13/fix-linking-of-libraries-used-by-reglib.patch | |||
@@ -0,0 +1,50 @@ | |||
1 | From: Ben Hutchings <ben@decadent.org.uk> | ||
2 | Date: Sat, 23 Aug 2014 12:26:37 -0700 | ||
3 | Subject: Fix linking of libraries used by libreg | ||
4 | |||
5 | The math and crypto libraries are called by and need to be linked to | ||
6 | libreg.so, not to the executables. | ||
7 | |||
8 | Upstream-Status: Backport [http://www.spinics.net/lists/linux-wireless/msg126027.html] | ||
9 | |||
10 | Signed-off-by: Ben Hutchings <ben@decadent.org.uk> | ||
11 | Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com> | ||
12 | |||
13 | --- a/Makefile | ||
14 | +++ b/Makefile | ||
15 | @@ -30,7 +30,7 @@ CFLAGS += -std=gnu99 -Wall -Werror -peda | ||
16 | CFLAGS += -Wall -g | ||
17 | LDLIBREG += -lreg | ||
18 | LDLIBS += $(LDLIBREG) | ||
19 | -LDLIBS += -lm | ||
20 | +LIBREGLDLIBS += -lm | ||
21 | LIBREG += libreg.so | ||
22 | LDFLAGS += -L ./ | ||
23 | |||
24 | @@ -40,7 +40,7 @@ all_noverify: $(LIBREG) crda intersect r | ||
25 | |||
26 | ifeq ($(USE_OPENSSL),1) | ||
27 | CFLAGS += -DUSE_OPENSSL -DPUBKEY_DIR=\"$(RUNTIME_PUBKEY_DIR)\" `pkg-config --cflags openssl` | ||
28 | -LDLIBS += `pkg-config --libs openssl` | ||
29 | +LIBREGLDLIBS += `pkg-config --libs openssl` | ||
30 | |||
31 | ifeq ($(RUNTIME_PUBKEY_ONLY),1) | ||
32 | CFLAGS += -DRUNTIME_PUBKEY_ONLY | ||
33 | @@ -51,7 +51,7 @@ endif | ||
34 | |||
35 | else | ||
36 | CFLAGS += -DUSE_GCRYPT | ||
37 | -LDLIBS += -lgcrypt | ||
38 | +LIBREGLDLIBS += -lgcrypt | ||
39 | |||
40 | $(LIBREG): keys-gcrypt.c | ||
41 | |||
42 | @@ -121,7 +121,7 @@ keys-%.c: utils/key2pub.py $(wildcard $( | ||
43 | |||
44 | $(LIBREG): regdb.h reglib.h reglib.c | ||
45 | $(NQ) ' CC ' $@ | ||
46 | - $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $^ | ||
47 | + $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $^ $(LIBREGLDLIBS) | ||
48 | |||
49 | install-libreg-headers: | ||
50 | $(NQ) ' INSTALL libreg-headers' | ||
diff --git a/meta-networking/recipes-connectivity/crda/crda_1.1.3.bb b/meta-networking/recipes-connectivity/crda/crda_1.1.3.bb deleted file mode 100644 index 0bb899860..000000000 --- a/meta-networking/recipes-connectivity/crda/crda_1.1.3.bb +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | SUMMARY = "Wireless Central Regulatory Domain Agent" | ||
2 | HOMEPAGE = "http://wireless.kernel.org/en/developers/Regulatory/CRDA" | ||
3 | |||
4 | LICENSE = "ISC" | ||
5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=07c4f6dea3845b02a18dc00c8c87699c" | ||
6 | |||
7 | |||
8 | DEPENDS = "python-m2crypto-native python-native libgcrypt libnl" | ||
9 | |||
10 | SRC_URI = "http://wireless.kernel.org/download/crda/${BP}.tar.bz2;name=crda \ | ||
11 | http://wireless.kernel.org/download/wireless-regdb/regulatory.bins/2013.01.11-regulatory.bin;name=bin \ | ||
12 | " | ||
13 | SRC_URI[crda.md5sum] = "29579185e06a75675507527243d28e5c" | ||
14 | SRC_URI[crda.sha256sum] = "aa8a7fe92f0765986c421a5b6768a185375ac210393df0605ee132f6754825f0" | ||
15 | SRC_URI[bin.md5sum] = "e0c8a5ca63fb8bf803213f9a0c90b50b" | ||
16 | SRC_URI[bin.sha256sum] = "b1ee0b20c123c612dfdb6851ab42c01666f66fb583e0e590942f19bb54cf84be" | ||
17 | |||
18 | inherit python-dir pythonnative | ||
19 | # Recursive make problem | ||
20 | EXTRA_OEMAKE = "MAKEFLAGS= DESTDIR=${D}" | ||
21 | |||
22 | do_compile() { | ||
23 | oe_runmake all_noverify | ||
24 | } | ||
25 | |||
26 | do_install() { | ||
27 | oe_runmake SBINDIR=${sbindir}/ install | ||
28 | |||
29 | install -d ${D}${libdir}/crda/ | ||
30 | |||
31 | install -m 0644 ${WORKDIR}/2013.01.11-regulatory.bin ${D}${libdir}/crda/regulatory.bin | ||
32 | } | ||
33 | |||
34 | |||
35 | RDEPENDS_${PN} = "udev" | ||
36 | FILES_${PN} += "${libdir}crda/regulatory.bin \ | ||
37 | ${base_libdir}/udev/rules.d/85-regulatory.rules \ | ||
38 | " | ||
diff --git a/meta-networking/recipes-connectivity/crda/crda_3.13.bb b/meta-networking/recipes-connectivity/crda/crda_3.13.bb new file mode 100644 index 000000000..2ccced42e --- /dev/null +++ b/meta-networking/recipes-connectivity/crda/crda_3.13.bb | |||
@@ -0,0 +1,43 @@ | |||
1 | SUMMARY = "Wireless Central Regulatory Domain Agent" | ||
2 | HOMEPAGE = "http://wireless.kernel.org/en/developers/Regulatory/CRDA" | ||
3 | |||
4 | LICENSE = "copyleft-next-0.3.0 & ISC" | ||
5 | LIC_FILES_CHKSUM = "file://copyleft-next-0.3.0;md5=8743a2c359037d4d329a31e79eabeffe \ | ||
6 | file://${WORKDIR}/wireless-regdb-2014.11.18/LICENSE;md5=07c4f6dea3845b02a18dc00c8c87699c" | ||
7 | |||
8 | DEPENDS = "python-m2crypto-native python-native" | ||
9 | |||
10 | SRC_URI = "https://www.kernel.org/pub/software/network/crda/${BP}.tar.xz;name=crda \ | ||
11 | https://www.kernel.org/pub/software/network/wireless-regdb/wireless-regdb-2014.11.18.tar.xz;name=bin \ | ||
12 | file://crda-Fix-the-linking-order-to-avoid-compilation-erro.patch \ | ||
13 | file://crda-Add-DESTDIR-support-in-install-libreg-rules-in-.patch \ | ||
14 | file://do-not-run-ldconfig-if-destdir-is-set.patch \ | ||
15 | file://fix-linking-of-libraries-used-by-reglib.patch \ | ||
16 | " | ||
17 | SRC_URI[crda.md5sum] = "66b1b0417c1ad19f0009a5c0c0c1aebc" | ||
18 | SRC_URI[crda.sha256sum] = "2f85da7ab0170b140d6ed62596c8f268d4a7dedecf84cac7182ada979742ff59" | ||
19 | |||
20 | SRC_URI[bin.md5sum] = "d750c402c5510add7380edcb1d9b75b2" | ||
21 | SRC_URI[bin.sha256sum] = "eab6b50f30748a8b0065ba38cf3df05aac161a5861ae0a6c3cfd01d38a71c9dd" | ||
22 | |||
23 | inherit python-dir pythonnative | ||
24 | # Recursive make problem | ||
25 | EXTRA_OEMAKE = "MAKEFLAGS= DESTDIR=${D} LIBDIR=${libdir}/crda LDLIBREG='-Wl,-rpath,${libdir}/crda -lreg'" | ||
26 | |||
27 | do_compile() { | ||
28 | oe_runmake all_noverify | ||
29 | } | ||
30 | |||
31 | do_install() { | ||
32 | oe_runmake SBINDIR=${sbindir}/ install | ||
33 | |||
34 | install -d ${D}${libdir}/crda/ | ||
35 | |||
36 | install -m 0644 ${WORKDIR}/wireless-regdb-2014.11.18/regulatory.bin ${D}${libdir}/crda/regulatory.bin | ||
37 | } | ||
38 | |||
39 | |||
40 | RDEPENDS_${PN} = "udev libgcrypt libnl" | ||
41 | FILES_${PN} += "${libdir}crda/regulatory.bin \ | ||
42 | ${base_libdir}/udev/rules.d/85-regulatory.rules \ | ||
43 | " | ||