aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-04-08 14:09:24 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-06-14 09:24:04 +0200
commit2cd0d0c76b8d8db67d92e4da476f7d3c60f258c1 (patch)
treee3d022e3380d554ca35e0b6ba1a1a065aa18609d
parentf375d4b4b8e5a196a43b2edf605a825f198670b1 (diff)
downloaddriver-core-kbuild.tar.gz
kbuild: allow arches to have their own "bootloader.sh"kbuild
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--arch/x86/boot/bootloader.sh17
-rw-r--r--scripts/install.sh6
2 files changed, 23 insertions, 0 deletions
diff --git a/arch/x86/boot/bootloader.sh b/arch/x86/boot/bootloader.sh
new file mode 100644
index 00000000000000..70a36b34c0192f
--- /dev/null
+++ b/arch/x86/boot/bootloader.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+# SPDX-License-Identifier: GPL-2.0
+#
+# x86 default bootloader setup
+#
+# Defaults to LILO as that's the historical bootloader
+# Maybe someday we can update this.
+
+echo "hello from bootloader.sh!"
+
+if [ -x /sbin/lilo ]; then
+ /sbin/lilo
+elif [ -x /etc/lilo/install ]; then
+ /etc/lilo/install
+else
+ echo "Cannot find LILO, ensure your bootloader knows of the new kernel image."
+fi
diff --git a/scripts/install.sh b/scripts/install.sh
index dd86fb9971e9ae..34ad8bd0b64f75 100644
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -134,3 +134,9 @@ case "${ARCH}" in
fi
;;
esac
+
+# Some architectures like to call specific bootloader "helper" programs
+# so let them have their own special command here
+if [ -f "arch/$ARCH/boot/bootloader.sh" ] ; then
+ sh arch/"$ARCH"/boot/bootloader.sh
+fi