disable service files for Updater and Version

Add the service files for Updater and Version manager  only if the
software-update-dbus-interface meson option is disabled. These services
will be replaced by new Software.Manager service.

Tested -
```
> curl -k -H "X-Auth-Token: $token" -H "Content-Type:multipart/form-data" -X POST -F UpdateParameters="{\"Targets\":[\"/redfish/v1/UpdateService/FirmwareInventory/a79d71e4\"],\"@Redfish.OperationApplyTime\":\"OnReset\"};type=application/json" -F "UpdateFile=@obmc-phosphor-image-romulus-20241015174416.static.mtd.tar;type=application/octet-stream" https://${bmc}/redfish/v1/UpdateService/update
{
  "@odata.id": "/redfish/v1/TaskService/Tasks/0",
  "@odata.type": "#Task.v1_4_3.Task",
  "Id": "0",
  "TaskState": "Running",
  "TaskStatus": "OK"
}

> systemctl status xyz.openbmc_project.Software.Manager
* xyz.openbmc_project.Software.Manager.service - Phosphor Software Manager
     Loaded: loaded (/usr/lib/systemd/system/xyz.openbmc_project.Software.Manager.service; enabled; preset: enabled)
     Active: active (running) since Thu 2024-11-14 00:54:43 UTC; 2min 8s ago
    Process: 272 ExecStartPre=/bin/sh -c mkdir -p /tmp/images (code=exited, status=0/SUCCESS)
   Main PID: 290 (phosphor-softwa)
        CPU: 995ms
     CGroup: /system.slice/xyz.openbmc_project.Software.Manager.service
             `-290 /usr/bin/phosphor-software-manager

Nov 14 00:54:11 romulus systemd[1]: Starting Phosphor Software Manager...
Nov 14 00:54:22 romulus phosphor-software-manager[290]: Creating Software Manager
Nov 14 00:54:43 romulus systemd[1]: Started Phosphor Software Manager.

> systemctl status  xyz.openbmc_project.Software.Version.service
* xyz.openbmc_project.Software.Version.service - Phosphor Version Software Manager
     Loaded: loaded (/usr/lib/systemd/system/xyz.openbmc_project.Software.Version.service; enabled; preset: enabled)
     Active: active (running) since Thu 2024-11-14 01:35:19 UTC; 38s ago
    Process: 345 ExecStartPre=/bin/sh -c mkdir -p /tmp/images (code=exited, status=0/SUCCESS)
   Main PID: 350 (phosphor-versio)
        CPU: 391ms
     CGroup: /system.slice/xyz.openbmc_project.Software.Version.service
             `-350 /usr/bin/phosphor-version-software-manager

Nov 14 01:35:10 romulus systemd[1]: Starting Phosphor Version Software Manager...
Nov 14 01:35:19 romulus systemd[1]: Started Phosphor Version Software Manager.
> systemctl status xyz.openbmc_project.Software.BMC.Updater.service
* xyz.openbmc_project.Software.BMC.Updater.service - OpenBMC Software Update Manager
     Loaded: loaded (/usr/lib/systemd/system/xyz.openbmc_project.Software.BMC.Updater.service; enabled; preset: enabled)
    Drop-In: /usr/lib/systemd/system/xyz.openbmc_project.Software.BMC.Updater.service.d
             `-software-bmc-updater.conf
     Active: active (running) since Thu 2024-11-14 01:35:00 UTC; 1min 20s ago
   Main PID: 271 (phosphor-image-)
        CPU: 825ms
     CGroup: /system.slice/xyz.openbmc_project.Software.BMC.Updater.service
             `-271 /usr/bin/phosphor-image-updater

Nov 14 01:34:42 romulus systemd[1]: Starting OpenBMC Software Update Manager...

> systemctl status xyz.openbmc_project.Software.Manager.service
Unit xyz.openbmc_project.Software.Manager.service could not be found.
```

Change-Id: I67b40d18fce6e5a67d6fad9a5e3c7a0c74cd11aa
Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
1 file changed
tree: 27c46ef61a474bd632ffdfff05da2987ca9eb258
  1. mmc/
  2. side-switch/
  3. static/
  4. subprojects/
  5. test/
  6. ubi/
  7. usb/
  8. .clang-format
  9. .clang-tidy
  10. .gitignore
  11. .shellcheck
  12. activation.cpp
  13. activation.hpp
  14. detect-slot-aspeed
  15. download_manager.cpp
  16. download_manager.hpp
  17. download_manager_main.cpp
  18. flash.hpp
  19. force-reboot.service.in
  20. gen-bios-tar
  21. image_manager.cpp
  22. image_manager.hpp
  23. image_manager_main.cpp
  24. image_verify.cpp
  25. image_verify.hpp
  26. images.cpp
  27. images.hpp
  28. item_updater.cpp
  29. item_updater.hpp
  30. item_updater_helper.hpp
  31. item_updater_main.cpp
  32. LICENSE
  33. meson.build
  34. meson.options
  35. msl_verify.cpp
  36. msl_verify.hpp
  37. obmc-flash-bmc
  38. obmc-flash-bmc-setenv@.service.in
  39. obmc-flash-host-bios@.service.in
  40. openssl_alloc.cpp
  41. openssl_alloc.hpp
  42. OWNERS
  43. README.md
  44. reboot-guard-disable.service.in
  45. reboot-guard-enable.service.in
  46. reset-cs0-aspeed
  47. serialize.cpp
  48. serialize.hpp
  49. software.conf
  50. software_manager.cpp
  51. software_utils.cpp
  52. software_utils.hpp
  53. sync-once.sh
  54. sync_manager.cpp
  55. sync_manager.hpp
  56. sync_manager_main.cpp
  57. sync_watch.cpp
  58. sync_watch.hpp
  59. synclist
  60. update_manager.cpp
  61. update_manager.hpp
  62. usr-local.mount.in
  63. utils.cpp
  64. utils.hpp
  65. version.cpp
  66. version.hpp
  67. watch.cpp
  68. watch.hpp
  69. xyz.openbmc_project.Software.BMC.Updater.service.in
  70. xyz.openbmc_project.Software.Download.service.in
  71. xyz.openbmc_project.Software.Manager.service.in
  72. xyz.openbmc_project.Software.Sync.service.in
  73. xyz.openbmc_project.Software.Version.service.in
README.md

phosphor-bmc-code-mgmt

Phosphor BMC Code Management provides a set of system software management applications. More information can be found at Software Architecture

To Build

To build this package, do the following steps:

  1. meson build
  2. ninja -C build

To clean the repository run rm -r build.