Build packages without compressed instructions

This commit is contained in:
Rodrigo Arias 2024-01-19 16:35:45 +01:00
parent 98d04ee398
commit 635935cd09

View File

@ -31,6 +31,12 @@ final: prev:
filesToInstall = ["u-boot.bin" "u-boot"];
};
# To cross compile for riscv64, we need to populate this env variable, not
# NIX_CFLAGS_COMPILE, otherwise we affect the packages for x86.
stdenv = prev.stdenvAdapters.addAttrsToDerivation {
NIX_CFLAGS_COMPILE_riscv64_unknown_linux_gnu = "-march=rv64g";
} prev.stdenv;
opensbi-uboot = prev.opensbi.overrideAttrs (old: {
makeFlags = old.makeFlags ++ [
# Build OpenSBI without compressed instructions