diff options
Diffstat (limited to 'meta/recipes-support/nss/nss/0001-nss-fix-support-cross-compiling.patch')
-rw-r--r-- | meta/recipes-support/nss/nss/0001-nss-fix-support-cross-compiling.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/meta/recipes-support/nss/nss/0001-nss-fix-support-cross-compiling.patch b/meta/recipes-support/nss/nss/0001-nss-fix-support-cross-compiling.patch new file mode 100644 index 0000000000..d5403397e7 --- /dev/null +++ b/meta/recipes-support/nss/nss/0001-nss-fix-support-cross-compiling.patch | |||
@@ -0,0 +1,48 @@ | |||
1 | From 0cf47ee432cc26a706864fcc09b2c3adc342a679 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Wed, 22 Feb 2017 11:36:11 +0200 | ||
4 | Subject: [PATCH] nss: fix support cross compiling | ||
5 | |||
6 | Let some make variables be assigned from outside makefile. | ||
7 | |||
8 | Upstream-Status: Inappropriate [configuration] | ||
9 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
10 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
11 | --- | ||
12 | nss/coreconf/arch.mk | 2 +- | ||
13 | nss/lib/freebl/Makefile | 6 ++++++ | ||
14 | 2 files changed, 7 insertions(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/nss/coreconf/arch.mk b/nss/coreconf/arch.mk | ||
17 | index 06c276f..9c1eb51 100644 | ||
18 | --- a/nss/coreconf/arch.mk | ||
19 | +++ b/nss/coreconf/arch.mk | ||
20 | @@ -30,7 +30,7 @@ OS_TEST := $(shell uname -m) | ||
21 | ifeq ($(OS_TEST),i86pc) | ||
22 | OS_RELEASE := $(shell uname -r)_$(OS_TEST) | ||
23 | else | ||
24 | - OS_RELEASE := $(shell uname -r) | ||
25 | + OS_RELEASE ?= $(shell uname -r) | ||
26 | endif | ||
27 | |||
28 | # | ||
29 | diff --git a/nss/lib/freebl/Makefile b/nss/lib/freebl/Makefile | ||
30 | index 0ce1425..ebeb411 100644 | ||
31 | --- a/nss/lib/freebl/Makefile | ||
32 | +++ b/nss/lib/freebl/Makefile | ||
33 | @@ -36,6 +36,12 @@ ifdef USE_64 | ||
34 | DEFINES += -DNSS_USE_64 | ||
35 | endif | ||
36 | |||
37 | +ifeq ($(OS_TEST),mips) | ||
38 | +ifndef USE_64 | ||
39 | + DEFINES += -DNS_PTR_LE_32 | ||
40 | +endif | ||
41 | +endif | ||
42 | + | ||
43 | ifdef USE_ABI32_FPU | ||
44 | DEFINES += -DNSS_USE_ABI32_FPU | ||
45 | endif | ||
46 | -- | ||
47 | 2.11.0 | ||
48 | |||