Skip to content

Commit 7efcb39

Browse files
xtexxmasahir0y
authored andcommitted
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 <[email protected]> Reviewed-by: Nicolas Schier <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent af7925d commit 7efcb39

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ do
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}" \

0 commit comments

Comments
 (0)