diff options
| author | Xian Wang <dev@xianwang.io> | 2022-07-04 12:27:09 -0700 |
|---|---|---|
| committer | Xian Wang <dev@xianwang.io> | 2022-07-04 12:27:09 -0700 |
| commit | fb24cbf9c414c97738a220d5b7af490cb0b70c9b (patch) | |
| tree | 7b43662ca6c00bab30140d2325a35fb52298b2d9 /kupg | |
| parent | 29011fcbd2d0abac058ea68d086a7f2cd39bd874 (diff) | |
| download | toolbox-fb24cbf9c414c97738a220d5b7af490cb0b70c9b.tar.gz toolbox-fb24cbf9c414c97738a220d5b7af490cb0b70c9b.tar.bz2 toolbox-fb24cbf9c414c97738a220d5b7af490cb0b70c9b.zip | |
kupg: zstd compress initramfs, make dtbs separate
Signed-off-by: Xian Wang <dev@xianwang.io>
Diffstat (limited to 'kupg')
| -rwxr-xr-x | kupg | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1,12 +1,18 @@ #!/bin/sh +set -ex + cd /usr/src/linux KVER=$(make kernelrelease) NCPU=$(ls /sys/bus/cpu/devices | wc -l) +if [ "$1" = dtbs ]; then + make dtbs +fi + make -j$NCPU \ -&& make dtbs install modules_install \ +&& make install modules_install \ && emerge -vq @module-rebuild \ -&& dracut --kver $KVER --force \ +&& dracut --zstd --kver $KVER --force \ && grub-mkconfig -o /boot/grub/grub.cfg |
