2024-01-17 18:22:30 +01:00
|
|
|
|
final: prev:
|
|
|
|
|
|
|
|
|
|
# Changes to packages from nixpkgs
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
opensbi = prev.opensbi.overrideAttrs (old: {
|
|
|
|
|
makeFlags = old.makeFlags ++ [
|
|
|
|
|
# Build OpenSBI without compressed instructions
|
|
|
|
|
"PLATFORM_RISCV_ISA=rv64gv"
|
|
|
|
|
# Check with: riscv64-unknown-elf-objdump -d -M no-aliases rotate
|
|
|
|
|
];
|
|
|
|
|
});
|
2024-01-18 14:13:22 +01:00
|
|
|
|
|
|
|
|
|
# Fix GCC 13 format-overflow warning/error:
|
|
|
|
|
# ../src/shared/install.c:444:64: error: ‘%s’ directive argument is null [-Werror=format-overflow=]
|
|
|
|
|
# 444 | err = log_error_errno(changes[i].type, "Failed to %s unit, unit %s does not exist.",
|
|
|
|
|
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
systemd = prev.systemd.overrideAttrs (old: {
|
|
|
|
|
CFLAGS = "-Wno-error=format-overflow";
|
|
|
|
|
});
|
2024-01-18 15:59:51 +01:00
|
|
|
|
|
|
|
|
|
qemu = prev.qemu.override { rutabagaSupport = false; };
|
2024-01-17 18:22:30 +01:00
|
|
|
|
}
|