summaryrefslogtreecommitdiff
path: root/3rd-party/pico-sdk.patch
diff options
context:
space:
mode:
Diffstat (limited to '3rd-party/pico-sdk.patch')
-rw-r--r--3rd-party/pico-sdk.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/3rd-party/pico-sdk.patch b/3rd-party/pico-sdk.patch
new file mode 100644
index 0000000..a74c9f0
--- /dev/null
+++ b/3rd-party/pico-sdk.patch
@@ -0,0 +1,33 @@
+diff --git a/src/rp2040/boot_stage2/CMakeLists.txt b/src/rp2040/boot_stage2/CMakeLists.txt
+index c576878..dd8d1e8 100644
+--- a/src/rp2040/boot_stage2/CMakeLists.txt
++++ b/src/rp2040/boot_stage2/CMakeLists.txt
+@@ -43,7 +43,7 @@ function(pico_define_boot_stage2 NAME SOURCES)
+ if (PICO_C_COMPILER_IS_CLANG)
+ target_link_options(${NAME} PRIVATE "-nostdlib")
+ elseif (PICO_C_COMPILER_IS_GNU)
+- target_link_options(${NAME} PRIVATE "--specs=nosys.specs")
++ #target_link_options(${NAME} PRIVATE "--specs=nosys.specs")
+ target_link_options(${NAME} PRIVATE "-nostartfiles")
+ endif ()
+
+diff --git a/src/rp2_common/pico_runtime/CMakeLists.txt b/src/rp2_common/pico_runtime/CMakeLists.txt
+index 3665cd8..bed4b47 100644
+--- a/src/rp2_common/pico_runtime/CMakeLists.txt
++++ b/src/rp2_common/pico_runtime/CMakeLists.txt
+@@ -46,7 +46,7 @@ endforeach()
+
+ # todo is this correct/needed?
+ if (PICO_C_COMPILER_IS_GNU)
+- target_link_options(pico_runtime INTERFACE "--specs=nosys.specs")
++ #target_link_options(pico_runtime INTERFACE "--specs=nosys.specs")
+ elseif (PICO_C_COMPILER_IS_CLANG)
+ # target_link_options(pico_runtime INTERFACE "-nostdlib")
+ endif()
+@@ -117,4 +117,4 @@ function(pico_minimize_runtime TARGET)
+ if (NOT RUNTIME_INCLUDE_FPGA_CHECK)
+ target_compile_definitions(${TARGET} PRIVATE PICO_NO_FPGA_CHECK=1)
+ endif()
+-endfunction()
+\ No newline at end of file
++endfunction()