summaryrefslogtreecommitdiff
path: root/3rd-party/pico-sdk.patch
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-11-04 12:47:28 -0700
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-11-04 12:47:28 -0700
commit165130ef99822ab7c8a8765e7f593522b9faa925 (patch)
tree2bb00d89d9a80cb0f8369965cc60a1a0d8b38bb2 /3rd-party/pico-sdk.patch
parent29f9994856f1f56c40e9c54ec5e8f29ba8d3387e (diff)
wip picolibclukeshu/picolibc
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()