[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210407053419.449796-8-gregkh@linuxfoundation.org>
Date: Wed, 7 Apr 2021 07:34:06 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Masahiro Yamada <masahiroy@...nel.org>,
Michal Marek <michal.lkml@...kovi.net>
Cc: linux-kbuild@...r.kernel.org, linux-arch@...r.kernel.org,
linux-kernel@...r.kernel.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: [PATCH 07/20] kbuild: scripts/install.sh: allow for the version number
Some architectures put the version number by default at the end of the
files that are copied, so add support for this to be set by arch type.
Odds are one day we should change this for x86, but let's not break
anyone's systems just yet.
Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
---
scripts/install.sh | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/scripts/install.sh b/scripts/install.sh
index 72dc4c81013e..934619f81119 100644
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -60,8 +60,19 @@ else
base=vmlinux
fi
-install "$2" "$4"/"$base"
-install "$3" "$4"/System.map
+# Some architectures name their files based on version number, and
+# others do not. Call out the ones that do not to make it obvious.
+case "${ARCH}" in
+ x86)
+ version=""
+ ;;
+ *)
+ version="-${1}"
+ ;;
+esac
+
+install "$2" "$4"/"$base""$version"
+install "$3" "$4"/System.map"$version"
sync
# Some architectures like to call specific bootloader "helper" programs:
--
2.31.1
Powered by blists - more mailing lists