build.config.bonito_debug_memory 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. DEFCONFIG=bonito_defconfig
  2. KERNEL_DIR=private/msm-google
  3. . ${ROOT_DIR}/${KERNEL_DIR}/build.config.common.clang
  4. POST_DEFCONFIG_CMDS="check_defconfig && update_debug_config"
  5. function update_debug_config() {
  6. ${KERNEL_DIR}/scripts/config --file ${OUT_DIR}/.config \
  7. -e CONFIG_LOCKUP_DETECTOR \
  8. -e CONFIG_HARDLOCKUP_DETECTOR \
  9. -e CONFIG_HARDLOCKUP_DETECTOR_OTHER_CPU \
  10. -e CONFIG_BOOTPARAM_HARDLOCKUP_PANIC \
  11. -e CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC \
  12. -e CONFIG_BOOTPARAM_HUNG_TASK_PANIC \
  13. -e CONFIG_WQ_WATCHDOG \
  14. -e CONFIG_PANIC_ON_RT_THROTTLING \
  15. -e CONFIG_RCU_EQS_DEBUG \
  16. -e CONFIG_DEVMEM \
  17. -e CONFIG_DEBUG_OBJECTS \
  18. -e CONFIG_DEBUG_OBJECTS_FREE \
  19. -e CONFIG_DEBUG_OBJECTS_TIMERS \
  20. -e CONFIG_DEBUG_OBJECTS_WORK \
  21. -e CONFIG_DEBUG_OBJECTS_RCU_HEAD \
  22. -e CONFIG_DEBUG_OBJECTS_PERCPU_COUNTER \
  23. -e CONFIG_DEBUG_VM \
  24. -e CONFIG_DEBUG_VM_VMACACHE \
  25. -e CONFIG_DEBUG_VM_RB \
  26. -e CONFIG_DEBUG_MEMORY_INIT \
  27. -e CONFIG_DEBUG_STACK_USAGE \
  28. -e CONFIG_DEBUG_PAGEALLOC \
  29. -e CONFIG_DEBUG_PAGEALLOC_ENABLE_DEFAULT \
  30. -e CONFIG_SCHED_STACK_END_CHECK \
  31. -e CONFIG_SLUB_DEBUG \
  32. -e CONFIG_SLUB_DEBUG_PANIC_ON \
  33. -e CONFIG_PAGE_OWNER \
  34. -e CONFIG_PAGE_OWNER_ENABLE_DEFAULT \
  35. -e CONFIG_PAGE_POISONING \
  36. -e CONFIG_PAGE_POISONING_ENABLE_DEFAULT \
  37. -e CONFIG_DEBUG_RT_MUTEXES \
  38. -e CONFIG_DEBUG_SPINLOCK \
  39. -e CONFIG_DEBUG_SPINLOCK_PANIC_ON_BUG \
  40. -e CONFIG_DEBUG_MUTEXES \
  41. -e CONFIG_DEBUG_PREEMPT \
  42. -e CONFIG_DEBUG_ATOMIC_SLEEP \
  43. -e CONFIG_DEBUG_LIST \
  44. -e CONFIG_QCOM_RTB \
  45. -e CONFIG_QCOM_RTB_SEPARATE_CPUS \
  46. -e CONFIG_PANIC_ON_DATA_CORRUPTION \
  47. -e CONFIG_REGMAP_ALLOW_WRITE_DEBUGFS \
  48. -e CONFIG_PANIC_ON_WARN_DEFAULT_ENABLE \
  49. -d LTO \
  50. -d LTO_CLANG \
  51. -d CFI \
  52. -d CFI_PERMISSIVE \
  53. -d CFI_CLANG \
  54. -d VMAP_STACK
  55. (cd ${OUT_DIR} && \
  56. make O=${OUT_DIR} $archsubarch CROSS_COMPILE=${CROSS_COMPILE} olddefconfig)
  57. }