Skip to content

Commit f720c91

Browse files
authored
Merge pull request #363 from lool/fix-spinor-symlinks
fix(gen-ptool): Handle empty ESP and rootfs on SPINOR
2 parents e0ec159 + ad342ba commit f720c91

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/gen-ptool.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,12 @@ partition_map="${partition_map},efi=${esp}"
5959
partition_map="${partition_map},rootfs=${rootfs}"
6060

6161
# create symlinks from flat image to actual file
62-
ln -s "../${esp}" "$esp"
63-
ln -s "../${rootfs}" "$rootfs"
62+
if [ -n "$esp" ]; then
63+
ln -s "../${esp}" "$esp"
64+
fi
65+
if [ -n "$rootfs" ]; then
66+
ln -s "../${rootfs}" "$rootfs"
67+
fi
6468

6569
# generate ptool-partitions.xml from partitions.conf
6670
"${QCOM_PTOOL}/gen_partition.py" -i "${PARTITIONS_CONF}" \

0 commit comments

Comments
 (0)