From 9ae6726db996e2ae15c58003ee28e5d0b3c07964 Mon Sep 17 00:00:00 2001 From: Ivan Trubach Date: Wed, 17 Jul 2024 04:23:12 +0300 Subject: [PATCH] lib/systems: set gcc.arch = "armv6kz", gcc.fpu = "vfpv2" for raspberryPi >The CPU in the Raspberry Pi 1 and Zero implements the ARMv6 ISA (with VFP2) https://wiki.debian.org/RaspberryPi#:~:text=The%20CPU%20in%20the%20Raspberry%20Pi,VFP2%29 See also - https://en.wikipedia.org/wiki/Raspberry_Pi#Specifications - https://github.com/NixOS/nixpkgs/issues/319036#issuecomment-2232108373 --- lib/systems/platforms.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/systems/platforms.nix b/lib/systems/platforms.nix index 403ffc028f0b..873c3c7fc7f5 100644 --- a/lib/systems/platforms.nix +++ b/lib/systems/platforms.nix @@ -201,8 +201,9 @@ rec { target = "zImage"; }; gcc = { - arch = "armv6"; - fpu = "vfp"; + # https://en.wikipedia.org/wiki/Raspberry_Pi#Specifications + arch = "armv6kz"; + fpu = "vfpv2"; }; };