From: Zhang Bingwu Date: Sun, 14 Jul 2024 08:57:51 +0000 (+0800) Subject: kbuild: Create INSTALL_PATH directory if it does not exist X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=7efcb39e0da99de8295e81a2f98b7fdeebcdaa73;p=users%2Fdwmw2%2Flinux.git 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 Reviewed-by: Nicolas Schier Signed-off-by: Masahiro Yamada --- diff --git a/scripts/install.sh b/scripts/install.sh index 9bb0fb44f04a7..05d62ac513ee7 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}" \