mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-02 02:03:21 +00:00
nodejs: allow building for vfpv2
This commit is contained in:
parent
d162d8e50d
commit
3cf3f6ae23
15
pkgs/development/web/nodejs/configure-armv6-vfpv2.patch
Normal file
15
pkgs/development/web/nodejs/configure-armv6-vfpv2.patch
Normal file
@ -0,0 +1,15 @@
|
||||
Allows ARM FPU to be set to vfpv2, e.g. for Raspberry Pi.
|
||||
|
||||
See https://github.com/nodejs/node/issues/44357#issuecomment-1235821878
|
||||
|
||||
--- a/configure.py
|
||||
+++ b/configure.py
|
||||
@@ -50,7 +50,7 @@
|
||||
valid_arch = ('arm', 'arm64', 'ia32', 'mips', 'mipsel', 'mips64el', 'ppc',
|
||||
'ppc64', 'x64', 'x86', 'x86_64', 's390x', 'riscv64', 'loong64')
|
||||
valid_arm_float_abi = ('soft', 'softfp', 'hard')
|
||||
-valid_arm_fpu = ('vfp', 'vfpv3', 'vfpv3-d16', 'neon')
|
||||
+valid_arm_fpu = ('vfp', 'vfpv2', 'vfpv3', 'vfpv3-d16', 'neon')
|
||||
valid_mips_arch = ('loongson', 'r1', 'r2', 'r6', 'rx')
|
||||
valid_mips_fpu = ('fp32', 'fp64', 'fpxx')
|
||||
valid_mips_float_abi = ('soft', 'hard')
|
@ -75,6 +75,7 @@ let
|
||||
if platform.isAarch32 && platform ? gcc.fpu then
|
||||
lib.throwIfNot (builtins.elem platform.gcc.fpu [
|
||||
"vfp"
|
||||
"vfpv2"
|
||||
"vfpv3"
|
||||
"vfpv3-d16"
|
||||
"neon"
|
||||
|
@ -27,6 +27,7 @@ buildNodejs {
|
||||
sha256 = "sha256-p2x+oblq62ljoViAYmDICUtiRNZKaWUp0CBUe5qVyio=";
|
||||
patches = [
|
||||
./configure-emulator-node18.patch
|
||||
./configure-armv6-vfpv2.patch
|
||||
./disable-darwin-v8-system-instrumentation.patch
|
||||
./bypass-darwin-xcrun-node16.patch
|
||||
./revert-arm64-pointer-auth.patch
|
||||
|
@ -16,6 +16,7 @@ buildNodejs {
|
||||
sha256 = "sha256-/dU6VynZNmkaKhFRBG+0iXchy4sPyir5V4I6m0D+DDQ=";
|
||||
patches = [
|
||||
./configure-emulator.patch
|
||||
./configure-armv6-vfpv2.patch
|
||||
./disable-darwin-v8-system-instrumentation-node19.patch
|
||||
./bypass-darwin-xcrun-node16.patch
|
||||
./node-npm-build-npm-package-logic.patch
|
||||
|
@ -16,6 +16,7 @@ buildNodejs {
|
||||
sha256 = "sha256-ZfyFf1qoJWqvyQCzRMARXJrq4loCVB/Vzg29Tf0cX7k=";
|
||||
patches = [
|
||||
./configure-emulator.patch
|
||||
./configure-armv6-vfpv2.patch
|
||||
./disable-darwin-v8-system-instrumentation-node19.patch
|
||||
./bypass-darwin-xcrun-node16.patch
|
||||
./node-npm-build-npm-package-logic.patch
|
||||
|
Loading…
Reference in New Issue
Block a user