Skip to content

Commit 5c5a112

Browse files
committed
Re-apply espressif#6464
1 parent 31510f4 commit 5c5a112

4 files changed

+4
-4
lines changed

Diff for: tools/platformio-build-esp32.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
"-u", "newlib_include_pthread_impl",
113113
"-u", "newlib_include_assert_impl",
114114
"-u", "__cxa_guard_dummy",
115-
'-Wl,-Map="%s"' % join("$BUILD_DIR", basename(env.subst("${PROJECT_DIR}.map")))
115+
'-Wl,-Map="%s"' % join("${BUILD_DIR}", "${PROGNAME}.map")
116116
],
117117

118118
CPPPATH=[

Diff for: tools/platformio-build-esp32c3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
"-u", "newlib_include_pthread_impl",
112112
"-u", "newlib_include_assert_impl",
113113
"-u", "__cxa_guard_dummy",
114-
'-Wl,-Map="%s"' % join("$BUILD_DIR", basename(env.subst("${PROJECT_DIR}.map")))
114+
'-Wl,-Map="%s"' % join("${BUILD_DIR}", "${PROGNAME}.map")
115115
],
116116

117117
CPPPATH=[

Diff for: tools/platformio-build-esp32s2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
"-u", "newlib_include_pthread_impl",
109109
"-u", "newlib_include_assert_impl",
110110
"-u", "__cxa_guard_dummy",
111-
'-Wl,-Map="%s"' % join("$BUILD_DIR", basename(env.subst("${PROJECT_DIR}.map")))
111+
'-Wl,-Map="%s"' % join("${BUILD_DIR}", "${PROGNAME}.map")
112112
],
113113

114114
CPPPATH=[

Diff for: tools/platformio-build-esp32s3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
"-u", "newlib_include_pthread_impl",
109109
"-u", "newlib_include_assert_impl",
110110
"-u", "__cxa_guard_dummy",
111-
'-Wl,-Map="%s"' % join("$BUILD_DIR", basename(env.subst("${PROJECT_DIR}.map")))
111+
'-Wl,-Map="%s"' % join("${BUILD_DIR}", "${PROGNAME}.map")
112112
],
113113

114114
CPPPATH=[

0 commit comments

Comments
 (0)