Merge master into staging-next
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
{ stdenv, fetchgit, autoreconfHook, pkgconfig, fuse, libuuid, lz4 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "erofs-utils";
|
||||
version = "1.2";
|
||||
outputs = [ "out" "man" ];
|
||||
|
||||
src = fetchgit {
|
||||
url =
|
||||
"https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git";
|
||||
rev = "v" + version;
|
||||
sha256 = "07hvijq2hsn3gg1kb8abrfk23n83j57yx8kyv4wqgwhhvd30myjc";
|
||||
};
|
||||
|
||||
buildInputs = [ autoreconfHook pkgconfig fuse libuuid lz4 ];
|
||||
|
||||
configureFlags = [ "--enable-fuse" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Userspace utilities for linux-erofs file system";
|
||||
license = with licenses; [ gpl2 ];
|
||||
maintainers = with maintainers; [ ehmry ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
{ stdenv, fetchFromGitHub, cmake, pkgconfig }:
|
||||
|
||||
let
|
||||
inherit (stdenv.lib) optionals;
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
pname = "raspberrypi-armstubs";
|
||||
version = "2020-10-08";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "raspberrypi";
|
||||
repo = "tools";
|
||||
rev = "fc0e73c13865450e95edd046200e42a6e52d8256";
|
||||
sha256 = "1g6ikpjcrm5x0rk5aiwjdd8grf997qkvgamcrdxy6k9ln746h25s";
|
||||
};
|
||||
|
||||
NIX_CFLAGS_COMPILE = [
|
||||
"-march=armv8-a+crc"
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
cd armstubs
|
||||
'';
|
||||
|
||||
makeFlags = [
|
||||
"CC8=${stdenv.cc.targetPrefix}cc"
|
||||
"LD8=${stdenv.cc.targetPrefix}ld"
|
||||
"OBJCOPY8=${stdenv.cc.targetPrefix}objcopy"
|
||||
"OBJDUMP8=${stdenv.cc.targetPrefix}objdump"
|
||||
"CC=${stdenv.cc.targetPrefix}cc"
|
||||
"LD=${stdenv.cc.targetPrefix}ld"
|
||||
"OBJCOPY=${stdenv.cc.targetPrefix}objcopy"
|
||||
"OBJDUMP=${stdenv.cc.targetPrefix}objdump"
|
||||
]
|
||||
++ optionals (stdenv.isAarch64) [ "armstub8.bin" "armstub8-gic.bin" ]
|
||||
++ optionals (stdenv.isAarch32) [ "armstub7.bin" "armstub8-32.bin" "armstub8-32-gic.bin" ]
|
||||
;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -vp $out/
|
||||
cp -v *.bin $out/
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Firmware related ARM stubs for the Raspberry Pi";
|
||||
homepage = https://github.com/raspberrypi/tools;
|
||||
license = licenses.bsd3;
|
||||
platforms = [ "armv6l-linux" "armv7l-linux" "aarch64-linux" ];
|
||||
maintainers = with maintainers; [ samueldr ];
|
||||
};
|
||||
}
|
||||
@@ -819,6 +819,12 @@ let
|
||||
|
||||
# See comments on https://github.com/NixOS/nixpkgs/commit/9b67ea9106102d882f53d62890468071900b9647
|
||||
CRYPTO_AEGIS128_SIMD = whenAtLeast "5.4" no;
|
||||
|
||||
# Distros should configure the default as a kernel option.
|
||||
# We previously defined it on the kernel command line as cma=
|
||||
# The kernel command line will override a platform-specific configuration from its device tree.
|
||||
# https://github.com/torvalds/linux/blob/856deb866d16e29bd65952e0289066f6078af773/kernel/dma/contiguous.c#L35-L44
|
||||
CMA_SIZE_MBYTES = freeform "32";
|
||||
};
|
||||
};
|
||||
in
|
||||
|
||||
Reference in New Issue
Block a user