History

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.

Zhang Bingwu committed 2 years ago

Commit 7efcb391 parent af7925d1 file · +4 −0Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/install.sh+4−0
@@ -20,6 +20,10 @@ do · 19 unmodified lines
20 fi20 fi
21done21done
22 22
23if [ -n "${INSTALL_PATH}" ] && ! [ -e "${INSTALL_PATH}" ]; then
24 mkdir -p "${INSTALL_PATH}"
25fi
26
23# User/arch may have a custom install script27# User/arch may have a custom install script
24for file in "${HOME}/bin/${INSTALLKERNEL}" \28for file in "${HOME}/bin/${INSTALLKERNEL}" \
25 "/sbin/${INSTALLKERNEL}" \29 "/sbin/${INSTALLKERNEL}" \