Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Zhang Bingwu and committed by
Masahiro Yamada
7efcb39e af7925d8

+4
+4
scripts/install.sh
··· 20 20 fi 21 21 done 22 22 23 + if [ -n "${INSTALL_PATH}" ] && ! [ -e "${INSTALL_PATH}" ]; then 24 + mkdir -p "${INSTALL_PATH}" 25 + fi 26 + 23 27 # User/arch may have a custom install script 24 28 for file in "${HOME}/bin/${INSTALLKERNEL}" \ 25 29 "/sbin/${INSTALLKERNEL}" \