build.config.msm.vm 679 B

12345678910111213141516171819
  1. ################################################################################
  2. # Common configuration for building kernel for Virtual Machines
  3. DEFCONFIG="generic_vm_defconfig"
  4. function build_defconfig_fragments() {
  5. if [[ "${VARIANT}" =~ ^(defconfig|debug_defconfig)$ ]]; then
  6. apply_defconfig_fragment ${KERNEL_DIR}/arch/${ARCH}/configs/vendor/${MSM_ARCH}.config vendor/${MSM_ARCH}_defconfig
  7. if [ "${VARIANT}" = defconfig ]; then
  8. return
  9. fi
  10. apply_defconfig_fragment ${KERNEL_DIR}/arch/${ARCH}/configs/vendor/${MSM_ARCH}_debug.config vendor/${MSM_ARCH}-debug_defconfig
  11. else
  12. echo "Variant '${VARIANT}' unsupported by gki"
  13. exit 1
  14. fi
  15. }
  16. build_defconfig_fragments