Add warm-reboot option support for reset button

Pressing reset button currently issues a reboot transion. However, some
platforms might expect to have force warm reboot instead. This commit
adds new reset-button-do-warm-reboot option to configure the expected
action for reset button on those platforms.

Tested:
- By default, on release of reset button, the Host is powered cycle.
- Enable reset-button-do-warm-reboot meson option. On release of reset
button, the Host is reset while Host power does not change.

Change-Id: I5d5f754f8b848fa0faef97354ef0dab7c47645f4
Signed-off-by: HuyLe <hule@amperecomputing.com>
diff --git a/src/button_handler.cpp b/src/button_handler.cpp
index 801cc9e..36ed096 100755
--- a/src/button_handler.cpp
+++ b/src/button_handler.cpp
@@ -284,7 +284,11 @@
             }
 
             lg2::info("Handling reset button press");
+#ifdef ENABLE_RESET_BUTTON_DO_WARM_REBOOT
+            transition = Host::Transition::ForceWarmReboot;
+#else
             transition = Host::Transition::Reboot;
+#endif
             break;
         }
         default: