Trying to build u-boot using cross-compilation:
uboot = pkgs.pkgsCross.armv7l-hf-multiplatform.buildUBoot {
defconfig = "xilinx_zynq_virt_defconfig";
preConfigure = ''
export DEVICE_TREE="zynq-zc706"
'';
extraMeta.platforms = ["armv7l-linux"];
filesToInstall = ["u-boot.bin" "u-boot.img" "u-boot.elf"];
};
But I’m getting this error. Can somebody help?
error: builder for '/nix/store/lxc5b0fh526biylkpixp2bq6vhx5950a-uboot-xilinx_zynq_virt_defconfig-armv7l-unknown-linux-gnueabihf-2023.01.drv' failed with exit code 2;
last 10 log lines:
> HOSTCC tools/mkeficapsule
> HOSTCC tools/env/embedded.o
> HOSTCC tools/lib/crc8.o
> tools/mkeficapsule.c:18:10: fatal error: uuid/uuid.h: No such file or directory
> 18 | #include <uuid/uuid.h>
> | ^~~~~~~~~~~~~
> compilation terminated.
> make[1]: *** [scripts/Makefile.host:95: tools/mkeficapsule] Error 1
> make[1]: *** Waiting for unfinished jobs....
> make: *** [Makefile:1871: tools] Error 2
For full logs, run 'nix log /nix/store/lxc5b0fh526biylkpixp2bq6vhx5950a-uboot-xilinx_zynq_virt_defconfig-armv7l-unknown-linux-gnueabihf-2023.01.drv'.
What I tried already:
- add
util-linux
to buildInputs
- add
libuuid
to buildInputs
- set
crossTools = true
Fixed by latest this latest patch: