mkimg: check partition images exist

This commit is contained in:
Konsta
2025-01-30 18:28:21 +02:00
parent 827581e630
commit edafb8762a

View File

@@ -19,6 +19,10 @@ if [ -z "${ANDROID_PRODUCT_OUT}" ]; then
exit_with_error "ANDROID_PRODUCT_OUT environment variable is not set. Run lunch first." exit_with_error "ANDROID_PRODUCT_OUT environment variable is not set. Run lunch first."
fi fi
if [ ! -f ${ANDROID_PRODUCT_OUT}/boot.img ] || [ ! -f ${ANDROID_PRODUCT_OUT}/system.img ] || [ ! -f ${ANDROID_PRODUCT_OUT}/vendor.img ]; then
exit_with_error "Partition image not found. Run make first."
fi
VERSION=RaspberryVanillaAOSP14 VERSION=RaspberryVanillaAOSP14
DATE=$(date +%Y%m%d) DATE=$(date +%Y%m%d)
TARGET=$(echo ${TARGET_PRODUCT} | sed 's/^aosp_//') TARGET=$(echo ${TARGET_PRODUCT} | sed 's/^aosp_//')