[Buildroot] [git commit branch/2019.02.x] package/nodejs: properly pass the --with-arm-float-abi on ARM

Peter Korsgaard peter at korsgaard.com
Tue Dec 3 14:00:30 UTC 2019

commit: https://git.buildroot.net/buildroot/commit/?id=7a3726e805f9c800cb53f90f86b3d74d5204f644
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2019.02.x

When commit 0064132ba032da39cefa4fffe59c31a71d1f1ddb introduced ARM64
support in nodejs.mk, it incorrectly kept the NODEJS_ARM_FP
definition. This variable is used to pass --with-arm-float-abi, which
in NodeJS's configure.py script is only used when --dest-cpu=arm, and
not when --dest-cpu=arm64.

So we are passing --with-arm-float-abi=<something> for ARM64, which
has no effect, and we are no longer passing it on ARM.

This commit fixes that by putting the NODEJS_ARM_FP definition back at
the right location.



Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
(cherry picked from commit 78c8d6902ddb17e7a9ae3eafdecec34ff5e20914)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
 package/nodejs/nodejs.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/nodejs/nodejs.mk b/package/nodejs/nodejs.mk
index 2cc8ecc829..b0d5c49dae 100644
--- a/package/nodejs/nodejs.mk
+++ b/package/nodejs/nodejs.mk
@@ -94,10 +94,10 @@ else ifeq ($(BR2_mipsel),y)
 NODEJS_CPU = mipsel
 else ifeq ($(BR2_arm),y)
-else ifeq ($(BR2_aarch64),y)
-NODEJS_CPU = arm64
 # V8 needs to know what floating point ABI the target is using.
+else ifeq ($(BR2_aarch64),y)
+NODEJS_CPU = arm64
 # MIPS architecture specific options

More information about the buildroot mailing list