70 Commits
Author SHA1 Message Date
timmy b9769f0ab9 Skip empty lines 2026-08-08 01:10:44 -07:00
timmy 9063d127ea Updates
Add firmware support (needed for non-module builds)
Add a persistent mode for more efficient rebuilds
Add the final kernel config to the repo
2026-08-08 00:42:47 -07:00
Michael Stapelberg dc484a0c7e gokr-boot: fix locating instance config (for CI) 2026-06-28 10:19:08 +02:00
Michael Stapelberg 06855a11af gokr-boot: use instanceflag.Flags to avoid globals 2026-06-23 08:51:47 +02:00
Michael Stapelberg b83576eb01 gokr-boot: switch away from ApplyInstanceFlag 2026-06-22 22:29:58 +02:00
Damiano DonatiandGitHub 88a88781d1 gokr-rebuild-kernel: refactor architecture handling (#11)
This change updates the architecture handling in the indocker and rebuildkernel and improves the logic for cross-compilation by ensuring the best architecture/cross-compilation combo is used when building the kernel.

It also makes the tool work on macOS.
2026-06-01 18:39:54 +02:00
Michael Stapelberg 7a0affc63c gokr-pull-eeprom: make remote firmware directory configurable 2025-11-16 09:44:53 +01:00
Michael Stapelberg 102b653aa3 gokr-pull-eeprom: update _build/eeprom-ref.txt instead of go const
related to https://github.com/gokrazy/gokrazy/issues/332
2025-11-16 09:40:27 +01:00
Michael Stapelberg c5b0529eb9 add generalized version of gokr-update-eeprom
related to https://github.com/gokrazy/gokrazy/issues/332
2025-11-16 09:35:05 +01:00
Michael Stapelberg be22664e50 gokr-rebuild-kernel: copy (now-available) Raspberry Pi 5 dtb
related to https://github.com/gokrazy/gokrazy/issues/223
2025-11-13 17:55:19 +01:00
Olivier Mengué #openToWork-ParisandGitHub 433f1a3420 gokr-rebuild-kernel: fix typo in log for "make mod2noconfig" (#6) 2025-03-12 17:45:25 +01:00
Michael Stapelberg 6546aca8e7 update to latest gokrazy/internal
related to https://github.com/gokrazy/gokrazy/issues/191
2025-01-26 22:47:31 +01:00
Michael Stapelberg 5fa617d9ac gokr-rebuild-kernel: make dtb copying configurable 2024-08-02 16:41:52 +02:00
Michael Stapelberg f3f687c0a2 implement -flavor=raspberrypi (defconfig target, copy overlays) 2024-08-02 15:21:31 +02:00
Michael Stapelberg 2126940d68 gokr-rebuild-kernel: log file copies for debugging 2024-08-02 09:34:52 +02:00
Michael Stapelberg 10418837b1 gokr-rebuild-kernel: only look for dtb files with -cross=arm64 2024-08-02 08:58:07 +02:00
Michael Stapelberg 7fef833ff5 implement -cross=arm64 flag 2024-08-01 23:05:00 +02:00
Michael Stapelberg 2edd0175b5 gokr-rebuild-kernel: read patch list from series file
Also error out if not running from a _build directory,
to catch that mistake early.
2024-08-01 21:45:49 +02:00
Michael Stapelberg eba9c5d9e0 add generalized version of gokr-rebuild-kernel
related to https://github.com/gokrazy/gokrazy/issues/263
2024-08-01 15:27:20 +02:00
Michael Stapelberg 03e01355d1 gokr-pull-kernel: update non-go -updater_paths with just the URL 2024-08-01 14:49:25 +02:00
Michael Stapelberg d12e3c3b26 pull-kernel: log upstream URL 2024-08-01 10:46:38 +02:00
Michael Stapelberg 0914e65696 gokr-pull-kernel: raspberrypi: return URL, not just tag name 2024-06-09 23:12:32 +02:00
Michael Stapelberg f48b5bc55f gokr-pull-kernel: implement -flavor=raspberrypi
related to https://github.com/gokrazy/gokrazy/issues/223
2024-06-09 23:02:31 +02:00
Michael Stapelberg 829e88a109 gokr-pull-eeprom: update rpi-eeprom upstream location change 2023-11-20 18:52:52 +01:00
Michael Stapelberg 2f3c08a7f2 gokr-boot: use the gok CLI to build the instance
gokr-boot must now be called from a gokrazy instance directory,
e.g. cd ~/gokrazy/bakery && gokr-boot -require_label=please-boot \
-set_label=please-merge -bootery_url=$BOOTERY_URL -update_root
2023-02-28 20:59:00 +01:00
Michael Stapelberg e2147ae6b5 install serial-busybox to have a shell for breakglass 2022-07-19 09:02:59 +02:00
Michael Stapelberg 5fb3bfc676 gokr-boot: update each host with a separate image, serially
related to https://github.com/gokrazy/gokrazy/issues/114

As an added benefit, this reduces the blast radius when there is a breaking
change (fewer SD cards to recover).
2022-06-26 12:22:29 +02:00
Michael Stapelberg 42deb48616 gokr-boot: add -update_root flag
This builds and updates the bakery root file system, too,
which is required for testing loadable kernel modules.

related to https://github.com/gokrazy/gokrazy/issues/114
2022-06-26 10:53:57 +02:00
Michael Stapelberg 57027cc502 gokr-boot: fix “newer” timestamp comparison
This seems to only be a problem on fast enough machines, which is why it
typically did not happen on Travis or GitHub Actions :)
2022-06-26 10:42:53 +02:00
Michael Stapelberg adfe6d36f7 boot: specify -serial_console=serial0,115200 2022-03-21 19:35:55 +01:00
Michael Stapelberg 688d7ec19d update branch names 2022-03-17 21:42:24 +01:00
Michael Stapelberg 578e4e6bb6 re-add forgotten addLabel() call
This got lost in commit d4c9f46d71
2022-03-17 18:02:26 +01:00
Michael Stapelberg 679307c092 log label for debugging 2022-03-16 22:36:39 +01:00
Anup ChenthamarakshanandGitHub 07c566db5a Set minimal git config to allow git commit to succeed (#2)
Ran into an issue in
https://github.com/anupcshan/gokrazy-odroidxu4-kernel/runs/5341641350?check_suite_focus=true

```
2022/02/26 02:10:15 amend.go:83: git [add .]
2022/02/26 02:10:15 amend.go:83: git [commit -a --amend --no-edit]
Committer identity unknown

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident name (for <runner@fv-az91-455.1u4dveb1r3ruphbftqvtwhitpc.gx.internal.cloudapp.net>) not allowed
2022/02/26 02:10:15 amend.go:174: [git clone --branch=pull-c6ae38b38967a5c33d729c20e508a03ba3e0e3f6 --depth=2
```
2022-02-26 10:19:26 +01:00
Michael Stapelberg d4c9f46d71 re-implement gokr-amend using git(1) and rsync(1)
This makes updating lib/ directory recursively much easier than using the GitHub
API directly.

related to https://github.com/gokrazy/gokrazy/issues/13
2022-02-25 09:50:26 +01:00
Michael Stapelberg eeb2cc550c update to latest go-github version 2021-06-24 14:57:18 +02:00
Michael Stapelberg c187c43cfa use cienv to get all environment variables correct 2020-12-31 11:02:10 +01:00
Michael Stapelberg 7c9237f158 pull-firmware/pull-kernel: use GITHUB_REPOSITORY 2020-12-31 10:59:21 +01:00
Michael Stapelberg 2ae20c3ada add gokr-has-label for GitHub Actions logic 2020-12-30 14:35:15 +01:00
Michael Stapelberg eb99042a7e gokr-boot: set boot-newer parameter
fixes https://github.com/rtr7/kernel/issues/165
2020-07-07 09:44:12 +02:00
Michael Stapelberg 0f228a0c18 boot: include HTTP error message in error 2020-05-24 21:29:58 +02:00
Michael Stapelberg 4950605b19 gokr-amend: switch to cienv, too 2020-05-24 21:15:23 +02:00
Michael Stapelberg 345e6625d3 gokr-{boot,merge}: centralize environment details 2020-05-24 20:39:08 +02:00
Michael Stapelberg 5fa5d44a8e boot: fall back to GitHub actions environment variables
…but also support Travis CI until we have moved off of it.
2020-05-24 20:23:06 +02:00
Michael Stapelberg 3fa05e565b gokr-pull-eeprom: fix environment variables for secrets 2020-05-24 19:24:18 +02:00
Michael Stapelberg 3ad9628bc4 gokr-pull-eeprom: use GITHUB_REPOSITORY (runs on GitHub actions) 2020-05-24 19:17:15 +02:00
Michael Stapelberg 953564bd32 add gokr-pull-eeprom 2020-05-22 20:08:16 +02:00
Michael Stapelberg 7fdf995844 switch to go modules 2020-02-29 10:35:51 +01:00
Michael Stapelberg 09b239f1a3 gokr-boot: introduce -serial_console flag 2018-07-15 13:12:39 +02:00
Michael Stapelberg bb454d67fc gokr-boot: introduce -kernel_package and -firmware_package 2018-07-15 09:30:18 +02:00