diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-04-22 16:09:23 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-04-22 16:09:23 +0200 |
| commit | fe7e74d567537d39020c22fad573b77aed2aa017 (patch) | |
| tree | 8275137e874563eac691498ad5e7d9ede14d03d8 /bin/git-nuke | |
| parent | eb147aa3c7f3bbbd3fba3f256d3366253d5b627f (diff) | |
| download | dotfiles-fe7e74d567537d39020c22fad573b77aed2aa017.tar.gz dotfiles-fe7e74d567537d39020c22fad573b77aed2aa017.zip | |
bin: Force a busybox path when running QEMU
When running QEMU/RISC-V, force the user to provide the `BUSYBOX_SRC`
environment variable. This variable points to the path where busybox has
been built. This way the path to the initramfs is not hardcoded.
Moreover, this allows us to rebuilt the initramfs every time the
`run-riscv-qemu.sh` is called, which in turn brings some consistency to
the process. Plus, this opens the door for allowing files to be passed
into a new `/home` directory for the current user. This way, someone can
just statically compile a binary via cross compilation, and then run it
in isolation with QEMU/RISC-V.
Last but not least, also update the .bashrc file with a value for
`BUSYBOX_SRC` on my system.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'bin/git-nuke')
0 files changed, 0 insertions, 0 deletions
