Skip to content

Commit 85945a1

Browse files
committed
updated and tested windows commands in platform.txt (without git)
1 parent 982c5a0 commit 85945a1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

platform.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,8 @@ compiler.elf2hex.extra_flags=
7373
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"
7474
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"
7575
## 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=
7978

8079
## Compile c files
8180
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}"

0 commit comments

Comments
 (0)