Add dev shell without rootfs

Makes iteration quicker.
This commit is contained in:
Rodrigo Arias 2024-07-03 18:45:26 +02:00
parent 0c4311e15c
commit 4461686e80
2 changed files with 11 additions and 1 deletions

View File

@ -132,5 +132,11 @@
echo " UBOOT_ENV = $UBOOT_ENV" echo " UBOOT_ENV = $UBOOT_ENV"
''; '';
}; };
devShells.x86_64-linux.lagarto-ox-rd =
self.outputs.devShells.x86_64-linux.lagarto-ox.overrideAttrs (old:{
TOPLEVEL = "";
ROOTFS = "";
});
}; };
} }

View File

@ -16,7 +16,11 @@ rsync -a fpga/env.sh "$dst"
rsync $OPENSBI/share/opensbi/*/fpga/*/firmware/fw_payload.bin "$dst/opensbi.bin" rsync $OPENSBI/share/opensbi/*/fpga/*/firmware/fw_payload.bin "$dst/opensbi.bin"
rsync "$KERNEL/Image" "$dst/kernel.bin" rsync "$KERNEL/Image" "$dst/kernel.bin"
rsync "$INITRD/initrd" "$dst/initrd.bin" rsync "$INITRD/initrd" "$dst/initrd.bin"
rsync "$ROOTFS/sd-image/rootfs.img" "$dst/rootfs.img" if [ -n "$ROOTFS" ]; then
rsync "$ROOTFS/sd-image/rootfs.img" "$dst/rootfs.img"
else
echo "Skipping rootfs"
fi
rsync "$UBOOT_ENV" "$dst/uboot.env" rsync "$UBOOT_ENV" "$dst/uboot.env"
echo "Now go to $dst and run ./boot.sh" echo "Now go to $dst and run ./boot.sh"