1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-03 02:44:13 +03:00

kernel-builder: Adds a WIP Pre-init logo

When using CONFIG_LOGO, this "pre-init" logo will be shown in the
center. This abuses the Linux mascot logo feature to help end-users
figure out without console logging whether the kernel is hung really
early, or after the framebuffer kicked-in. The initrd is expected to
replace the logo ASAP.

This is to be changed for something better integrated into the style
guide once written up.
This commit is contained in:
Samuel Dionne-Riel 2019-04-19 22:56:36 -04:00
parent d737e0fd3e
commit ac2ad419f7
2 changed files with 12906 additions and 0 deletions

View File

@ -130,6 +130,26 @@ stdenv.mkDerivation {
--replace NIXOS_RANDSTRUCT_SEED \
$(echo ${src} ${configfile} | sha256sum | cut -d ' ' -f 1 | tr -d '\n')
fi
# FIXME : make optional...
# Makes the "logo" option show only one logo and not dependent on cores.
# This should be "safer" than a patch on a greater range of kernel versions.
# Also defaults to centering when possible.
if [ -e drivers/video/fbdev/core/fbmem.c ]; then
sed -i -e 's/num_online_cpus()/1/g' \
drivers/video/fbdev/core/fbmem.c
sed -i -e '/^bool fb_center_logo/ s/;/ = true;/' \
drivers/video/fbdev/core/fbmem.c
fi
if [ -e drivers/video/fbmem.c ]; then
sed -i -e 's/num_online_cpus()/1/g' \
drivers/video/fbmem.c
fi
# Overrides the kernel logo
cp ${./logo_linux_clut224.ppm} drivers/video/logo/logo_linux_clut224.ppm
${postPatch}
'';

File diff suppressed because it is too large Load Diff