U-Boot: Add SOPINE Baseboard build
This build is compatible with PINE A64-LTS. [dezgeg changed the original device tree patch to v4 of the patch series "sunxi: sync H3, H5, A64 DTs from mainline Linux" submitted to the upstream mailing list by Andre Przywara. Also install the u-boot-sunxi-with-spl.bin binary similar to 32-bit boards since it's now being built by the upstream build system.] (cherry picked from commit 2ff31f71ae1f10b3d1779b876ac94bf2a9998bd9) (cherry picked from commit 176d151f4d98d54adf293ee58427da649f28452c)
This commit is contained in:
parent
7dffe0d38c
commit
566d3feb4e
@ -1,11 +1,20 @@
|
|||||||
{ stdenv, fetchurl, fetchpatch, bc, dtc, openssl, python2, swig
|
{ stdenv, fetchurl, fetchpatch, bc, dtc, openssl, python2, swig
|
||||||
|
, armTrustedFirmwareAllwinner
|
||||||
, hostPlatform, buildPackages
|
, hostPlatform, buildPackages
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
# Various changes for 64-bit sunxi boards, (hopefully) destined for 2018.05
|
||||||
|
sunxiPatch = fetchpatch {
|
||||||
|
name = "sunxi.patch";
|
||||||
|
url = "https://github.com/u-boot/u-boot/compare/v2018.03...dezgeg:2018-03-sunxi.patch";
|
||||||
|
sha256 = "1pqn7c6c06hfygwpcgaraqvqxcjhz99j0rx5psfhj8igy0qvk2dq";
|
||||||
|
};
|
||||||
|
|
||||||
buildUBoot = { filesToInstall
|
buildUBoot = { filesToInstall
|
||||||
, installDir ? "$out"
|
, installDir ? "$out"
|
||||||
, defconfig
|
, defconfig
|
||||||
|
, extraPatches ? []
|
||||||
, extraMakeFlags ? []
|
, extraMakeFlags ? []
|
||||||
, extraMeta ? {}
|
, extraMeta ? {}
|
||||||
, ... } @ args:
|
, ... } @ args:
|
||||||
@ -36,7 +45,7 @@ let
|
|||||||
url = https://github.com/dezgeg/u-boot/commit/extlinux-path-length-2018-03.patch;
|
url = https://github.com/dezgeg/u-boot/commit/extlinux-path-length-2018-03.patch;
|
||||||
sha256 = "07jafdnxvqv8lz256qy29agjc2k1zj5ad4k28r1w5qkhwj4ixmf8";
|
sha256 = "07jafdnxvqv8lz256qy29agjc2k1zj5ad4k28r1w5qkhwj4ixmf8";
|
||||||
})
|
})
|
||||||
];
|
] ++ extraPatches;
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
patchShebangs tools
|
patchShebangs tools
|
||||||
@ -200,6 +209,14 @@ in rec {
|
|||||||
filesToInstall = ["u-boot.bin"];
|
filesToInstall = ["u-boot.bin"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ubootSopine = buildUBoot rec {
|
||||||
|
extraPatches = [sunxiPatch];
|
||||||
|
defconfig = "sopine_baseboard_defconfig";
|
||||||
|
extraMeta.platforms = ["aarch64-linux"];
|
||||||
|
BL31 = "${armTrustedFirmwareAllwinner}/bl31.bin";
|
||||||
|
filesToInstall = ["u-boot-sunxi-with-spl.bin"];
|
||||||
|
};
|
||||||
|
|
||||||
ubootUtilite = buildUBoot rec {
|
ubootUtilite = buildUBoot rec {
|
||||||
defconfig = "cm_fx6_defconfig";
|
defconfig = "cm_fx6_defconfig";
|
||||||
extraMeta.platforms = ["armv7l-linux"];
|
extraMeta.platforms = ["armv7l-linux"];
|
||||||
|
@ -13809,6 +13809,7 @@ with pkgs;
|
|||||||
ubootRaspberryPi3_32bit
|
ubootRaspberryPi3_32bit
|
||||||
ubootRaspberryPi3_64bit
|
ubootRaspberryPi3_64bit
|
||||||
ubootSheevaplug
|
ubootSheevaplug
|
||||||
|
ubootSopine
|
||||||
ubootUtilite
|
ubootUtilite
|
||||||
ubootWandboard
|
ubootWandboard
|
||||||
;
|
;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user