From 10bc2ef852277cf8e9858f75cea9f55b482bf85b Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Thu, 6 Jun 2019 09:43:20 -0700 Subject: Update to internal 6-6-19 Signed-off-by: Ed Tanous --- .../0012-ipmi-set-get-boot-options.patch | 62 ---------------------- 1 file changed, 62 deletions(-) delete mode 100644 meta-openbmc-mods/meta-common/recipes-phosphor/ipmi/phosphor-ipmi-host/0012-ipmi-set-get-boot-options.patch (limited to 'meta-openbmc-mods/meta-common/recipes-phosphor/ipmi/phosphor-ipmi-host/0012-ipmi-set-get-boot-options.patch') diff --git a/meta-openbmc-mods/meta-common/recipes-phosphor/ipmi/phosphor-ipmi-host/0012-ipmi-set-get-boot-options.patch b/meta-openbmc-mods/meta-common/recipes-phosphor/ipmi/phosphor-ipmi-host/0012-ipmi-set-get-boot-options.patch deleted file mode 100644 index fb5dcee09..000000000 --- a/meta-openbmc-mods/meta-common/recipes-phosphor/ipmi/phosphor-ipmi-host/0012-ipmi-set-get-boot-options.patch +++ /dev/null @@ -1,62 +0,0 @@ -From 7b5c6a54c049a447b1fd3a42f9d63322dcee4dc7 Mon Sep 17 00:00:00 2001 -From: Yong Li -Date: Sun, 16 Sep 2018 19:45:10 +0800 -Subject: [PATCH] [ipmi] set/get boot options - -1. fix issue for handling unsupported paramter -2. add support for floppy/USB boot - -Change-Id: I2b888c1ad67fec7924dd5825f78622cd216a55f4 -Signed-off-by: Jia, Chunhui -Signed-off-by: Yong Li ---- - chassishandler.cpp | 14 +++++++++++--- - 1 file changed, 11 insertions(+), 3 deletions(-) - -diff --git a/chassishandler.cpp b/chassishandler.cpp -index 666addb..77af2dc 100644 ---- a/chassishandler.cpp -+++ b/chassishandler.cpp -@@ -1244,7 +1244,8 @@ constexpr auto ipmiDefault = 0; - std::map sourceIpmiToDbus = { - {0x01, Source::Sources::Network}, - {0x02, Source::Sources::Disk}, - {0x05, Source::Sources::ExternalMedia}, -+ {0x0f, Source::Sources::RemovableMedia}, - {ipmiDefault, Source::Sources::Default}}; - - std::map modeIpmiToDbus = { -@@ -1255,7 +1256,8 @@ std::map modeIpmiToDbus = { - std::map sourceDbusToIpmi = { - {Source::Sources::Network, 0x01}, - {Source::Sources::Disk, 0x02}, - {Source::Sources::ExternalMedia, 0x05}, -+ {Source::Sources::RemovableMedia, 0x0f}, - {Source::Sources::Default, ipmiDefault}}; - - std::map modeDbusToIpmi = { -@@ -1533,7 +1535,7 @@ ipmi_ret_t ipmi_chassis_set_sys_boot_options(ipmi_netfn_t netfn, ipmi_cmd_t cmd, - setBootMode(Mode::Modes::Regular); - } - } -- if (modeIpmiToDbus.end() != modeItr) -+ else if (modeIpmiToDbus.end() != modeItr) - { - rc = setBootMode(modeItr->second); - if (rc != IPMI_CC_OK) -@@ -1550,6 +1552,12 @@ ipmi_ret_t ipmi_chassis_set_sys_boot_options(ipmi_netfn_t netfn, ipmi_cmd_t cmd, - setBootSource(Source::Sources::Default); - } - } -+ else -+ { -+ // if boot option is not in support list, return error -+ *data_len = 0; -+ return IPMI_CC_INVALID_FIELD_REQUEST; -+ } - } - catch (InternalFailure& e) - { --- -2.7.4 - -- cgit v1.2.3