Skip to content

Commit 8c63a38

Browse files
doranandfacebook-github-bot
authored andcommitted
add support for sandia
Summary: - the factory build uses a different platform name - new flash procedure Test Plan: ``` 0 ~/local/openbmc/tools/flashy $ ./build.sh && ./build_dev.sh && go test ./... ok github.com/facebook/openbmc/tools/flashy 1.478s ok github.com/facebook/openbmc/tools/flashy/checks_and_remediations/common (cached) ok github.com/facebook/openbmc/tools/flashy/checks_and_remediations/galaxy100 (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) ? github.com/facebook/openbmc/tools/flashy/flash_procedure [no test files] ok github.com/facebook/openbmc/tools/flashy/install 0.006s 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 (cached) 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] 0 ~/local/openbmc/tools/flashy $ echo $? 0 ``` Reviewed By: kawmarco fbshipit-source-id: 6065d1537c512a88040d5f8fcc8d3b863b9fe9f9
1 parent a3ffde2 commit 8c63a38

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/**
2+
* Copyright 2020-present Facebook. All Rights Reserved.
3+
*
4+
* This program file is free software; you can redistribute it and/or modify it
5+
* under the terms of the GNU General Public License as published by the
6+
* Free Software Foundation; version 2 of the License.
7+
*
8+
* This program is distributed in the hope that it will be useful, but WITHOUT
9+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10+
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
11+
* for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License
14+
* along with this program in a file named COPYING; if not, write to the
15+
* Free Software Foundation, Inc.,
16+
* 51 Franklin Street, Fifth Floor,
17+
* Boston, MA 02110-1301 USA
18+
*/
19+
20+
package flash_procedure
21+
22+
import (
23+
"github.com/facebook/openbmc/tools/flashy/lib/flash"
24+
"github.com/facebook/openbmc/tools/flashy/lib/step"
25+
)
26+
27+
func init() {
28+
step.RegisterStep(flash.FlashCp)
29+
}

tools/flashy/lib/validate/compatibility.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ var compatibleVersionMapping = map[string]string{
4040
"fby3pvt": "fby3",
4141
"fby3vboot2": "fby3",
4242
"fbnd": "northdome",
43+
"kodiak": "sandia",
4344
}
4445

4546
var normalizeVersion = func(ver string) string {

0 commit comments

Comments
 (0)