From dcb29070ac88f7dd072715b92b5a00ff7eac1cb5 Mon Sep 17 00:00:00 2001 From: Andrew Doran Date: Fri, 10 Jan 2025 05:36:08 -0800 Subject: [PATCH] add flash procedure for catalina Summary: Nothing special just copy across from yosemite4. XXX should be codegen. Test Plan: ``` 0 ~/local/openbmc/tools/flashy $ ./build.sh && ./build_dev.sh && go test ./... ? github.com/facebook/openbmc/tools/flashy/flash_procedure [no test files] ? github.com/facebook/openbmc/tools/flashy/lib/logger [no test files] ? github.com/facebook/openbmc/tools/flashy/tests [no test files] ? github.com/facebook/openbmc/tools/flashy/utilities [no test files] ok github.com/facebook/openbmc/tools/flashy 2.405s ok github.com/facebook/openbmc/tools/flashy/checks_and_remediations/bletchley (cached) ok github.com/facebook/openbmc/tools/flashy/checks_and_remediations/common 0.215s 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/install 0.004s 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) 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) 0 ~/local/openbmc/tools/flashy $ ``` Reviewed By: lsiudut Differential Revision: D68015478 Privacy Context Container: L1188897 fbshipit-source-id: 8bd229be7809900b062b96b6868539e60f9e6a30 --- .../flashy/flash_procedure/flash_catalina.go | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 tools/flashy/flash_procedure/flash_catalina.go diff --git a/tools/flashy/flash_procedure/flash_catalina.go b/tools/flashy/flash_procedure/flash_catalina.go new file mode 100644 index 000000000000..2d02d19d42d5 --- /dev/null +++ b/tools/flashy/flash_procedure/flash_catalina.go @@ -0,0 +1,29 @@ +/** + * Copyright 2020-present Facebook. All Rights Reserved. + * + * This program file is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program in a file named COPYING; if not, write to the + * Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +package flash_procedure + +import ( + "github.com/facebook/openbmc/tools/flashy/lib/flash" + "github.com/facebook/openbmc/tools/flashy/lib/step" +) + +func init() { + step.RegisterStep(flash.FlashCp) +}