From 46ea9fbcf2a32d3df02b649ca91633655351d8e6 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Sat, 5 Oct 2024 11:27:15 +0100 Subject: [PATCH] g12-common: Re-sync extract scripts with templates Change-Id: I95866b7f7bf1ccd89669201aea7a44e649ac64f8 --- extract-files.sh | 4 ++++ setup-makefiles.sh | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/extract-files.sh b/extract-files.sh index 4793fb3..b3962d4 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -14,6 +14,10 @@ if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi 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}" diff --git a/setup-makefiles.sh b/setup-makefiles.sh index 52215a1..961eb12 100755 --- a/setup-makefiles.sh +++ b/setup-makefiles.sh @@ -33,14 +33,14 @@ write_makefiles "${MY_DIR}/proprietary-files.txt" # 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" @@ -59,10 +59,10 @@ if [ -s "${MY_DIR}/../../${VENDOR_BRAND}/${DEVICE}/proprietary-files.txt" ]; the 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 -- 2.20.1