diff options
Diffstat (limited to 'meta-networking/recipes-connectivity/crda/crda-3.13')
4 files changed, 157 insertions, 0 deletions
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 0000000000..36464004dc --- /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 0000000000..68b4b13e90 --- /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 0000000000..3ef35ee549 --- /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 0000000000..aceb56df74 --- /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' | ||
