Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
polpo committed Dec 1, 2024
1 parent 0836bc6 commit 8152361
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 20 deletions.
6 changes: 0 additions & 6 deletions sw/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -315,15 +315,9 @@ endfunction()
function(build_ne2k TARGET_NAME MULTIFW)
config_target(${TARGET_NAME} ${MULTIFW})
pico_set_program_name(${TARGET_NAME} "picogus-ne2k")
# set(USB_JOYSTICK FALSE)
# set(PICO_BOARD PICO_W) # For now, until USB Dongle
# set(PICO_BOARD picow-fast)
#set(PICO_CYW43_SUPPORTED "1")
#pico_register_common_scope_var(PICO_CYW43_SUPPORTED)
target_compile_definitions(${TARGET_NAME} PRIVATE
NE2000=1
PICOW=1
# CYW43_RESOURCE_ATTRIBUTE="__in_flash()"
CYW43_CONFIG_FILE="cyw43_firmware.h"
CYW43_PIO_CLOCK_DIV_INT=3
)
Expand Down
23 changes: 9 additions & 14 deletions sw/ne2000/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,13 @@ target_sources(ne2000 INTERFACE

target_link_libraries(ne2000 INTERFACE
pico_cyw43_arch_none
# pico_cyw43_arch_poll
)
# target_compile_definitions(pico_cyw43_arch_poll_headers INTERFACE
# CYW43_LWIP=0
# )
# target_compile_definitions(ne2000 INTERFACE
# CYW43_LWIP=0
# )
target_compile_definitions(pico_cyw43_arch_none_headers INTERFACE
PICO_CYW43_ARCH_THREADSAFE_BACKGROUND=1
)
target_compile_definitions(ne2000 INTERFACE
# PICO_CYW43_ARCH_POLL=1
PICO_CYW43_ARCH_THREADSAFE_BACKGROUND=1
)

if(PROJECT_TYPE STREQUAL "NE2K")
target_compile_definitions(pico_cyw43_arch_none_headers INTERFACE
PICO_CYW43_ARCH_THREADSAFE_BACKGROUND=1
)
target_compile_definitions(ne2000 INTERFACE
PICO_CYW43_ARCH_THREADSAFE_BACKGROUND=1
)
endif()

0 comments on commit 8152361

Please sign in to comment.