mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-07 18:38:44 +08:00
librem/5r4/u-boot: update and use newer compiler
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
{
|
||||
stdenv,
|
||||
gcc11Stdenv,
|
||||
buildUBoot,
|
||||
fetchurl,
|
||||
fetchFromGitLab,
|
||||
@@ -28,7 +27,7 @@ let
|
||||
meta.license = lib.licenses.unfree;
|
||||
});
|
||||
|
||||
arm-trusted-firmware-imx8mq = gcc11Stdenv.mkDerivation (_fa: {
|
||||
arm-trusted-firmware-imx8mq = stdenv.mkDerivation (_fa: {
|
||||
pname = "arm-trusted-firmware-bl31";
|
||||
version = "unstable-2020-07-08";
|
||||
src = fetchFromGitLab {
|
||||
@@ -40,6 +39,7 @@ let
|
||||
};
|
||||
enableParallelBuilding = true;
|
||||
hardeningDisable = [ "all" ];
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error=array-bounds";
|
||||
NIX_LDFLAGS = "--no-warn-rwx-segments";
|
||||
buildFlags = [
|
||||
"PLAT=imx8mq"
|
||||
@@ -53,14 +53,14 @@ let
|
||||
});
|
||||
|
||||
ubootLibrem5 = buildUBoot {
|
||||
version = "unstable-2022-12-15";
|
||||
version = "unstable-2025-03-25";
|
||||
defconfig = "librem5_defconfig";
|
||||
src = fetchFromGitLab {
|
||||
domain = "source.puri.sm";
|
||||
owner = "Librem5";
|
||||
repo = "uboot-imx";
|
||||
rev = "956aa590c93977992743b41c45d3c7ee5a024915"; # this is the latest commit on the upstream/librem5 branch
|
||||
hash = "sha256-MsIIlarN+WFFEzc0ptLAgS7BwJ6Cosy42xo0EwPn1AU=";
|
||||
rev = "72fcd4ee36e0874daac734c1195263cd9ce9d981"; # this is the latest commit on the upstream/librem5 branch
|
||||
hash = "sha256-ymqZPuyyZoFTaCMQIJnuNs1fV0uVwJhyQdnGwv9m9lE=";
|
||||
};
|
||||
patches = [ ];
|
||||
BL31 = "${arm-trusted-firmware-imx8mq}/bl31.bin";
|
||||
|
||||
Reference in New Issue
Block a user