device/qcom/sepolicy/SEPolicy.mk:3: warning: BOARD_PLAT_PUBLIC_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS instead.. device/qcom/sepolicy/SEPolicy.mk:3: warning: BOARD_PLAT_PUBLIC_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS instead.. device/qcom/sepolicy/SEPolicy.mk:8: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.. device/qcom/sepolicy/SEPolicy.mk:8: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.. device/qcom/sepolicy/SEPolicy.mk:12: warning: BOARD_PLAT_PUBLIC_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS instead.. device/qcom/sepolicy/SEPolicy.mk:12: warning: BOARD_PLAT_PUBLIC_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS instead.. device/qcom/sepolicy/SEPolicy.mk:17: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.. device/qcom/sepolicy/SEPolicy.mk:17: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.. device/xiaomi/phoenix/BoardConfig.mk:169: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.. build/make/core/soong_config.mk:193: warning: BOARD_PLAT_PUBLIC_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS instead.. build/make/core/soong_config.mk:194: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.. ============================================ PLATFORM_VERSION_CODENAME=S PLATFORM_VERSION=S TARGET_PRODUCT=aosp_phoenix TARGET_BUILD_VARIANT=eng TARGET_BUILD_TYPE=release TARGET_ARCH=arm64 TARGET_ARCH_VARIANT=armv8-a TARGET_CPU_VARIANT=generic TARGET_2ND_ARCH=arm TARGET_2ND_ARCH_VARIANT=armv8-a TARGET_2ND_CPU_VARIANT=generic HOST_ARCH=x86_64 HOST_2ND_ARCH=x86 HOST_OS=linux HOST_OS_EXTRA=Linux-5.11.0-051100rc6-generic-x86_64-Ubuntu-20.04.2-LTS HOST_CROSS_OS=windows HOST_CROSS_ARCH=x86 HOST_CROSS_2ND_ARCH=x86_64 HOST_BUILD_TYPE=release BUILD_ID=AOSP.MASTER OUT_DIR=out PRODUCT_SOONG_NAMESPACES=vendor/xiaomi/phoenix device/xiaomi/phoenix vendor/qcom/opensource/commonsys/packages/apps/Bluetooth vendor/qcom/opensource/commonsys/system/bt/conf ============================================ ninja: no work to do. ninja: no work to do. No need to regenerate ninja file No need to regenerate ninja file No need to regenerate ninja file Starting ninja... [ 20% 1/5] Target misc_info.txt: out/target/product/phoenix/misc_info.txt [ 40% 2/5] Target boot image: out/target/product/phoenix/boot.img FAILED: out/target/product/phoenix/boot.img /bin/bash -c "(out/host/linux-x86/bin/mkbootimg --kernel out/target/product/phoenix/kernel --ramdisk out/target/product/phoenix/ramdisk.img --cmdline \"console=ttyMSM0,115200n8 earlycon=msm_geni_serial,0x880000 androidboot.hardware=qcom androidboot.console=ttyMSM0 androidboot.memcg=1 lpm_levels.sleep_disabled=1 video=vfb:640x400,bpp=32,memsize=3072000 msm_rtb.filter=0x237 service_locator.enable=1 swiotlb=1 loop.max_part=7 androidboot.usbcontroller=a600000.dwc3 androidboot.selinux=permissive androidboot.init_fatal_reboot_target=recovery buildvariant=eng\" --base 0x00000000 --pagesize 4096 --os_version 11 --os_patch_level 2021-02-05 --base 0x00000000 --pagesize 4096 --ramdisk_offset 0x01000000 --tags_offset 0x00000100 --kernel_offset 0x00008000 --second_offset 0x00f00000 --header_version 2 --output out/target/product/phoenix/boot.img ) && (size=\$(for i in out/target/product/phoenix/boot.img; do stat -c \"%s\" \"\$i\" | tr -d '\\n'; echo +; done; echo 0); total=\$(( \$( echo \"\$size\" ) )); printname=\$(echo -n \"out/target/product/phoenix/boot.img\" | tr \" \" +); maxsize=\$(( 134217728-69632)); if [ \"\$total\" -gt \"\$maxsize\" ]; then echo \"error: \$printname too large (\$total > \$maxsize)\"; false; elif [ \"\$total\" -gt \$((maxsize - 32768)) ]; then echo \"WARNING: \$printname approaching size limit (\$total now; limit \$maxsize)\"; fi ) && (out/host/linux-x86/bin/avbtool add_hash_footer --image out/target/product/phoenix/boot.img --partition_size 134217728 --partition_name boot --prop com.android.build.boot.fingerprint:\$(cat out/target/product/phoenix/build_fingerprint.txt) --prop com.android.build.boot.os_version:11 )" Traceback (most recent call last): File "/home/akshay/s/out/host/linux-x86/bin/mkbootimg/internal/stdlib/runpy.py", line 174, in _run_module_as_main File "/home/akshay/s/out/host/linux-x86/bin/mkbootimg/internal/stdlib/runpy.py", line 72, in _run_code File "/home/akshay/s/out/host/linux-x86/bin/mkbootimg/__main__.py", line 12, in File "/home/akshay/s/out/host/linux-x86/bin/mkbootimg/internal/stdlib/runpy.py", line 174, in _run_module_as_main File "/home/akshay/s/out/host/linux-x86/bin/mkbootimg/internal/stdlib/runpy.py", line 72, in _run_code File "/home/akshay/s/out/host/linux-x86/bin/mkbootimg/mkbootimg.py", line 497, in File "/home/akshay/s/out/host/linux-x86/bin/mkbootimg/mkbootimg.py", line 484, in main File "/home/akshay/s/out/host/linux-x86/bin/mkbootimg/mkbootimg.py", line 198, in write_header ValueError: DTB image must not be empty. [ 60% 3/5] build out/target/product/phoenix/recovery.img FAILED: out/target/product/phoenix/recovery.img /bin/bash -c "(out/host/linux-x86/bin/mkbootimg --kernel out/target/product/phoenix/kernel --ramdisk out/target/product/phoenix/ramdisk-recovery.img --cmdline \"console=ttyMSM0,115200n8 earlycon=msm_geni_serial,0x880000 androidboot.hardware=qcom androidboot.console=ttyMSM0 androidboot.memcg=1 lpm_levels.sleep_disabled=1 video=vfb:640x400,bpp=32,memsize=3072000 msm_rtb.filter=0x237 service_locator.enable=1 swiotlb=1 loop.max_part=7 androidboot.usbcontroller=a600000.dwc3 androidboot.selinux=permissive androidboot.init_fatal_reboot_target=recovery buildvariant=eng\" --base 0x00000000 --pagesize 4096 --os_version 11 --os_patch_level 2021-02-05 --base 0x00000000 --pagesize 4096 --ramdisk_offset 0x01000000 --tags_offset 0x00000100 --kernel_offset 0x00008000 --second_offset 0x00f00000 --header_version 2 --output out/target/product/phoenix/recovery.img ) && (size=\$(for i in out/target/product/phoenix/recovery.img; do stat -c \"%s\" \"\$i\" | tr -d '\\n'; echo +; done; echo 0); total=\$(( \$( echo \"\$size\" ) )); printname=\$(echo -n \" out/target/product/phoenix/recovery.img\" | tr \" \" +); maxsize=\$(( 134217728-69632)); if [ \"\$total\" -gt \"\$maxsize\" ]; then echo \"error: \$printname too large (\$total > \$maxsize)\"; false; elif [ \"\$total\" -gt \$((maxsize - 32768)) ]; then echo \"WARNING: \$printname approaching size limit (\$total now; limit \$maxsize)\"; fi ) && (out/host/linux-x86/bin/avbtool add_hash_footer --image out/target/product/phoenix/recovery.img --partition_size 134217728 --partition_name recovery --algorithm SHA256_RSA4096 --key external/avb/test/data/testkey_rsa4096.pem --prop com.android.build.recovery.fingerprint:\$(cat out/target/product/phoenix/build_fingerprint.txt) --rollback_index 1 )" Traceback (most recent call last): File "/home/akshay/s/out/host/linux-x86/bin/mkbootimg/internal/stdlib/runpy.py", line 174, in _run_module_as_main File "/home/akshay/s/out/host/linux-x86/bin/mkbootimg/internal/stdlib/runpy.py", line 72, in _run_code File "/home/akshay/s/out/host/linux-x86/bin/mkbootimg/__main__.py", line 12, in File "/home/akshay/s/out/host/linux-x86/bin/mkbootimg/internal/stdlib/runpy.py", line 174, in _run_module_as_main File "/home/akshay/s/out/host/linux-x86/bin/mkbootimg/internal/stdlib/runpy.py", line 72, in _run_code File "/home/akshay/s/out/host/linux-x86/bin/mkbootimg/mkbootimg.py", line 497, in File "/home/akshay/s/out/host/linux-x86/bin/mkbootimg/mkbootimg.py", line 484, in main File "/home/akshay/s/out/host/linux-x86/bin/mkbootimg/mkbootimg.py", line 198, in write_header ValueError: DTB image must not be empty. ninja: build stopped: subcommand failed. 16:24:22 ninja failed with: exit status 1 #### failed to build some targets (3 seconds) ####