mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-23 22:09:03 +00:00
esp8266: add support for this chip
Many thanks to cnlohr for the nosdk8266 project:
https://github.com/cnlohr/nosdk8266
This commit is contained in:
committed by
Ron Evans
parent
0b9b293651
commit
2ce17a1892
+4
-3
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user