summaryrefslogtreecommitdiff
path: root/meta-google/recipes-phosphor/flash/dummy-gbmc-update
diff options
context:
space:
mode:
authorBrandon Kim <brandonkim@google.com>2021-07-21 01:48:31 +0300
committerBrandon Kim <brandonkim@google.com>2021-08-02 19:23:11 +0300
commit236c94eb62df7d2694225996d83c51d45594004f (patch)
treec3538c5823cd70ca99374c6af899464f5d7271f7 /meta-google/recipes-phosphor/flash/dummy-gbmc-update
parent8bb79f27b6e61b856bd75fc0316e66326eadef8f (diff)
downloadopenbmc-236c94eb62df7d2694225996d83c51d45594004f.tar.xz
meta-google: flash: Import dummy-gbmc-update
Dummy image uploader for sending debug binaries. Google-Bug-Id: 179618162 Upstream: 22e2c3dd5f610777dee173a09d8e82dc2509a975 Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: I53c0defeefffa007d71d68ceeb2602d83c22f523
Diffstat (limited to 'meta-google/recipes-phosphor/flash/dummy-gbmc-update')
-rw-r--r--meta-google/recipes-phosphor/flash/dummy-gbmc-update/config-dummy.json19
-rw-r--r--meta-google/recipes-phosphor/flash/dummy-gbmc-update/dummy-verify.service6
2 files changed, 25 insertions, 0 deletions
diff --git a/meta-google/recipes-phosphor/flash/dummy-gbmc-update/config-dummy.json b/meta-google/recipes-phosphor/flash/dummy-gbmc-update/config-dummy.json
new file mode 100644
index 000000000..e68e9105b
--- /dev/null
+++ b/meta-google/recipes-phosphor/flash/dummy-gbmc-update/config-dummy.json
@@ -0,0 +1,19 @@
+[{
+ "blob": "/flash/dummy",
+ "handler": {
+ "type": "file",
+ "path": "/run/initramfs/bmc-image"
+ },
+ "actions": {
+ "preparation": {
+ "type": "skip"
+ },
+ "verification": {
+ "type": "systemd",
+ "unit": "dummy-verify.service"
+ },
+ "update": {
+ "type": "skip"
+ }
+ }
+}]
diff --git a/meta-google/recipes-phosphor/flash/dummy-gbmc-update/dummy-verify.service b/meta-google/recipes-phosphor/flash/dummy-gbmc-update/dummy-verify.service
new file mode 100644
index 000000000..ec320d551
--- /dev/null
+++ b/meta-google/recipes-phosphor/flash/dummy-gbmc-update/dummy-verify.service
@@ -0,0 +1,6 @@
+[Unit]
+Description=Dummy flash file verification
+
+[Service]
+Type=oneshot
+ExecStart=/bin/mv /run/initramfs/bmc-image /run/initramfs/dummy