Add the default cipher list for all platforms
The cipher_list.json was added only for Witherspoon platform earlier,
this change will package the json file in the image and related IPMI
commands Get Channel Cipher Suites and Get LAN configuration commands
can succeed.
Resolves openbmc/openbmc#3143
Change-Id: I3b1db52b3c4bc4cff69a521e047872497ddae3dc
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
diff --git a/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-host.bb b/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-host.bb
index 563ed26..aeb1d50 100644
--- a/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-host.bb
+++ b/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-host.bb
@@ -73,6 +73,7 @@
file://dcmi_cap.json \
file://power_reading.json \
file://dcmi_sensors.json \
+ file://cipher_list.json \
"
HOSTIPMI_PROVIDER_LIBRARY += "libapphandler.so"
@@ -87,6 +88,7 @@
FILES_${PN}_append = " ${datadir}/ipmi-providers/dcmi_cap.json"
FILES_${PN}_append = " ${datadir}/ipmi-providers/power_reading.json"
FILES_${PN}_append = " ${datadir}/ipmi-providers/dcmi_sensors.json"
+FILES_${PN}_append = " ${datadir}/ipmi-providers/cipher_list.json"
FILES_${PN}-dev_append = " ${libdir}/ipmid-providers/lib*${SOLIBSDEV} ${libdir}/ipmid-providers/*.la"
# Soft Power Off
@@ -134,6 +136,8 @@
${D}${datadir}/ipmi-providers/power_reading.json
install -m 0644 -D ${WORKDIR}/dcmi_sensors.json \
${D}${datadir}/ipmi-providers/dcmi_sensors.json
+ install -m 0644 -D ${WORKDIR}/cipher_list.json \
+ ${D}${datadir}/ipmi-providers/cipher_list.json
}
# python-pyyaml-native is installed by do_configure, so put this task after
addtask merge_sensors after do_configure before do_compile
diff --git a/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-host/cipher_list.json b/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-host/cipher_list.json
new file mode 100644
index 0000000..767fc70
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-host/cipher_list.json
@@ -0,0 +1,14 @@
+{
+ "a":{
+ "cipher":3,
+ "authentication":1,
+ "integrity":1,
+ "confidentiality":1
+ },
+ "b":{
+ "cipher":17,
+ "authentication":3,
+ "integrity":4,
+ "confidentiality":1
+ }
+}