meson: Update LONG_PRESS_TIME_MS

According to the needs of each company, the value of
LONG_PRESS_TIME_MS should be configurable, so moved to the
meson_option.txt file

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I90efafe4ea134ec66ab8eca0b8faf418d97bad1f
diff --git a/meson.build b/meson.build
index ff5ac12..362fb10 100644
--- a/meson.build
+++ b/meson.build
@@ -21,7 +21,7 @@
 conf_data.set_quoted('HOST_STATE_OBJECT_NAME', 'xyz/openbmc_project/state/host')
 conf_data.set_quoted('ID_LED_GROUP', get_option('id-led-group'))
 
-conf_data.set('LONG_PRESS_TIME_MS', 3000)
+conf_data.set('LONG_PRESS_TIME_MS', get_option('long-press-time-ms'))
 
 configure_file(output: 'config.h',
     configuration: conf_data
diff --git a/meson_options.txt b/meson_options.txt
index fa7aa00..f6d3445 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -4,3 +4,10 @@
     value: 'enclosure_identify',
     description : 'The identify LED group name'
 )
+
+option(
+    'long-press-time-ms',
+    type : 'integer',
+    value: 3000,
+    description : 'Time to long press the button'
+)