summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorZhang Bingwu <xtexchooser@duck.com>2024-07-14 10:57:51 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2024-07-20 06:34:54 +0200
commit7efcb39e0da99de8295e81a2f98b7fdeebcdaa73 (patch)
tree6089e0e515c775031998dd038f4db20719c6d864 /scripts
parentkbuild: Abort make on install failures (diff)
downloadlinux-7efcb39e0da99de8295e81a2f98b7fdeebcdaa73.tar.xz
linux-7efcb39e0da99de8295e81a2f98b7fdeebcdaa73.zip
kbuild: Create INSTALL_PATH directory if it does not exist
If INSTALL_PATH is not a valid directory, create it, like what modules_install and dtbs_install will do in the same situation. Signed-off-by: Zhang Bingwu <xtexchooser@duck.com> Reviewed-by: Nicolas Schier <nicolas@jasle.eu> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/install.sh b/scripts/install.sh
index 9bb0fb44f04a..05d62ac513ee 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -20,6 +20,10 @@ do
fi
done
+if [ -n "${INSTALL_PATH}" ] && ! [ -e "${INSTALL_PATH}" ]; then
+ mkdir -p "${INSTALL_PATH}"
+fi
+
# User/arch may have a custom install script
for file in "${HOME}/bin/${INSTALLKERNEL}" \
"/sbin/${INSTALLKERNEL}" \