OCC: Add ability to have OP920 version
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
diff --git a/openpower/package/occ/Config.in b/openpower/package/occ/Config.in
index 2512e24..aa363ee 100644
--- a/openpower/package/occ/Config.in
+++ b/openpower/package/occ/Config.in
@@ -25,5 +25,31 @@
help
String used to define name of the OCC GPUE GPE binary image file
+choice
+ prompt "OCC version"
+ default BR2_OCC_OP920_VERSION
+
+config BR2_OCC_OP920_VERSION
+ bool "Use latest OCC stable version (OP920)"
+
+config BR2_OCC_LATEST_VERSION
+ bool "Use latest OCC master"
+
+config BR2_OCC_CUSTOM_VERSION
+ bool "Custom OCC version"
+
+endchoice
+
+config BR2_OCC_CUSTOM_VERSION_VALUE
+ string "OCC version"
+ depends on BR2_OCC_CUSTOM_VERSION
+
+config BR2_OCC_VERSION
+ string
+ default "cd30b100eee09956a27b69f7893349451400e5ba" if BR2_OCC_LATEST_VERSION
+ default "cd30b100eee09956a27b69f7893349451400e5ba" if BR2_OCC_OP920_VERSION
+ default BR2_OCC_CUSTOM_VERSION_VALUE \
+ if BR2_OCC_CUSTOM_VERSION
+
endif