Skip to content

Commit 6f45fe5

Browse files
committed
fix u-boot build
1 parent 7b91240 commit 6f45fe5

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

flake.nix

+9-4
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,19 @@
3838
"CROSS_COMPILE=${super.stdenv.cc.targetPrefix}"
3939
"OPENSBI=${self.opensbi}/share/opensbi/lp64/generic/firmware/fw_dynamic.bin"
4040
];
41-
}).overrideAttrs (super: {
42-
nativeBuildInputs = super.nativeBuildInputs ++ [
41+
}).overrideAttrs (prevAttrs: {
42+
nativeBuildInputs = prevAttrs.nativeBuildInputs ++ [
4343
self.buildPackages.spl-tool
4444
];
45-
patches = [ ];
45+
patches = [
46+
(super.fetchpatch {
47+
url = "https://raw.githubusercontent.com/1715173329/openwrt-official/4e68103c4eb93d3f9b9359742c3c377ee2844943/package/boot/uboot-rockchip/patches/002-scripts-dtc-pylibfdt-libfdt-i_shipped-Use-SWIG_AppendOutp.patch";
48+
hash = "sha256-N97cXu2XmCdoA6sSAbBM9s/1GcUMZfgP7iOMaYydcPo=";
49+
})
50+
];
4651
installPhase = ''
4752
spl_tool -c -f spl/u-boot-spl.bin
48-
${super.installPhase}
53+
${prevAttrs.installPhase}
4954
'';
5055
});
5156

0 commit comments

Comments
 (0)