Skip to content

Commit b84ec21

Browse files
committed
README: Use script to build Linux deb
Signed-off-by: Loïc Minier <[email protected]>
1 parent d0f174e commit b84ec21

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,14 @@ scripts/build-u-boot-rb1.sh
144144

145145
Linux 6.14 or later will just work, but 6.13 kernels need `CONFIG_CLK_QCM2290_GPUCC=m` ([upstream submission](https://lore.kernel.org/linux-arm-msm/[email protected]/))
146146

147-
1. install build-dependencies, get latest kernel (or a stable one)
147+
In any case, make sure to set `CONFIG_EFI_ZBOOT=y` as [systemd-boot won't implement support for compressed images (zImage)](https://github.com/systemd/systemd/issues/23788).
148+
149+
1. A convenience shell script is provided to checkout the latest kernel and build a deb package from it with the above config.
148150
```bash
149-
sudo apt install git flex bison bc libelf-dev libssl-dev
150-
git clone --depth=1 https://github.com/torvalds/linux
151-
make defconfig
152-
make deb-pkg -j$(nproc)
151+
sudo apt install git crossbuild-essential-arm64 make flex bison bc \
152+
libelf-dev libssl-dev dpkg-dev debhelper-compat kmod python3 rsync \
153+
coreutils
154+
scripts/build-linux-deb.sh
153155
```
154156

155157
1. on an arm64 capable machine, chroot into the disk image's root filesystem, mount the ESP and install the kernel

0 commit comments

Comments
 (0)