| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
|
|
|
| |
A lot of stuff was outdated after the addition of options like
'-l/--local'.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
| |
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
| |
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
| |
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
| |
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
|
|
| |
This apparently avoids weird problems when calling QEMU.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
|
|
| |
Also default to a better repository base directory.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
| |
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
|
|
|
| |
As we do when the '-l/--local' flag is provided, set execution mode for
the install.sh and the uninstall.sh scripts when bundling too.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
| |
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
| |
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
|
|
|
|
|
|
| |
This allows you to define that you are planning to deploy things in your
current development box. This means that ARCH has to match whatever is
currently on your system, and CROSS_COMPILE is needed. Moreover, we
don't need an installation bundle, but we just need the
install.sh/uninstall.sh scripts.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
| |
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
|
|
|
| |
It's impossible that the previous editors don't exist but microemacs
does, but I still find it funny.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
| |
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
| |
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
|
|
|
|
| |
Commit 295231706308 ("bin: Guess the QEMU_KERNEL to be used based on
cwd") introduced QEMU_KERNEL into this script, but actually we have
moved to KERNEL instead. Hence, use that as well in error messages.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Instead of inlining shell scripts inside of the `kbuild` one, move them
into subdirectories inside of the new $HOME/.config/kbuild
directory. Each subdirectory will match a profile (i.e. no more hacky
hardcoded values on `kbuild`), and it will contain the relevant
install.sh/uninstall.sh files which matter for that profile.
This also allows us more flexibility when it comes to GRUB
configuration (e.g. picking the right UUID value without having to
re-invent the wheel via esoteric new parameters).
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
| |
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
The folks at openSUSE were nice enough to provide an image that works with my
VisionFive2 board. Hence, let's reformulate the "vf2" profile to "debian", as
that's closer to what I was doing.
That being said, I have left a TODO to denote that the UUID used in GRUB needs
to be handled more gracefully.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
| |
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
| |
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
|
|
|
|
|
| |
I always end up forgetting which is which, and I have to turn into
'-h/--help'. Hence, instead of providing a "clever" short version of
each flag, let's scrap that and use a more explicit name for each
--skip-* flag.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
|
|
|
|
|
| |
Moreover, some subtle fixes have been added, like using
'update-bootloader' instead of 'update-grub' in SUSE-like systems, and
having -f in 'rm' commands so uninstall.sh can be run safely multiple
times without erroring out.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
|
|
|
|
| |
If the user asked for '-h/--help', the profile is irrelevant. Hence, the
right order is: first check if '-h/--help' was provided, then the
profile.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
| |
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
|
|
|
|
| |
This allows this script to be more specific on the kernel being used,
less hiden (as it was on an environment variable), and it easies up the
route for a disk already containing a Linux system.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
|
|
|
| |
This allows this script to be more specific for the resulting
'install.sh', as the current situation wasn't quite working.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
|
|
|
| |
I don't know what were the defaults for this, but it was certainly not
enough in order to run some of the selftests from the Linux kernel.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
| |
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
| |
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
| |
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
|
|
|
| |
Relevant for my Framework RISC-V laptop, even if I need to get my hands
dirty a bit more with it.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
|
|
|
|
| |
This is a glorified bash one-liner for fetching my email by syncing each
channel via GNU parallel. This speeds up a bit from the usual 'mbsync
-a', even if it's not a miracle.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
| |
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
|
| |
|
|
| |
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
|
| |
|
|
|
|
|
|
|
| |
This replaces the good ol' install.sh script, and it allows me to not
only install on a new system, but also upgrade dependencies, repair
broken links, etc. This is certainly not Nix, but at least it's not as
bad as it used to be.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
|
| |
|
|
| |
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Personal stuff like the location of the kernel image should go into my
.bashrc file, and then require it on `run-riscv-qemu.sh`. Similarly,
some environment variables were dropped, and some others removed. This
brings some much needed consistency to the whole script.
Last but not least, the `run-riscv-qemu.sh` now also had an extra
configurable variable, which is used for the `-cpu` QEMU option. It
defaults to 'max' so we can test the maximum amount of supported
extensions as possible.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
| |
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
|
| |
|
|
| |
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
|
| |
|
|
|
|
|
|
| |
There are now two scripts that can be used in order to quickly test a
locally built Linux kernel which has been cross compiled for the RISC-V
architecture.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
|
| |
|
|
|
|
|
|
|
| |
The vi branch was calling vim anyways, which is not what we want in
restricted environments. Moreover, I have also added nano. It would be
extremely rare for GNU nano to be there and not vi, but let's exhaust
any possibility before bailing out.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
|
| |
|
|
|
|
|
|
| |
The initrd image is created and installed dynamically via install.sh.
Hence, this is not picked up by the files.txt list and so we need to
remove it manually.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
|
| |
|
|
| |
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
|
| |
|
|
|
|
| |
Instead of prompting the user, just do the right thing.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
|
| |
|
|
| |
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
|
| |
|
|
| |
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
|