@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, bc, dtc, python2
1+{ stdenv, fetchurl, fetchpatch, bc, dtc, python2
22, hostPlatform
33}:
44
@@ -12,21 +12,38 @@ let
1212 stdenv.mkDerivation (rec {
1313
1414 name = "uboot-${defconfig}-${version}";
15− version = "2017.03";
15+ version = "2017.11";
1616
1717 src = fetchurl {
1818 url = "ftp://ftp.denx.de/pub/u-boot/u-boot-${version}.tar.bz2";
19− sha256 = "0gqihplap05dlpwdb971wsqyv01nz2vabwq5g5649gr5jczsyjzm";
19+ sha256 = "01bcsah5imy6m3fbjwhqywxg0pfk5fl8ks9ylb7kv3zmrb9qy0ba";
2020 };
2121
22− nativeBuildInputs = [ bc dtc python2 ];
23−
24− hardeningDisable = [ "all" ];
22+ patches = [
23+ (fetchpatch {
24+ url = https://github.com/dezgeg/u-boot/commit/rpi-2017-11-patch1.patch;
25+ sha256 = "067yq55vv1slv4xy346px7h329pi14abdn04chg6s1s6hmf6c1x9";
26+ })
27+ (fetchpatch {
28+ url = https://github.com/dezgeg/u-boot/commit/rpi-2017-11-patch2.patch;
29+ sha256 = "0bbw0q027xvzvdxxvpzjajg4rm30a8mb7z74b6ma9q0l7y7bi0c4";
30+ })
31+ (fetchpatch {
32+ url = https://github.com/dezgeg/u-boot/commit/pythonpath-2017-11.patch;
33+ sha256 = "162b2lglp307pzxsf9m7nnmzwxqd7xkwp5j85bm6bg1a38ngpl9v";
34+ })
35+ ];
2536
2637 postPatch = ''
2738 patchShebangs tools
2839 '';
2940
41+ nativeBuildInputs = [ bc dtc python2 ];
42+
43+ hardeningDisable = [ "all" ];
44+
45+ makeFlags = [ "DTC=dtc" ];
46+
3047 configurePhase = ''
3148 make ${defconfig}
3249 '';