build.config.bonito_debug_hang 951 B

1234567891011121314151617181920212223242526
  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_PANIC_ON_WARN_DEFAULT_ENABLE \
  17. -d LTO \
  18. -d LTO_CLANG \
  19. -d CFI \
  20. -d CFI_PERMISSIVE \
  21. -d CFI_CLANG \
  22. -d SHADOW_CALL_STACK
  23. (cd ${OUT_DIR} && \
  24. make O=${OUT_DIR} $archsubarch CROSS_COMPILE=${CROSS_COMPILE} olddefconfig)
  25. }