diff options
| author | Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | 2022-11-24 15:51:56 +0300 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-11-25 18:11:10 -0800 |
| commit | da1ff7a5ae6bbabdb74a01a043a7f5e8563c1ff1 (patch) | |
| tree | 568b255466477838b76f7dce2d23c1068a0c3cbb | |
| parent | bad3c42978c9752e0402b66d4f2a9d1b223c6b3c (diff) | |
| download | meta-openembedded-da1ff7a5ae6bbabdb74a01a043a7f5e8563c1ff1.tar.gz | |
nss: fix cross-compilation error
Change OS_TEST to be soft assignment so that the cross-compilation
doens't fail with the errors like (note the difference in CPU tags):
| make[4]: *** No rule to make target
'../certhigh/Linux3.4_x86_64_glibc_PTH_64_OPT.OBJ/certhtml.o', needed by
'Linux3.4_aarch64_glibc_PTH_64_OPT.OBJ/libnss3.so'. Stop.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-support/nss/nss/0001-nss-fix-support-cross-compiling.patch | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/nss/nss/0001-nss-fix-support-cross-compiling.patch b/meta-oe/recipes-support/nss/nss/0001-nss-fix-support-cross-compiling.patch index eb6174a7b0..950fae667a 100644 --- a/meta-oe/recipes-support/nss/nss/0001-nss-fix-support-cross-compiling.patch +++ b/meta-oe/recipes-support/nss/nss/0001-nss-fix-support-cross-compiling.patch | |||
| @@ -18,7 +18,12 @@ diff --git a/nss/coreconf/arch.mk b/nss/coreconf/arch.mk | |||
| 18 | index 2012d18..78fca62 100644 | 18 | index 2012d18..78fca62 100644 |
| 19 | --- a/nss/coreconf/arch.mk | 19 | --- a/nss/coreconf/arch.mk |
| 20 | +++ b/nss/coreconf/arch.mk | 20 | +++ b/nss/coreconf/arch.mk |
| 21 | @@ -30,7 +30,7 @@ OS_TEST := $(shell uname -m) | 21 | @@ -26,11 +26,11 @@ OS_ARCH := $(subst /,_,$(shell uname -s) |
| 22 | # Attempt to differentiate between sparc and x86 Solaris | ||
| 23 | # | ||
| 24 | |||
| 25 | -OS_TEST := $(shell uname -m) | ||
| 26 | +OS_TEST ?= $(shell uname -m) | ||
| 22 | ifeq ($(OS_TEST),i86pc) | 27 | ifeq ($(OS_TEST),i86pc) |
| 23 | OS_RELEASE := $(shell uname -r)_$(OS_TEST) | 28 | OS_RELEASE := $(shell uname -r)_$(OS_TEST) |
| 24 | else | 29 | else |
