Browse Source

Remove build.h and APP_BUILD_FLAGS

rfm69
Xose Pérez 6 years ago
parent
commit
394ef18299
4 changed files with 0 additions and 21 deletions
  1. +0
    -2
      code/espurna/config/all.h
  2. +0
    -3
      code/espurna/mdns.ino
  3. +0
    -3
      code/espurna/utils.ino
  4. +0
    -13
      code/extra_scripts.py

+ 0
- 2
code/espurna/config/all.h View File

@ -34,5 +34,3 @@
#ifdef USE_CORE_VERSION_H #ifdef USE_CORE_VERSION_H
#include "core_version.h" #include "core_version.h"
#endif #endif
#include "build.h"

+ 0
- 3
code/espurna/mdns.ino View File

@ -67,9 +67,6 @@ void mdnsServerSetup() {
itoa(ESP.getFreeSketchSpace(), buffer, 10); itoa(ESP.getFreeSketchSpace(), buffer, 10);
MDNS.addServiceTxt("arduino", "tcp", "free_space", (const char *) buffer); MDNS.addServiceTxt("arduino", "tcp", "free_space", (const char *) buffer);
} }
#ifdef APP_BUILD_FLAGS
//MDNS.addServiceTxt("arduino", "tcp", "build_flags", APP_BUILD_FLAGS);
#endif
wifiRegister([](justwifi_messages_t code, char * parameter) { wifiRegister([](justwifi_messages_t code, char * parameter) {


+ 0
- 3
code/espurna/utils.ino View File

@ -259,9 +259,6 @@ void info() {
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
#ifdef APP_BUILD_FLAGS
DEBUG_MSG_P(PSTR("[INIT] BUILD_FLAGS: %s\n"), APP_BUILD_FLAGS);
#endif
DEBUG_MSG_P(PSTR("[INIT] BOARD: %s\n"), getBoardName().c_str()); DEBUG_MSG_P(PSTR("[INIT] BOARD: %s\n"), getBoardName().c_str());
DEBUG_MSG_P(PSTR("[INIT] SUPPORT:")); DEBUG_MSG_P(PSTR("[INIT] SUPPORT:"));


+ 0
- 13
code/extra_scripts.py View File

@ -58,18 +58,6 @@ def check_size(source, target, env):
# print clr(Color.LIGHT_RED, "File too large for OTA!") # print clr(Color.LIGHT_RED, "File too large for OTA!")
# Exit(1) # Exit(1)
def add_build_flags(source, target, env):
build_h = "espurna/config/build.h"
build_flags = env['BUILD_FLAGS'][0]
lines = open(build_h).readlines()
with open(build_h, "w") as fh:
for line in lines:
if "APP_BUILD_FLAGS" in line:
fh.write("#define APP_BUILD_FLAGS \"%s\"" % build_flags)
else:
fh.write(line)
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# Hooks # Hooks
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
@ -77,5 +65,4 @@ def add_build_flags(source, target, env):
remove_float_support() remove_float_support()
#env.AddPreAction("buildprog", cpp_check) #env.AddPreAction("buildprog", cpp_check)
env.AddPreAction("$BUILD_DIR/src/espurna.ino.o", add_build_flags)
env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", check_size) env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", check_size)

Loading…
Cancel
Save