1234567891011121314151617181920 |
- KERN=5.10.74-rt54-v7l+
- mkdir -p /boot/$KERN/overlays/
- cp -d /usr/lib/linux-image-$KERN/overlays/* /boot/$KERN/overlays/
- cp -dr /usr/lib/linux-image-$KERN/* /boot/$KERN/
- [[ -d /usr/lib/linux-image-$KERN/broadcom ]] && cp -d /usr/lib/linux-image-$KERN/broadcom/* /boot/$KERN/
- touch /boot/$KERN/overlays/README
- mv /boot/vmlinuz-$KERN /boot/$KERN/
- mv /boot/initrd.img-$KERN /boot/$KERN/
- mv /boot/System.map-$KERN /boot/$KERN/
- mv /boot/config-$KERN /boot/$KERN/
- cat >> /boot/config.txt << EOF
- [all]
- kernel=vmlinuz-$KERN
- # initramfs initrd.img-$KERN
- os_prefix=$KERN/
- overlay_prefix=overlays/$(if [[ "$KERN" =~ 'v8' ]]; then echo -e "\narm_64bit=1"; fi)
- [all]
- EOF
|