summaryrefslogtreecommitdiffstats
path: root/Makefile.am
Commit message (Collapse)AuthorAgeFilesLines
* Use sha512 to calculate the versionID for images.Saqib Khan2017-10-041-1/+3
| | | | | | | | | | | | - We needed a hash algorithm that can be replicated on multiple platforms and across multiple programming languages. - This would allow the user to calculate the versionID by executing the following command to obtain correct versionID. echo -n "<versionID>" | sha512sum | cut -b 1-8 - This is part of the change required for openbmc/openbmc#2323 Change-Id: Ibc96a2871f07cb549c482c06dec7090e6ba3a766 Signed-off-by: Saqib Khan <khansa@us.ibm.com>
* Remove nodist_noinst and nobase_nodist_includeGunnar Mills2017-08-291-6/+0
| | | | | | | | | | | | nodist_noinst_HEADER is not needed for org/openbmc/Associations/server.hpp. The header file by default is not installed. xyz/openbmc_project/Software/Version/error.hpp does not need to be included, so remove nobase_nodist_include. Change-Id: Ie268ff17aeef2a341842b124e8653f725993fabc Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Add "noinst" to generated headerGunnar Mills2017-08-291-3/+7
| | | | | | | Resolves openbmc/openbmc#2221 Change-Id: I16333d013ea76921ab16c7660103433ddc85eb0e Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Generate sdbusplus bindings for Associations.Gunnar Mills2017-08-281-3/+15
| | | | | | | | | - Generate sdbusplus server bindings for the org.openbmc.Associations interface in makefile. - Add YAML file that describes the org.openbmc.Associations interface. Change-Id: Ibb83e4828280f0a5383e901b914e40257eb4a7ff Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* BMC: Store RedundancyPriority on System.Saqib Khan2017-08-201-0/+1
| | | | | | | | | | | | | | | This commit extends the functionality of the BMC software updater by preserving RedundancyPriority values through any kind of reset. This is accomplished by storing priority values in serial files in /var/lib/obmc/phosphor-bmc-code-mgmt/ using the Cereal library. Each time a priority value is modified, the value in the corresponding version file is adjusted. Resolves openbmc/openbmc#2125 Change-Id: Ie697279895bc5ff5fdef31fa88c78dc2bc63390a Signed-off-by: Saqib Khan <khansa@us.ibm.com>
* Move Active BMC version object to item_updater.Saqib Khan2017-06-261-2/+0
| | | | | | | | | - There needs to be only one version class for both BMC and PNOR images. Thus removing the BMCVERSION class and moving the functionality to MANAGER class. Change-Id: I6dda818960588cfd9ed345fe93068531efc7a877 Signed-off-by: Saqib Khan <khansa@us.ibm.com>
* item_updater: Add version dbus object.Saqib Khan2017-06-151-0/+1
| | | | | | | | | Implementing the Version object under item_updater helps to retain the version of the active images after the bmc is rebooted and the image_dir no longer holds version file. Change-Id: I55349bbc62b212b4e034239f4f6743129c8b1070 Signed-off-by: Saqib Khan <khansa@us.ibm.com>
* Create Constructor for BMC ActivationSaqib Khan2017-06-021-1/+3
| | | | | | | | | | | | - Create Activation Block Transition - Create override functions so that actions can be taken based on the value that the properties are being set to. - Create ActivationBlockTransition when the Activating property is set to Activating. Remove it when the property is set to anything else. Change-Id: Id48d049cca54ae0bcbed6afe41e67e20e6a5e44c Signed-off-by: Saqib Khan <khansa@us.ibm.com>
* Create initial BMC Item UpdaterGunnar Mills2017-05-241-2/+10
| | | | | | | This is the initial BMC Item Updater. Change-Id: I1c4f8ec94d7d35a0e03a363007b79414b20058ac Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Create error log on failGunnar Mills2017-05-241-0/+17
| | | | | | | | Use elog to create error log on fail. Resolves openbmc/openbmc#1352 Change-Id: I1c362390110c5b3fcae3335a0bd0a7dd11540883 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Rename class Version to BMCVersionGunnar Mills2017-05-111-2/+2
| | | | | | | | | | | The class Version is renamed to BMCVersion. This is needed so there is not 2 classes with the same name, Version, under namespace phosphor software manager. This name is more appropriate for the BMC Version Class that handles the active BMC code. Change-Id: I9eef4f5240f6cac90a31d6c31aa7f518213830e3 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Move version gtests to phosphor-bmc-code-mgmtGunnar Mills2017-05-111-0/+2
| | | | | | | | | | | Moving the version gtests from openpower-pnor-code-mgmt to phosphor-bmc-code-mgmt. This code has been reviewed before, the only changes are renaming to "namespace phosphor", changes related to renaming the files, and changes related to renaming function getVersion to getValue. Change-Id: Id799fcfff8effbb4c63f1f4e7169aa425567dd41 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Call processImage from inotifyGunnar Mills2017-05-111-2/+6
| | | | | Change-Id: I0b748f93f8e34552cef67616317c28660284ac99 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Create image dir if neededGunnar Mills2017-04-271-1/+2
| | | | | Change-Id: If1c1a62292027ae98d1ba1c6d62bd72d0ae8a307 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* image manager: add inotify watchDeepak Kodihalli2017-04-181-3/+18
| | | | | | | | | | | | Add an inotify watch to the known software image location. Hook the inotify fd with sd-event, so that on callback, version d-bus objects can be created based on the newly added software image. Resolves openbmc/openbmc#1444. Change-Id: I5c460f820c8d3a851b8ddc969f26d38870c36991 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Rename version_software_manager_main.cppDeepak Kodihalli2017-04-131-1/+1
| | | | | | | | | | In view of a single process that watches image upload locations via inotify, and creates software version d-bus objects (both default and via user-supplied images), renaming version_software_manager_main.cpp to image_manager_main.cpp. Change-Id: Id12deefd9377f7ba4ce4889f26f2f32d01cc5d38 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Initial Download managerGunnar Mills2017-04-071-1/+8
| | | | | | | | This is the basic download manager that implements xyz/openbmc_project/Common/TFTP.interface.yaml Change-Id: I429b0f2fbce3864dee5051af727b88b3a3fe1227 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Use phosphor-dbus-interfaces directlyGunnar Mills2017-02-141-4/+6
| | | | | Change-Id: I6d65c4a582115a1280ed705eb33f6c354d001f21 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Add Software Activation InterfaceGunnar Mills2017-02-101-1/+2
| | | | | Change-Id: I922d6cfe31b6a20bd228167c5e12def69d5ef113 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Add base support for BMC code managementGunnar Mills2017-02-101-0/+11
This is the starting code needed to build the application. Change-Id: Ied9beee1ea4f12805622c17c99c01b89c3f74d50 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
OpenPOWER on IntegriCloud