diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-25 21:55:07 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-25 21:55:07 -0600 |
commit | 7c03983529f6502206cd40692c794b7c6605d9bf (patch) | |
tree | ecac9afa4928b6a1c040c97662371c01fde046c3 /cmd | |
parent | 9f4494685a29714c57cc11d62dead71f7004e061 (diff) |
Enable pico-sdk for host binaries
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/sbc_harness/CMakeLists.txt | 6 | ||||
-rw-r--r-- | cmd/sbc_harness/hw/w5500.c | 2 | ||||
-rw-r--r-- | cmd/srv9p/CMakeLists.txt | 4 |
3 files changed, 10 insertions, 2 deletions
diff --git a/cmd/sbc_harness/CMakeLists.txt b/cmd/sbc_harness/CMakeLists.txt index 54553f0..d6261cb 100644 --- a/cmd/sbc_harness/CMakeLists.txt +++ b/cmd/sbc_harness/CMakeLists.txt @@ -3,7 +3,7 @@ # Copyright (C) 2024 Luke T. Shumaker <lukeshu@lukeshu.com> # SPDX-Licence-Identifier: AGPL-3.0-or-later -pico_sdk_init() +if (PICO_PLATFORM STREQUAL "rp2040") add_executable(sbc_harness main.c @@ -21,7 +21,7 @@ target_link_libraries(sbc_harness libmisc libusb - libdhcp + #libdhcp ) pico_enable_stdio_usb(sbc_harness 0) @@ -31,3 +31,5 @@ pico_enable_stdio_rtt(sbc_harness 0) pico_add_extra_outputs(sbc_harness) # create .map/.bin/.hex/.uf2 files in addition to .elf pico_set_program_url(sbc_harness "https://git.lukeshu.com/sbc-harness") + +endif() diff --git a/cmd/sbc_harness/hw/w5500.c b/cmd/sbc_harness/hw/w5500.c index 3bcc0a4..6b90b99 100644 --- a/cmd/sbc_harness/hw/w5500.c +++ b/cmd/sbc_harness/hw/w5500.c @@ -296,6 +296,7 @@ implements_net_stream_listener *w5500_tcp_listen(struct w5500 *chip, uint8_t soc return &chip->listeners[socknum]; } +/* implements_net_packet_conn *w5500_udp_conn(struct w5500 *chip, uint8_t socknum, uint16_t port) { assert(chip); @@ -307,6 +308,7 @@ implements_net_packet_conn *w5500_udp_conn(struct w5500 *chip, uint8_t socknum, return &chip->listeners[socknum]; } +*/ /* tcp_listener methods *******************************************************/ diff --git a/cmd/srv9p/CMakeLists.txt b/cmd/srv9p/CMakeLists.txt index 52e5171..ccad845 100644 --- a/cmd/srv9p/CMakeLists.txt +++ b/cmd/srv9p/CMakeLists.txt @@ -3,6 +3,8 @@ # Copyright (C) 2024 Luke T. Shumaker <lukeshu@lukeshu.com> # SPDX-Licence-Identifier: AGPL-3.0-or-later +if (PICO_PLATFORM STREQUAL "host") + set(static_srcs static/README.md static/Documentation/x @@ -50,3 +52,5 @@ add_custom_command( ) target_sources(srv9p PRIVATE ${static_objs} static.h) + +endif() |