Commit 7efcb39e authored by Zhang Bingwu's avatar Zhang Bingwu Committed by Masahiro Yamada

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: default avatarZhang Bingwu <xtexchooser@duck.com>
Reviewed-by: default avatarNicolas Schier <nicolas@jasle.eu>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent af7925d8
......@@ -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}" \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment