1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-15 06:53:07 +01:00

intermediate: reorganize hardware definitions

This commit is contained in:
andreas
2023-08-30 10:15:25 +02:00
parent 882bc55a49
commit 5dc2c98642
3 changed files with 77 additions and 82 deletions

View File

@@ -282,8 +282,11 @@ def cleangenerated(source, target, env):
print("#prescript...")
prebuild(env)
board="PLATFORM_BOARD_%s"%env["BOARD"].replace("-","_").upper()
print("Board=#%s#"%board)
env.Append(
LINKFLAGS=[ "-u", "custom_app_desc" ]
LINKFLAGS=[ "-u", "custom_app_desc" ],
CPPDEFINES=[(board,"1")]
)
#script does not run on clean yet - maybe in the future
env.AddPostAction("clean",cleangenerated)