Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions .github/workflows/run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ on:
push:
branches:
- main
pull_request:
paths-ignore:
- 'README.md'
- 'LICENSE'
- 'Dockerfile'
- '**/README.md'
permissions:
contents: write
jobs:
Expand All @@ -16,7 +22,7 @@ jobs:
apk add clang build-base automake autoconf zlib-dev python3 zip curl unzip sudo

- name: Cloning and Building lastest pspsdk
run: |
run: |
git clone https://github.com/pspdev/pspsdk

- name: Bootstrap sdk and build
Expand All @@ -28,24 +34,26 @@ jobs:
make install

- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v4
with:
submodules: recursive

- name: Update psp-cfw-sdk
run: curl -OJL "https://github.com/pspdev/psp-cfw-sdk/releases/download/latest/psp-cfw-sdk.zip"

- name: Extract psp-cfw-sdk
run: sudo unzip -o psp-cfw-sdk.zip -d /

- name: Build
run: make clean && make
run: |
psp-cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j

- name: Compress
run: |
cd dist
zip -r ../ARK-5.zip .

- name: Upload
uses: actions/upload-artifact@v4
with:
Expand All @@ -54,6 +62,7 @@ jobs:
release:
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- name: Download artifacts
uses: actions/download-artifact@v8
Expand All @@ -69,6 +78,3 @@ jobs:
files: ARK-5.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}



15 changes: 11 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
cmake_minimum_required(VERSION 3.28)

if(NOT DEFINED ENV{PSPDEV})
message(FATAL_ERROR "Please define PSPDEV to point to your PSPDEV path!")
endif()

set(CMAKE_TOOLCHAIN_FILE "$ENV{PSPDEV}/psp/share/pspdev.cmake" CACHE PATH "toolchain file")
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

project(ark5 VERSION 1.0 LANGUAGES C ASM)
set(PSPCFWSDK_PATH "" CACHE PATH "Path to local psp-cfw-sdk (for local development)")

Expand Down Expand Up @@ -41,8 +48,8 @@ add_subdirectory(VSHControl)
add_subdirectory(XMBControl)

add_custom_target(dist ALL
DEPENDS
inferno
DEPENDS
inferno
popcorn
stargate
systemctrl
Expand All @@ -58,7 +65,7 @@ add_custom_target(dist ALL
vitaplus_genbtcnf

WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}

COMMAND mkdir -p ${FLASH0_DIR}

#Create compressed prx modules
Expand All @@ -72,7 +79,7 @@ add_custom_target(dist ALL
COMMAND python3 $<TARGET_PROPERTY:tool_pspgz,EXEC> ${FLASH0_DIR}/ark_vitacompat.prx ${BUILDTOOLS}/gz/SystemControl.hdr "$<TARGET_FILE:vitacompat>" VitaCompat 0x3007
COMMAND python3 $<TARGET_PROPERTY:tool_pspgz,EXEC> ${FLASH0_DIR}/ark_vitapops.prx ${BUILDTOOLS}/gz/SystemControl.hdr "$<TARGET_FILE:vitapops>" VitaPopsCompat 0x3007
COMMAND python3 $<TARGET_PROPERTY:tool_pspgz,EXEC> ${FLASH0_DIR}/ark_vitaplus.prx ${BUILDTOOLS}/gz/SystemControl.hdr "$<TARGET_FILE:vitaplus>" VitaPlusCompat 0x3007

#Copy PSP Compat btcnf files
#COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE_DIR:pspcompat>/pstbtcnf_dt.bin ${FLASH0_DIR}/
#COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE_DIR:pspcompat>/pstbtcnf_tt.bin ${FLASH0_DIR}/
Expand Down
3 changes: 2 additions & 1 deletion VSHControl/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
add_prx_module(vshcontrol exports.exp)

target_sources(vshcontrol PRIVATE
target_sources(vshcontrol PRIVATE
main.c
imports.S
src/custom_update.c
Expand Down Expand Up @@ -32,4 +32,5 @@ target_link_libraries(vshcontrol PRIVATE
pspsdk
pspmodinfo
pspkernel
pspnodrm_helper
)
Loading