ANDROID_ROOT="${MY_DIR}/../../.."
+# If XML files don't have comments before the XML header, use this flag
+# Can still be used with broken XML files by using blob_fixup
+export TARGET_DISABLE_XML_FIXING=true
+
HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh"
if [ ! -f "${HELPER}" ]; then
echo "Unable to find helper script at ${HELPER}"
# Include ATV specific blobs for ATV targets
printf '\n%s\n' 'ifeq ($(PRODUCT_IS_ATV),true)' >> "$PRODUCTMK"
-write_makefiles "${MY_DIR}/proprietary-files-atv.txt" true
+write_makefiles "${MY_DIR}/proprietary-files-atv.txt"
printf '%s\n' 'endif' >> "$PRODUCTMK"
# Allow opting out of OP-TEE
printf '\n%s\n' 'ifneq ($(TARGET_HAS_TEE),false)' >> "$PRODUCTMK"
-write_makefiles "${MY_DIR}/proprietary-files-tee.txt" true
+write_makefiles "${MY_DIR}/proprietary-files-tee.txt"
printf '%s\n' 'endif' >> "$PRODUCTMK"
if [ "${TARGET_SOC}" == "g12a" ]
then
- write_makefiles "${MY_DIR}/../../${VENDOR_COMMON}/${DEVICE_COMMON}/proprietary-files-g12a.txt" true
+ write_makefiles "${MY_DIR}/../../${VENDOR_COMMON}/${DEVICE_COMMON}/proprietary-files-g12a.txt"
elif [ "${TARGET_SOC}" == "sm1" ]
then
- write_makefiles "${MY_DIR}/../../${VENDOR_COMMON}/${DEVICE_COMMON}/proprietary-files-sm1.txt" true
+ write_makefiles "${MY_DIR}/../../${VENDOR_COMMON}/${DEVICE_COMMON}/proprietary-files-sm1.txt"
fi
if [ -f "${MY_DIR}/../../${VENDOR_BRAND}/${DEVICE}/proprietary-firmware.txt" ]; then