diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3fd4210..5099091 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,5 +18,6 @@ jobs: name: udpih path: | arm_kernel/arm_kernel.bin.h - pico/build/udpih.uf2 + pico/build_rp2040/udpih.uf2 + pico/build_rp2350/udpih.uf2 if-no-files-found: error diff --git a/.gitignore b/.gitignore index 17a758e..fb37cd8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ .vscode/ -build/ +build*/ *.elf *.bin @@ -14,3 +14,5 @@ build/ *.mod *.mod.c *.order + +*.uf2 diff --git a/pico/CMakeLists.txt b/pico/CMakeLists.txt index fed5992..cedd53f 100644 --- a/pico/CMakeLists.txt +++ b/pico/CMakeLists.txt @@ -3,8 +3,8 @@ cmake_minimum_required(VERSION 3.12) # Pull in SDK (must be before project) include(pico_sdk_import.cmake) -if (PICO_SDK_VERSION_STRING VERSION_LESS "1.3.0") - message(FATAL_ERROR "Raspberry Pi Pico SDK version 1.3.0 (or later) required. Your version is ${PICO_SDK_VERSION_STRING}") +if (PICO_SDK_VERSION_STRING VERSION_LESS "2.0.0") + message(FATAL_ERROR "Raspberry Pi Pico SDK version 2.0.0 (or later) required. Your version is ${PICO_SDK_VERSION_STRING}") endif() set(CMAKE_C_STANDARD 11) @@ -45,4 +45,4 @@ pico_add_extra_outputs(udpih) pico_set_program_name(udpih "udpih") pico_set_program_description(udpih "Wii U USB Host Stack exploit") pico_set_program_url(udpih "https://github.com/GaryOderNichts/udpih") -pico_set_program_version(udpih "0") +pico_set_program_version(udpih "4") diff --git a/pico/Makefile b/pico/Makefile index 6ec1cd0..55caf46 100644 --- a/pico/Makefile +++ b/pico/Makefile @@ -1,15 +1,22 @@ -CMAKE_BUILD_DIR := build CMAKE_SOURCE_DIR := . +CMAKE_BUILD_RP2040_DIR := build_rp2040 +CMAKE_BUILD_RP2350_DIR := build_rp2350 -.PHONY: all clean $(CMAKE_BUILD_DIR)/Makefile $(CMAKE_BUILD_DIR)/udpih.uf2 +.PHONY: all clean $(CMAKE_BUILD_RP2040_DIR)/Makefile $(CMAKE_BUILD_RP2040_DIR)/udpih.uf2 $(CMAKE_BUILD_RP2350_DIR)/Makefile $(CMAKE_BUILD_RP2350_DIR)/udpih.uf2 -all: $(CMAKE_BUILD_DIR)/udpih.uf2 +all: $(CMAKE_BUILD_RP2040_DIR)/udpih.uf2 $(CMAKE_BUILD_RP2350_DIR)/udpih.uf2 -$(CMAKE_BUILD_DIR)/Makefile: $(CMAKE_SOURCE_DIR)/CMakeLists.txt - cmake -S $(