armbian-next: drop dead/duplicated code for bootsplash and mark kernel-drivers.sh (which includes bootsplash) as dead code
This commit is contained in:
parent
4d59ad7ac4
commit
92d902c883
@ -1,41 +0,0 @@
|
||||
#
|
||||
# Linux splash file
|
||||
#
|
||||
function apply_kernel_patches_for_bootsplash() {
|
||||
# disable it.
|
||||
# todo: cleanup logo generation code and bring in plymouth
|
||||
# @TODO: rpardini: so, can we completely remove this?
|
||||
SKIP_BOOTSPLASH=yes
|
||||
|
||||
[[ "${SKIP_BOOTSPLASH}" == "yes" ]] && return 0
|
||||
linux-version compare "${version}" le 5.14 && return 0
|
||||
display_alert "Adding" "Kernel splash file" "info"
|
||||
|
||||
if linux-version compare "${version}" ge 5.19.6 ||
|
||||
(linux-version compare "${version}" ge 5.15.64 && linux-version compare "${version}" lt 5.16); then
|
||||
process_patch_file "${SRC}/patch/misc/0001-Revert-fbdev-fbcon-Properly-revert-changes-when-vc_r.patch" "applying"
|
||||
fi
|
||||
|
||||
process_patch_file "${SRC}/patch/misc/bootsplash-5.16.y-0000-Revert-fbcon-Avoid-cap-set-but-not-used-warning.patch" "applying"
|
||||
process_patch_file "${SRC}/patch/misc/0001-Revert-fbcon-Fix-accelerated-fbdev-scrolling-while-logo-is-still-shown.patch" "applying"
|
||||
process_patch_file "${SRC}/patch/misc/bootsplash-5.16.y-0001-Revert-fbcon-Add-option-to-enable-legacy-hardware-ac.patch" "applying"
|
||||
process_patch_file "${SRC}/patch/misc/bootsplash-5.16.y-0002-Revert-vgacon-drop-unused-vga_init_done.patch" "applying"
|
||||
process_patch_file "${SRC}/patch/misc/bootsplash-5.16.y-0003-Revert-vgacon-remove-software-scrollback-support.patch" "applying"
|
||||
process_patch_file "${SRC}/patch/misc/bootsplash-5.16.y-0004-Revert-drivers-video-fbcon-fix-NULL-dereference-in-f.patch" "applying"
|
||||
process_patch_file "${SRC}/patch/misc/bootsplash-5.16.y-0005-Revert-fbcon-remove-no-op-fbcon_set_origin.patch" "applying"
|
||||
process_patch_file "${SRC}/patch/misc/bootsplash-5.16.y-0006-Revert-fbcon-remove-now-unusued-softback_lines-curso.patch" "applying"
|
||||
process_patch_file "${SRC}/patch/misc/bootsplash-5.16.y-0007-Revert-fbcon-remove-soft-scrollback-code.patch" "applying"
|
||||
|
||||
process_patch_file "${SRC}/patch/misc/0001-bootsplash.patch" "applying"
|
||||
process_patch_file "${SRC}/patch/misc/0002-bootsplash.patch" "applying"
|
||||
process_patch_file "${SRC}/patch/misc/0003-bootsplash.patch" "applying"
|
||||
process_patch_file "${SRC}/patch/misc/0004-bootsplash.patch" "applying"
|
||||
process_patch_file "${SRC}/patch/misc/0005-bootsplash.patch" "applying"
|
||||
process_patch_file "${SRC}/patch/misc/0006-bootsplash.patch" "applying"
|
||||
process_patch_file "${SRC}/patch/misc/0007-bootsplash.patch" "applying"
|
||||
process_patch_file "${SRC}/patch/misc/0008-bootsplash.patch" "applying"
|
||||
process_patch_file "${SRC}/patch/misc/0009-bootsplash.patch" "applying"
|
||||
process_patch_file "${SRC}/patch/misc/0010-bootsplash.patch" "applying"
|
||||
process_patch_file "${SRC}/patch/misc/0011-bootsplash.patch" "applying"
|
||||
process_patch_file "${SRC}/patch/misc/0012-bootsplash.patch" "applying"
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
# @TODO: armbian-next: THIS IS DEAD CODE. no-one calls it. a JIRA for volunteers to fix it, or it will be removed.
|
||||
|
||||
function prepare_extra_kernel_drivers() {
|
||||
|
||||
|
||||
@ -280,15 +280,6 @@ set -o errexit ## set -e : exit the script if any statement returns a non-true
|
||||
# shellcheck source=lib/functions/compilation/patch/drivers_network.sh
|
||||
source "${SRC}"/lib/functions/compilation/patch/drivers_network.sh
|
||||
|
||||
# no errors tolerated. invoked before each sourced file to make sure.
|
||||
#set -o pipefail # trace ERR through pipes - will be enabled "soon"
|
||||
#set -o nounset ## set -u : exit the script if you try to use an uninitialised variable - one day will be enabled
|
||||
set -o errtrace # trace ERR through - enabled
|
||||
set -o errexit ## set -e : exit the script if any statement returns a non-true return value - enabled
|
||||
### lib/functions/compilation/patch/kernel-bootsplash.sh
|
||||
# shellcheck source=lib/functions/compilation/patch/kernel-bootsplash.sh
|
||||
source "${SRC}"/lib/functions/compilation/patch/kernel-bootsplash.sh
|
||||
|
||||
# no errors tolerated. invoked before each sourced file to make sure.
|
||||
#set -o pipefail # trace ERR through pipes - will be enabled "soon"
|
||||
#set -o nounset ## set -u : exit the script if you try to use an uninitialised variable - one day will be enabled
|
||||
|
||||
Loading…
Reference in New Issue
Block a user