esp8266: add support for this chip

Many thanks to cnlohr for the nosdk8266 project:
    https://github.com/cnlohr/nosdk8266
This commit is contained in:
Ayke van Laethem
2020-02-09 22:42:47 +01:00
committed by Ron Evans
parent 0b9b293651
commit 2ce17a1892
11 changed files with 489 additions and 31 deletions
+4 -3
View File
@@ -292,10 +292,11 @@ func Build(pkgName, outpath string, config *compileopts.Config, action func(Buil
if err != nil {
return err
}
case "esp32":
// Special format for the ESP32 chip (parsed by the ROM bootloader).
case "esp32", "esp8266":
// Special format for the ESP family of chips (parsed by the ROM
// bootloader).
tmppath = filepath.Join(dir, "main"+outext)
err := makeESP32FirmareImage(executable, tmppath)
err := makeESPFirmareImage(executable, tmppath, outputBinaryFormat)
if err != nil {
return err
}