build gz only for ESP8266

This commit is contained in:
Jason2866 2021-01-18 19:21:51 +01:00 committed by GitHub
parent d99ba6992c
commit 1b1b1ed83c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,12 @@ import os
import shutil import shutil
import gzip import gzip
platform = env.PioPlatform()
board = env.BoardConfig()
mcu = board.get("build.mcu", "esp32")
# gzip only for ESP8266
if env["PIOPLATFORM"] != "espressif32":
OUTPUT_DIR = "build_output{}".format(os.path.sep) OUTPUT_DIR = "build_output{}".format(os.path.sep)
def bin_gzip(source, target, env): def bin_gzip(source, target, env):