aboutsummaryrefslogtreecommitdiff
path: root/bin/kbuild
Commit message (Collapse)AuthorAgeFilesLines
* kbuild: list available profiles on profile errorsMiquel Sabaté Solà2026-07-011-5/+20
| | | | Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* kbuild: remove outdated values on help messageMiquel Sabaté Solà2026-07-011-1/+1
| | | | Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* kbuild: fix typo on -l/--local help messageMiquel Sabaté Solà2026-07-011-1/+1
| | | | Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* kbuild: set execution for the installation scriptsMiquel Sabaté Solà2026-05-111-0/+3
| | | | | | | 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>
* kbuild: add the '-l/--local' flagMiquel Sabaté Solà2026-02-271-3/+36
| | | | | | | | | | 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>
* kbuild: move profiles into .config/kbuildMiquel Sabaté Solà2025-10-241-177/+18
| | | | | | | | | | | | | | 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>
* kbuild: Prefer grub2-mkconfigMiquel Sabaté Solà2025-10-231-1/+1
| | | | Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* kbuild: Change 'vf2' to 'debian'Miquel Sabaté Solà2025-10-161-6/+8
| | | | | | | | | | | 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>
* kbuild: Be more specific on Linux kernel root pathMiquel Sabaté Solà2025-10-071-1/+1
| | | | Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* kbuild: Be more explicit on --skip-* flagsMiquel Sabaté Solà2025-10-071-6/+6
| | | | | | | | | 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>
* kbuild: Adapt the uninstall.sh script to profilesMiquel Sabaté Solà2025-10-071-11/+22
| | | | | | | | | 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>
* kbuild: Don't check on the profile before helpMiquel Sabaté Solà2025-10-071-14/+14
| | | | | | | | 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>
* bin: Add 'profile' into kbuildMiquel Sabaté Solà2025-10-031-68/+103
| | | | | | | 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>
* bin: Update 'kbuild' to also handle UbuntuMiquel Sabaté Solà2025-09-161-6/+55
| | | | | | | 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>
* kbuild: Simplify boot parametersMiquel Sabaté Solà2024-11-141-2/+2
| | | | Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* kbuild: Fix typoMiquel Sabaté Solà2024-10-111-1/+1
| | | | Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* kbuild: Remove the initrd image on uninstall.shMiquel Sabaté Solà2024-09-131-1/+2
| | | | | | | | 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>
* kbuild: Simplify handling of .config fileMiquel Sabaté Solà2024-09-061-34/+14
| | | | | | Instead of prompting the user, just do the right thing. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* kbuild: make install should be silentMiquel Sabaté Solà2024-09-031-1/+1
| | | | Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* kbuild: Use `make install` instead of manual copyMiquel Sabaté Solà2024-08-261-1/+1
| | | | Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* kbuild: add a -h/--help commandMiquel Sabaté Solà2024-08-241-1/+22
| | | | Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* kbuild: add --no-installMiquel Sabaté Solà2024-08-201-33/+43
| | | | | | | This way the heavy process of creating a tarball can be skipped on silly builds. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* kbuild: add the `-s/--skip-build` optionMiquel Sabaté Solà2024-08-191-33/+60
| | | | | | | This allows me to skip the defconfig/menuconfig over and over again when writing a patch. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* kbuild: append lines for extboot by defaultMiquel Sabaté Solà2024-08-131-2/+38
| | | | | | | | | Usually the configuration for extboot is just the same. For that, before starting the editor for it, append the configuration that I'd most likely be using. Then the editor session might just be deleting the old lines and removing the warning comment. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* kbuild: provide uninstall.sh and files.txt filesMiquel Sabaté Solà2024-08-071-1/+29
| | | | Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* kbuild: stylingMiquel Sabaté Solà2024-08-071-4/+4
| | | | Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* bin: add a script to ease up linux cross compilingMiquel Sabaté Solà2024-07-281-0/+176
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>