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:
parent
d737e0fd3e
commit
ac2ad419f7
@ -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}
|
||||
'';
|
||||
|
||||
|
12886
overlay/mobile-nixos/kernel/logo_linux_clut224.ppm
Normal file
12886
overlay/mobile-nixos/kernel/logo_linux_clut224.ppm
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user