On 05/15/2014 10:11 AM, Vicente Olivert Riera wrote:
We usually do cross compiles by creating a cross target .mk file
(MIPS_CROSS.mk for instance). You can include linux.mk and explicitly
set the CPU_ARCH inside there. (see android.mk).
bob
Ok, I will have a look at it.
Hi Robert,
I have written a patch to set the target architecture by passing the
CROSS_ARCH variable to the make command, like this:
make CROSS_ARCH=mips64
So the patch is as follows:
################## BEGIN PATCH ####################
diff -rNup a/mozilla/security/coreconf/cross_arch.mk
b/mozilla/security/coreconf/cross_arch.mk
--- a/mozilla/security/coreconf/cross_arch.mk 1970-01-01
01:00:00.000000000 +0100
+++ b/mozilla/security/coreconf/cross_arch.mk 2014-05-15
10:19:10.790494268 +0100
@@ -0,0 +1,10 @@
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+include $(CORE_DEPTH)/coreconf/Linux.mk
+
+ifdef ($(CROSS_ARCH))
+ CPU_ARCH = $(CROSS_ARCH)
+endif
################### END PATCH #####################
Do you think this patch could get upstream too?
--
Vincent
--
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto