diff --git a/tools/flashy/flash_procedure/flash_janga.go b/tools/flashy/flash_procedure/flash_janga.go new file mode 100644 index 00000000000..67cafa1ed41 --- /dev/null +++ b/tools/flashy/flash_procedure/flash_janga.go @@ -0,0 +1,30 @@ + +/** + * 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) +} diff --git a/tools/flashy/lib/utils/system.go b/tools/flashy/lib/utils/system.go index 54298ce78e4..b5cdceeb1ba 100644 --- a/tools/flashy/lib/utils/system.go +++ b/tools/flashy/lib/utils/system.go @@ -368,7 +368,7 @@ var IsLFOpenBMC = func() (bool) { // IsBMCLite check whether the system is running BMC-lite // For S368275. Make this beautiful later. var IsBMCLite = func() (bool) { - magics := []string{"fbdarwin", "meru"} + magics := []string{"fbdarwin", "meru", "janga", "montblanc"} issueBuf, err := fileutils.ReadFile(etcIssueFilePath) if err != nil {