supports binary-format, only esp* supported for now
This commit is contained in:
14
internal/firmware/firmware.go
Normal file
14
internal/firmware/firmware.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package firmware
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func MakeFirmwareImage(infile, outfile, format string) error {
|
||||
fmt.Printf("Creating firmware image from %s to %s with format %s\n", infile, outfile, format)
|
||||
if strings.HasPrefix(format, "esp") {
|
||||
return makeESPFirmareImage(infile, outfile, format)
|
||||
}
|
||||
return fmt.Errorf("unsupported firmware format: %s", format)
|
||||
}
|
||||
Reference in New Issue
Block a user