File: disable-print-memory-usage

package info (click to toggle)
picotool 2.2.0-a4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,676 kB
  • sloc: cpp: 61,023; ansic: 2,999; asm: 2,048; perl: 219; sh: 212; python: 97; makefile: 41; xml: 18
file content (22 lines) | stat: -rw-r--r-- 914 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Disable -Wl,--print-memory-usage as that messes with blhc
 With that linker option, cmake output will be interrupted by this:
 Memory region         Used Size  Region Size  %age Used
        RAM_START:          68 B         68 B    100.00%
        SCRATCH_X:        3992 B       4028 B     99.11%
        SCRATCH_Y:        1952 B         2 KB     95.31%
              RAM:        1428 B         2 KB     69.73%
Author: Johannes Schauer Marin Rodrigues <josch@debian.org>
Forwarded: not-needed

--- a/enc_bootloader/CMakeLists.txt
+++ b/enc_bootloader/CMakeLists.txt
@@ -105,9 +105,6 @@ if (NOT USE_PRECOMPILED)
         target_compile_definitions(enc_bootloader PRIVATE ALLOW_DEBUGGING=1)
     endif()
 
-    # print memory usage
-    target_link_options(enc_bootloader PUBLIC -Wl,--print-memory-usage)
-
     pico_minimize_runtime(enc_bootloader)
 
     pico_set_binary_type(enc_bootloader no_flash)