liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit f08c10c8ba1a4de32d72777e6e4f05d7e828802c
parent d25a804f13963964dc7eb3ea8cedd4cfc7c9fd33
Author: Daniel Barlow <dan@telent.net>
Date:   Mon,  4 Dec 2023 23:39:27 +0000

patch u-boot to add ubifs support

not that we're using it yet

Diffstat:
Moverlay.nix | 13+++++++++++++
Apkgs/u-boot/0001-add-ubifs-to-boot-targets.patch | 12++++++++++++
2 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/overlay.nix b/overlay.nix @@ -199,4 +199,17 @@ extraPkgs // { }; strace = prev.strace.override { libunwind = null; }; + + ubootQemuArm = final.buildUBoot { + defconfig = "qemu_arm_defconfig"; + extraMeta.platforms = ["armv7l-linux"]; + filesToInstall = ["u-boot.bin"]; + # enable looking for boot files on ubifs. this is unused at + # present, but added in the expectation of a future test + extraPatches = [ ./pkgs/u-boot/0001-add-ubifs-to-boot-targets.patch ]; + extraConfig = '' + CONFIG_CMD_UBI=y + CONFIG_CMD_UBIFS=y + ''; + }; } diff --git a/pkgs/u-boot/0001-add-ubifs-to-boot-targets.patch b/pkgs/u-boot/0001-add-ubifs-to-boot-targets.patch @@ -0,0 +1,12 @@ +diff --git a/include/configs/qemu-arm.h b/include/configs/qemu-arm.h +index 535762ecb2..a947bae2e8 100644 +--- a/include/configs/qemu-arm.h ++++ b/include/configs/qemu-arm.h +@@ -72,6 +72,7 @@ + BOOT_TARGET_SCSI(func) \ + BOOT_TARGET_VIRTIO(func) \ + BOOT_TARGET_NVME(func) \ ++ func(UBIFS, ubifs, 0, UBI, boot) \ + BOOT_TARGET_DHCP(func) + + #include <config_distro_bootcmd.h>