From c487d70747a52c7e06a8e49a6e4e45929b623820 Mon Sep 17 00:00:00 2001 From: PKLee-Quanta Date: Thu, 21 Mar 2019 13:51:41 +0800 Subject: meta-quanta: add the whitelist of ipmi commands for meta-gsj The modified whitelist by the admin will replace the default whitelist. Tested: Build Quanta GSJ board image and load on the EVB. Ensure that BMC boots to console, and the whitelist is working. (From meta-quanta rev: bccdfbe91fb21e7c16c3204a88133f43f01a002c) Change-Id: I8a3713a30b982ed59b1d45c90123155288bc7994 Signed-off-by: PKLee-Quanta Signed-off-by: Tien-hung Huang Signed-off-by: Brad Bishop --- .../phosphor-ipmi-host/gsj-ipmid-whitelist.conf | 47 ++++++++++++++++++++++ .../recipes-phosphor/phosphor-ipmi-host_%.bbappend | 7 ++++ 2 files changed, 54 insertions(+) create mode 100644 meta-quanta/meta-gsj/recipes-phosphor/phosphor-ipmi-host/gsj-ipmid-whitelist.conf create mode 100644 meta-quanta/meta-gsj/recipes-phosphor/phosphor-ipmi-host_%.bbappend (limited to 'meta-quanta') diff --git a/meta-quanta/meta-gsj/recipes-phosphor/phosphor-ipmi-host/gsj-ipmid-whitelist.conf b/meta-quanta/meta-gsj/recipes-phosphor/phosphor-ipmi-host/gsj-ipmid-whitelist.conf new file mode 100644 index 000000000..a0d18b480 --- /dev/null +++ b/meta-quanta/meta-gsj/recipes-phosphor/phosphor-ipmi-host/gsj-ipmid-whitelist.conf @@ -0,0 +1,47 @@ +#: +0x00:0x00 //: +0x00:0x01 //: +0x00:0x02 //: +0x00:0x05 //: +0x00:0x06 //: +0x00:0x08 //: +0x00:0x09 //: +0x00:0x0F //: +0x04:0x02 //: +0x04:0x2D //: +0x04:0x2F //: +0x04:0x30 //: +0x06:0x01 //: +0x06:0x04 //: +0x06:0x06 //: +0x06:0x07 //: +0x06:0x08 //: +0x06:0x22 //: +0x06:0x24 //: +0x06:0x25 //: +0x06:0x2E //: +0x06:0x2F //: +0x06:0x31 //: +0x06:0x35 //: +0x06:0x36 //: +0x06:0x37 //: +0x06:0x42 //: +0x06:0x54 //: +0x0A:0x10 //: +0x0A:0x11 //: +0x0A:0x20 //: +0x0A:0x22 //: +0x0A:0x23 //: +0x0A:0x40 //: +0x0A:0x42 //: +0x0A:0x44 //: +0x0A:0x48 //: +0x0A:0x49 //: +0x0C:0x02 //: +0x2C:0x00 //: +0x2C:0x01 //: +0x2C:0x02 //: +0x2C:0x03 //: +0x2C:0x06 //: +0x2C:0x07 //: +0x2C:0x10 //: diff --git a/meta-quanta/meta-gsj/recipes-phosphor/phosphor-ipmi-host_%.bbappend b/meta-quanta/meta-gsj/recipes-phosphor/phosphor-ipmi-host_%.bbappend new file mode 100644 index 000000000..8b24bf754 --- /dev/null +++ b/meta-quanta/meta-gsj/recipes-phosphor/phosphor-ipmi-host_%.bbappend @@ -0,0 +1,7 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +# Replace the default whitelist for GSJ board. +SRC_URI += " file://gsj-ipmid-whitelist.conf" + +WHITELIST_CONF_remove = " ${S}/host-ipmid-whitelist.conf" +WHITELIST_CONF_append = " ${WORKDIR}/gsj-ipmid-whitelist.conf" -- cgit v1.2.3