[Android Software Development] lehmancurtis:
99% 4646/4657] Target boot image: /h...al/out/target/product/cp3622a/boot.img
FAILED: /home/curtis/minimal/out/target/product/cp3622a/boot.img
/bin/bash -c "(/home/curtis/minimal/out/host/linux-x86/bin/mkbootimg --kernel /home/curtis/minimal/out/target/product/cp3622a/kernel --ramdisk /home/curtis/minimal/out/target/product/cp3622a/ramdisk.img --base 0x80000000 --pagesize 2048 --cmdline \"console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x3F ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci lpm_levels.sleep_disabled=1 earlyprintk androidboot.selinux=permissive buildvariant=userdebug\" --os_version 7.1.2 --os_patch_level 2017-11-06 --base 0x80000000 --pagesize 2048 --kernel_offset 0x00008000 --ramdisk_offset 0x01000000 --tags_offset 0x00000100 --cmdline 'console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x3F ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci lpm_levels.sleep_disabled=1 earlyprintk androidboot.selinux=permissive' --output /home/curtis/minimal/out/target/product/cp3622a/boot.img ) && (size=\$(for i in /home/curtis/minimal/out/target/product/cp3622a/boot.img; do stat --format \"%s\" \"\$i\" | tr -d '\\n'; echo +; done; echo 0); total=\$(( \$( echo \"\$size\" ) )); printname=\$(echo -n \"/home/curtis/minimal/out/target/product/cp3622a/boot.img\" | tr \" \" +); img_blocksize=2112; twoblocks=\$((img_blocksize * 2)); onepct=\$(((((7539840 / 100) - 1) / img_blocksize + 1) * img_blocksize)); reserve=\$((twoblocks > onepct ? twoblocks : onepct)); maxsize=\$((7539840 - reserve)); echo \"\$printname maxsize=\$maxsize blocksize=\$img_blocksize total=\$total reserve=\$reserve\"; if [ \"\$total\" -gt \"\$maxsize\" ]; then echo \"error: \$printname too large (\$total > [7539840 - \$reserve])\"; false; elif [ \"\$total\" -gt \$((maxsize - 32768)) ]; then echo \"WARNING: \$printname approaching size limit (\$total now; limit \$maxsize)\"; fi )"
/home/curtis/minimal/out/target/product/cp3622a/boot.img maxsize=7463808 blocksize=2112 total=22368256 reserve=76032
error: /home/curtis/minimal/out/target/product/cp3622a/boot.img too large (22368256 > [7539840 - 76032])
[ 99% 4646/4657] build /home/curtis/mi...covery_intermediates/sepolicy.recovery
/home/curtis/minimal/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/curtis/minimal/out/target/product/cp3622a/obj/ETC/sepolicy.recovery_intermediates/policy_recovery.conf
/home/curtis/minimal/out/host/linux-x86/bin/checkpolicy: policy configuration loaded
/home/curtis/minimal/out/host/linux-x86/bin/checkpolicy: writing binary representation (version 30) to /home/curtis/minimal/out/target/product/cp3622a/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.tmp
[ 99% 4646/4657] host Java: bouncycast...uncycastle-host_intermediates/classes)
warning: [options] bootstrap class path not set in conjunction with -source 1.7
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
ninja: build stopped: subcommand failed.
build/core/ninja.mk:157: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1

#### make failed to build some targets (03:31 (mm:ss)) ####

How do I fix this? I'm lost.