summaryrefslogtreecommitdiffstats
path: root/configure.ac
Commit message (Collapse)AuthorAgeFilesLines
* Create libipmid and libipmid-hostWilliam A. Kennington III2019-02-071-1/+14
| | | | | | | | | | | | | | | | | | | This starts a transition to common ipmid libraries that providers can link against. It will allow for a cleaner separation between common ipmid functionality and daemon type specific code. This is needed so we can resolve all of the symbols in the providers at link time instead of discovering bad linkage by building and running a full ipmi daemon. In future commits libraries will be packaged for libipmid and libipmid-host which provide all of the symbols used by the current set of ipmid providers. This is the first step, it just separates and renames the headers. Legacy symlinks are still kept around for compatability. It also adds stub libraries so that external users can start linking as intended. Change-Id: I6bbd7a146362012d26812a7b039d1c4075862cbd Signed-off-by: William A. Kennington III <wak@google.com>
* Removing net.hpp and net.cpp because functionality movedJohnathan Mantey2019-02-051-4/+0
| | | | | | | | The functionality provided by net.hpp and net.cpp has been moved into the channel_mgmt class. Change-Id: I4820609f87f27ebe81d9b36f7b8e95a5262985ac Signed-off-by: Johnathan Mantey <johnathanx.mantey@intel.com>
* Revert "eSEL: Remove unused code related to logging eSEL"Tom Joseph2019-02-041-0/+4
| | | | | | | | | | This reverts commit 54fad6de0541c2f98e9b511f1d30bbcbcd743db6. This commit is reverted because the mapping of D-Bus object path to sensor information is still needed. The mapping is needed to serve the SEL commands which translate D-Bus logging objects to SEL entries. Change-Id: I2505299671db1f0bd7f116ef0e2ca4a0273eead8
* eSEL: Remove unused code related to logging eSELTom Joseph2019-02-011-4/+0
| | | | | Change-Id: Ia9815102064d20795a44b8e6a7d8b324c280756c Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* make: Build user_channel separatelyWilliam A. Kennington III2018-12-131-1/+1
| | | | | | | | | | | We need to make sure that libuserlayer is installed before libipmi20 tries to install + relink. Otherwise the relink will fail causing the build to sometimes fail. We can only guarantee this ordering safely by using automake SUBDIRS since they are guaranteed to be executed in order. Change-Id: I6488eecb504f72273e97cfcf336e5bbd816c4137 Signed-off-by: William A. Kennington III <wak@google.com>
* configure: Fix literal usage in AS_IFWilliam A. Kennington III2018-12-111-3/+3
| | | | | | | | We need to make all of the contents of AS_IF literal so that they are not re-interpreted by autoconf. Change-Id: I220fa6254a16d1f59e0400a9fb1ca909a9e7befb Signed-off-by: William A. Kennington III <wak@google.com>
* build: fix pam library inclusion and usagePatrick Venture2018-12-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | The pam_misc was deliberately included by the Makefile_am, however, no calls into pam_ were made from libuserlayer. Pam calls were made from usercommand.cpp, in libipmi20.so. The calls are part of the primary pam library. Before: objdump -t phosphor-host-ipmid/.libs/libipmi20.so\ |grep "UND"|grep -v "@@"|grep "pam" 0000000000000000 *UND* 0000000000000000 pam_end 0000000000000000 *UND* 0000000000000000 pam_chauthtok 0000000000000000 *UND* 0000000000000000 pam_start Now: objdump -t ./.libs/libipmi20.so|grep "UND"|grep pam 0000000000000000 F *UND* 0000000000000000 pam_chauthtok@@LIBPAM_1.0 0000000000000000 F *UND* 0000000000000000 pam_end@@LIBPAM_1.0 0000000000000000 F *UND* 0000000000000000 pam_start@@LIBPAM_1.0 Tested: Searched objects for undefined pam calls and found the information above. Change-Id: I44aa570a2087affafba09886fbf17fa9d99abe05 Signed-off-by: Patrick Venture <venture@google.com>
* move HOST_IPMI_LIB_PATH to configure.acPatrick Venture2018-11-201-0/+4
| | | | | | | | Per TODO in Makefile.am, move the definition of HOST_IPMI_LIB_PATH from the Makefile to the configure script. Change-Id: If39bf1193f4502c239a78e21487566b234b746f8 Signed-off-by: Patrick Venture <venture@google.com>
* Add first user layer support.Richard Marian Thomaiyar2018-11-131-0/+1
| | | | | | | | | Exposes user layer library which will be used by both apphandler and netipmid for RAKP. Password is decrypted from the special file which is used by pam-ipmi. Change-Id: Ia6b99d4359a03843f19cd0e18f7269ad2e3cdb44 Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
* softoff: Convert to sdeventplus loopWilliam A. Kennington III2018-11-071-0/+3
| | | | | | | | Tested: Builds and passes unit tests Change-Id: I6c37fa7088b7bcfbfc9f8b93185b826782a72c6a Signed-off-by: William A. Kennington III <wak@google.com>
* build: set language to C++Patrick Venture2018-10-311-0/+1
| | | | | | | Set the language in the build to C++. Change-Id: Ib1d19c2c05676d7f4bc2095c8492560e8c77f068 Signed-off-by: Patrick Venture <venture@google.com>
* configure: Use generic CXX compiler macroWilliam A. Kennington III2018-10-181-1/+1
| | | | | | | | | | | | | | | | | This uses the AX_CXX_COMPILE_STDCXX() instead of AX_CXX_COMPILE_STDCXX_1{4,7}() so that the error messages we generate make slightly more sense. We get errors like: configure.ac:24: error: invalid first argument `20' to AX_CXX_COMPILE_STDCXX Instead of: ./configure: line 5132: syntax error near unexpected token `noext' ./configure: line 5132: `AX_CXX_COMPILE_STDCXX_20(noext)' Change-Id: I05512c977b8b3215a02b5d4dc6dba30ac2b83728 Signed-off-by: William A. Kennington III <wak@google.com>
* configure: Don't check for sdbusplus twiceWilliam A. Kennington III2018-10-181-3/+0
| | | | | | | The second check is entirely unnecessary. Change-Id: I465577c50c0b9476a368373dae1b066b3a758a9e Signed-off-by: William A. Kennington III <wak@google.com>
* Use the common timer classVernon Mauery2018-10-181-1/+1
| | | | | | | | | The common timer class from sdbusplus offers all the timer goodness that we currently use. The unit test is also no longer needed (and has been added to sdbusplus's version of the timer.hpp implementation). Change-Id: I278817489433a29ca739f70fdacd8bb897797d66 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
* Add flags to Makefile.am to build as c++17 and header-only boostVernon Mauery2018-08-081-1/+1
| | | | | | | | | | As the project moves forward, we are updating it to use c++17 and some of the features that it offers, as well as some more boost bits. This patch makes sure that all the boost libraries are header only, adds in c++17, and makes sure that the libraries required are linked properly. Change-Id: I9a25ec971e4bf05c2c3b73e20938cf337e06077c Signed-off-by: Vernon Mauery <vernon.mauery@intel.com>
* Add OemRouter facility.Peter Hanson2018-07-251-3/+2
| | | | | | | | | | | | | OemRouter adds a facility to register OEM Group Message handlers, then dispatch matching messages to the registered handler. Added as a core source so that any dynamic provider can register its messages without requiring any specific load order. Includes code fixes for x86 portability. Change-Id: I47b8fe7873e3c7fdf35a00d3c8a7e17d30c398c4 Signed-off-by: Peter Hanson <peterh@google.com> Signed-off-by: Patrick Venture <venture@google.com>
* Add code coverage for phosphor-host-ipmid.Emily Shaffer2018-07-181-0/+3
| | | | | Change-Id: I940aadefdf0f78182aad1d4e586e3178e2d2fe97 Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
* DCMI: Read power value from the configured D-Bus object pathMarri Devender Rao2018-02-061-0/+5
| | | | | | | | | 1) Parse the power_reading JSON configuration file to get the D-Bus object path for the power reading. 2) Read the power reading value from the specified D-Bus object. Change-Id: I4b9f0703318e8db2c86d0b337e524eee6da33d08 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* Increase timeout for host to respond to attentionsAndrew Geissler2018-01-291-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | OpenBMC is dealing with some performance issues right after a reboot. Systemd does almost too good a job at parallelizing all of the services which causes a 6X hit on the processor during the initial boot once mapper is ready. In situations where the BMC is rebooted when the host is up, this performance issue coupled with errors queued up by the host to send down to the BMC, can cause OpenBMC to exceed its current 3 second timeout for attentions. This initial message from OpenBMC to the host is done to check if the host is running. If the message times out then it's assumed the host is not running which causes all sorts of issues for the system. Testing has shown it can take up to 10 seconds for the path to complete. Given the uncertainty of future performance, the unknowns on how many errors the host may have queued up, and the minimal impact a larger timeout has, this commit is increasing the timeout to 30 seconds. Resolves openbmc/openbmc#2832 Change-Id: I0d1baf601b6441a149e786e1f5de607862d86a52 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* multiple-channel configuration via yamlPatrick Venture2018-01-171-0/+4
| | | | | | | | | Handles converting a yaml file mapping IPMI channel to ethernet device and using this instead of a hard-coded map. Change-Id: Iedfe7cb52a2d0663b9c8a0f6f9d37fe733b63a58 Signed-off-by: Patrick Venture <venture@google.com>
* Increase host shutdown timeout to 45 minutesAndrew Geissler2017-08-231-2/+2
| | | | | | | | | | | | | A fully loaded system can cause the OS to take up to 45 minutes to properly shut down Removed "quiesce" from the description of the timeout since that is used elsewhere for error paths Resolves openbmc/openbmc#2162 Change-Id: I3800ca8e3bb063be6e5d396fac066014dcce7577 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Make host command manager accessible by OpenPower OEMVishwanatha Subbanna2017-08-141-0/+1
| | | | | | | | | Since OpenPower Host IPMI OEM also needs to use the Host Command manager, need to place the files in appropriate directories and make needed changes. Change-Id: I7536a0ff1e53a844ec05f73c4e0605cbf4341465 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Use Host Command Manager in host interface implementationVishwanatha Subbanna2017-08-141-5/+11
| | | | | Change-Id: Icefce510a3a0022bf0288fa99518459b732a2e04 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Add API to retrieve settingsDeepak Kodihalli2017-07-311-0/+2
| | | | | | | Add API to retrieve and cache settings objects of interest. Change-Id: I8afd58b5b3e9a691e4d3fa6bfba2ba5c92cd2568 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* rename example yaml file for fru readMarri Devender Rao2017-07-251-1/+1
| | | | | Change-Id: I06dd388ff6060319a21f16ee58a1bcc7379c98a6 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* Convert a log entry into a SEL recordTom Joseph2017-07-081-0/+4
| | | | | | | | | | | | Check the DBUS logging entry for callout associations, if there is a mapping between the inventory path and sensor number then populate the SEL record. Otherwise log a SEL against the sytem event sensor. Resolves openbmc/openbmc#1516 Change-Id: I516bdac70cf39260af1744a9cdb118d763009bd5 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* generate map of phosphor-dbus fru propertiesMarri Devender Rao2017-06-261-0/+4
| | | | | | | | | | Reusing frup.hpp, example.yaml, fru-gen.py, writefru.mako.cpp from ipmi-fru-gen repository to generate map of frup properties. Generated map facilitates in reading data from the inventory. Change-Id: I6d6dbc55a340dd06b4639f8bded8cc09df815a59 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* Reduce host shutdown timeout to 5 minutesAndrew Geissler2017-06-201-1/+1
| | | | | | | Resolves openbmc/openbmc#1823 Change-Id: I00fbf03561046be34fa8f1bd3039fbffe575737f Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Create file to indicate host requested off/rebootAndrew Geissler2017-06-061-0/+13
| | | | | | | | | | Create a file to ensure the soft power off service is not run when the host is requesting a power off or reboot. There's no need to notify the host (i.e. soft power off) when they are initiating it. Change-Id: Ic9f8e7110d30f477ceae38bba9d684559d9503d3 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Makefile changes for generating inventory-sensor-gen.cppTom Joseph2017-05-191-0/+4
| | | | | | | | | Provide capability for the recipe to pass the config yaml as a configurable output. Fallback to inventory-sensor-example.yaml in case no config yaml is passed. Change-Id: I6a069b0925c3e4c4d56bd1c9767b8fadcdf433b4 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Register new Control.Host bus in ipmidAndrew Geissler2017-05-091-0/+13
| | | | | | | | This sets up the framework for future commits to implement the required interfaces and signals in Control.Host Change-Id: I43cd7d3047ed9cfbf1a01e7ba3a0310e9d47c307 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* IPMI: Update the dbus object for soft power off with underscoresVishwanatha Subbanna2017-04-041-1/+1
| | | | | | | Fixes openbmc/phosphor-host-ipmid#102 Change-Id: I3e7456401b7265a51578f9aa08bef2ae3f326849 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Add gtest cases to verify sd_event timerVishwanatha Subbanna2017-03-271-1/+1
| | | | | Change-Id: I6db746adc969a322f463c00143938c7c2339ff86 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Handle response from host for soft power off requestVishwanatha Subbanna2017-03-271-0/+3
| | | | | Change-Id: Ia923eff57f855dc88cb04db13590ae1a58a502fd Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Add routines to start and stop the sd_event timerVishwanatha Subbanna2017-03-271-0/+4
| | | | | Change-Id: I738be7b70554125e544aa59fe1770e909d3dffb1 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Add initial code for IPMI SoftPowerOff functionalityVishwanatha Subbanna2017-03-221-4/+35
| | | | | | | | This commit puts a skeleton layout for the IPMI Soft Power Off functionality. Change-Id: I7c3ededc9d4038e172d7f6230270ecfe397330e9 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* build : provide sensor yaml as configRatan Gupta2017-03-151-0/+4
| | | | | | | | | | Make it possible for the phosphor-host-ipmid recipe to be able to supply the sensor YAML as configurable input. Use sensor-example.yaml as input. Change-Id: Iefbfeeff5561e6e90543fc7a69c04aeee5e76dd1 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Update chassis command handler to use state manager servicesVishwanatha Subbanna2017-03-071-0/+1
| | | | | | | | | | | Until now, IPMI chassis command handler was utilising services from chassis_control script and this patch makes a transition to use the services from the latest State Manager daemon. Fixes openbmc/openbmc#1238 Change-Id: Ic075971bbda44829a3ebe9c0c1de3053a8e97cfa Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Add environment variable for WHITELIST_CONFTom Joseph2017-02-211-0/+5
| | | | | Change-Id: Ib9bb50332c4203ccbbe72e3e5b9e641a51bdacbb Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Create a SEL error logAdriana Kobylak2017-02-161-0/+1
| | | | | | | | Log the SEL data to the journal and call the commit interface to write the error log with the data. Change-Id: Ifcb842e37f2fdb14f80ab24651d565da05da47bf Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* Halt configure step on libmapper missingMatthew Barth2016-11-091-1/+1
| | | | | | | Resolves openbmc/phosphor-host-ipmid#100 Change-Id: I6003829eaee5330ff62b239166be428b4ff43991 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
* Propose and implement unit test frameworkMatthew Barth2016-09-281-2/+28
| | | | | | | Enable use of GoogleTest and created a sample unit test case. Change-Id: Ie370745a32777d4ed81ee24145364029c8e7bf02 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
* Minor reorder and simplification of autotools filesPatrick Williams2016-09-021-5/+3
| | | | | Change-Id: I55db0cf7f6041890564f557c98286c8b4bde80cb Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Convert build process to autotoolsMatthew Barth2016-09-021-0/+31
Replaced the use of manual Makefile(s) with the use of autotools to automatically verify and generate the necessary build files. Follow the steps outlined within the README file to build the package. Change-Id: Ia3e1e1be7b18fb90382fd56f555866120ae5ece9 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
OpenPOWER on IntegriCloud