Commit a9c9a88
add compatibility between icecube800bc and celesticabmc
Summary:
Recently we change the image name of `icecube800bc` BMC to `celesticabmc`. This means newer BMC image of `icecube800bc` use `celesticabmc` name instead
However, there are some `icecube800bc` devices that are already delivered and we would like to have those devices to be able to be flashed with newer `celesticabmc` image
This diff introduce compatibility check to prevent `flashy` tool from raising issue if it encounter this case (`icecube800bc` device is flashed with `celesticabmc` BMC image)
Test Plan:
# unit test
```
[[email protected] /data/users/malikrafsan/openbmc/tools/flashy (D89720540)]$ go test ./...
ok github.com/facebook/openbmc/tools/flashy 2.263s
ok github.com/facebook/openbmc/tools/flashy/checks_and_remediations/bletchley (cached)
ok github.com/facebook/openbmc/tools/flashy/checks_and_remediations/catalina (cached)
ok github.com/facebook/openbmc/tools/flashy/checks_and_remediations/common (cached)
ok github.com/facebook/openbmc/tools/flashy/checks_and_remediations/morgan800cc (cached)
ok github.com/facebook/openbmc/tools/flashy/checks_and_remediations/ventura (cached)
ok github.com/facebook/openbmc/tools/flashy/checks_and_remediations/wedge100 (cached)
ok github.com/facebook/openbmc/tools/flashy/checks_and_remediations/yamp (cached)
ok github.com/facebook/openbmc/tools/flashy/flash_procedure (cached)
ok github.com/facebook/openbmc/tools/flashy/install (cached)
ok github.com/facebook/openbmc/tools/flashy/lib/fileutils (cached)
ok github.com/facebook/openbmc/tools/flashy/lib/flash (cached)
ok github.com/facebook/openbmc/tools/flashy/lib/flash/flashcp (cached)
ok github.com/facebook/openbmc/tools/flashy/lib/flash/flashutils (cached)
ok github.com/facebook/openbmc/tools/flashy/lib/flash/flashutils/devices (cached)
? github.com/facebook/openbmc/tools/flashy/lib/logger [no test files]
ok github.com/facebook/openbmc/tools/flashy/lib/step (cached)
ok github.com/facebook/openbmc/tools/flashy/lib/utils (cached)
ok github.com/facebook/openbmc/tools/flashy/lib/validate 0.004s
ok github.com/facebook/openbmc/tools/flashy/lib/validate/image (cached)
ok github.com/facebook/openbmc/tools/flashy/lib/validate/partition (cached)
? github.com/facebook/openbmc/tools/flashy/tests [no test files]
? github.com/facebook/openbmc/tools/flashy/utilities [no test files]
```
---
# test build
```
./build.sh && ./build_dev.sh
```
Reviewed By: doranand
Differential Revision: D89720540
fbshipit-source-id: f577f58a9e50c4878ac47ce0ad73f857c889361b1 parent c19f2b6 commit a9c9a88
File tree
2 files changed
+8
-1
lines changed- tools/flashy/lib/validate
2 files changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
164 | 170 | | |
165 | 171 | | |
166 | 172 | | |
| |||
176 | 182 | | |
177 | 183 | | |
178 | 184 | | |
179 | | - | |
| 185 | + | |
180 | 186 | | |
181 | 187 | | |
182 | 188 | | |
| |||
0 commit comments