Skip to content

Commit

Permalink
uboot: build failure with older versions
Browse files Browse the repository at this point in the history
- fix for build failure with version older than v2023.07

Signed-off-by: Ganga Ram <[email protected]>
  • Loading branch information
gngram authored and Mic92 committed May 14, 2024
1 parent 26a6233 commit ffb92fa
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions pkgs/misc/uboot/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ let

src = if src == null then defaultSrc else src;

patches = [
./0001-configs-rpi-allow-for-bigger-kernels.patch
] ++ extraPatches;
patches = extraPatches;

postPatch = ''
${lib.concatMapStrings (script: ''
Expand Down Expand Up @@ -492,42 +490,63 @@ in {
};

ubootRaspberryPi = buildUBoot {
extraPatches = [
./0001-configs-rpi-allow-for-bigger-kernels.patch
];
defconfig = "rpi_defconfig";
extraMeta.platforms = ["armv6l-linux"];
filesToInstall = ["u-boot.bin"];
};

ubootRaspberryPi2 = buildUBoot {
extraPatches = [
./0001-configs-rpi-allow-for-bigger-kernels.patch
];
defconfig = "rpi_2_defconfig";
extraMeta.platforms = ["armv7l-linux"];
filesToInstall = ["u-boot.bin"];
};

ubootRaspberryPi3_32bit = buildUBoot {
extraPatches = [
./0001-configs-rpi-allow-for-bigger-kernels.patch
];
defconfig = "rpi_3_32b_defconfig";
extraMeta.platforms = ["armv7l-linux"];
filesToInstall = ["u-boot.bin"];
};

ubootRaspberryPi3_64bit = buildUBoot {
extraPatches = [
./0001-configs-rpi-allow-for-bigger-kernels.patch
];
defconfig = "rpi_3_defconfig";
extraMeta.platforms = ["aarch64-linux"];
filesToInstall = ["u-boot.bin"];
};

ubootRaspberryPi4_32bit = buildUBoot {
extraPatches = [
./0001-configs-rpi-allow-for-bigger-kernels.patch
];
defconfig = "rpi_4_32b_defconfig";
extraMeta.platforms = ["armv7l-linux"];
filesToInstall = ["u-boot.bin"];
};

ubootRaspberryPi4_64bit = buildUBoot {
extraPatches = [
./0001-configs-rpi-allow-for-bigger-kernels.patch
];
defconfig = "rpi_4_defconfig";
extraMeta.platforms = ["aarch64-linux"];
filesToInstall = ["u-boot.bin"];
};

ubootRaspberryPiZero = buildUBoot {
extraPatches = [
./0001-configs-rpi-allow-for-bigger-kernels.patch
];
defconfig = "rpi_0_w_defconfig";
extraMeta.platforms = ["armv6l-linux"];
filesToInstall = ["u-boot.bin"];
Expand Down

0 comments on commit ffb92fa

Please sign in to comment.