build.sh: Make sure rockdev/ exists before creating symlink

Change-Id: Id54de4edb0b07de35bcc9d9dea970503599cebdf
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
This commit is contained in:
Jeffy Chen
2019-05-10 18:29:18 +08:00
parent 629d203342
commit 52bd7fee1b

View File

@ -183,6 +183,7 @@ function build_rootfs(){
if [ ! -f "$ROOTFS_IMG" ]; then
echo "$ROOTFS_IMG not generated?"
else
mkdir -p ${RK_ROOTFS_IMG%/*}
ln -sf $TOP_DIR/$ROOTFS_IMG $RK_ROOTFS_IMG
fi
}