build.config.msm.auto 849 B

12345678910111213141516171819202122232425
  1. ################################################################################
  2. # boot image macros
  3. BUILD_BOOT_IMG=1
  4. # Common MSM configuration for building non-GKI-based kernels
  5. DEFCONFIG="generic_auto_defconfig"
  6. function build_defconfig_fragments() {
  7. if [[ "${VARIANT}" =~ ^(perf_defconfig|debug_defconfig)$ ]]; then
  8. apply_defconfig_fragment ${KERNEL_DIR}/arch/${ARCH}/configs/vendor/${MSM_ARCH}.config vendor/${MSM_ARCH}_defconfig
  9. if [ "${VARIANT}" = perf_defconfig ]; then
  10. return
  11. fi
  12. apply_defconfig_fragment ${KERNEL_DIR}/arch/${ARCH}/configs/vendor/${MSM_ARCH}_debug.config vendor/${MSM_ARCH}-debug_defconfig
  13. else
  14. echo "Variant '${VARIANT}' unsupported"
  15. exit 1
  16. fi
  17. }
  18. build_defconfig_fragments