post-build.sh: Add dirs and symlinks
Change-Id: I6bd96b9b6ab7923d8ecabb5d7b6fe91c18c2f5f2 Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
This commit is contained in:
@ -71,9 +71,21 @@ function add_build_info()
|
||||
${TARGET_DIR}/etc/os-release
|
||||
}
|
||||
|
||||
function add_dirs_and_links()
|
||||
{
|
||||
echo "Adding dirs and links..."
|
||||
|
||||
cd ${TARGET_DIR}
|
||||
mkdir -p mnt/sdcard mnt/usb0
|
||||
ln -sf media/usb0 udisk
|
||||
ln -sf mnt/sdcard sdcard
|
||||
ln -sf userdata data
|
||||
}
|
||||
|
||||
echo "Executing $(basename $0)..."
|
||||
|
||||
add_build_info $@
|
||||
[ -f ${TARGET_DIR}/etc/fstab ] && fixup_fstab
|
||||
add_dirs_and_links
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user