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

Unified · Split

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