File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -73,9 +73,8 @@ compiler.elf2hex.extra_flags=
73
73
recipe.hooks.core.prebuild.1.pattern=bash -c "mkdir -p {build.path}/core && echo \#define ARDUINO_ESP8266_GIT_VER 0x`git --git-dir {runtime.platform.path}/.git rev-parse --short=8 HEAD 2>/dev/null || echo ffffffff` >{build.path}/core/core_version.h"
74
74
recipe.hooks.core.prebuild.2.pattern=bash -c "mkdir -p {build.path}/core && echo \#define ARDUINO_ESP8266_GIT_DESC `cd {runtime.platform.path}; git describe --tags 2>/dev/null || echo unix-{version}` >>{build.path}/core/core_version.h"
75
75
## windows-compatible version without git
76
- recipe.hooks.core.prebuild.1.pattern.windows=cmd.exe /c mkdir {build.path}\\core
77
- recipe.hooks.core.prebuild.2.pattern.windows=cmd.exe /c echo #define ARDUINO_ESP8266_GIT_VER 0x00000000 > {build.path}\\core\\core_version.h
78
- recipe.hooks.core.prebuild.3.pattern.windows=cmd.exe /c echo #define ARDUINO_ESP8266_GIT_DESC win-{version} >> {build.path}\\core\\core_version.h
76
+ recipe.hooks.core.prebuild.1.pattern.windows=cmd.exe /c mkdir {build.path}\core & (echo #define ARDUINO_ESP8266_GIT_VER 0x00000000 & echo #define ARDUINO_ESP8266_GIT_DESC win-{version} ) > {build.path}\core\core_version.h
77
+ recipe.hooks.core.prebuild.2.pattern.windows=
79
78
80
79
## Compile c files
81
80
recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.cpreprocessor.flags} {compiler.c.flags} -DF_CPU={build.f_cpu} {build.lwip_flags} {build.debug_port} {build.debug_level} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} -DARDUINO_BOARD="{build.board}" {build.led} {compiler.c.extra_flags} {build.extra_flags} {includes} "{source_file}" -o "{object_file}"
You can’t perform that action at this time.
0 commit comments