From 5285a032e1d261519124a85eceaf148c44335884 Mon Sep 17 00:00:00 2001 From: Damian Parrino Date: Sun, 7 Jun 2026 11:08:25 -0300 Subject: [PATCH 1/4] add pthread-emb --- archives/archives.txt | 5 +++-- scripts/032-pthread-emb.sh | 12 ++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100755 scripts/032-pthread-emb.sh diff --git a/archives/archives.txt b/archives/archives.txt index b6be568..887e54d 100644 --- a/archives/archives.txt +++ b/archives/archives.txt @@ -25,7 +25,8 @@ d12e48309d6d1cfdc31a6ebf866c25db 3489179 https://github.com/Mbed-TLS/mbedtls/re - - https://github.com/wargio/NoRSX/tarball/master -> NoRSX.tar.gz - - https://github.com/sergiou87/ps3debugnet/tarball/master -> ps3debugnet.tar.gz - - https://github.com/wargio/ps3soundlib/tarball/master -> ps3soundlib.tar.gz -- - https://github.com/wargio/tiny3d/tarball/master -> tiny3d.tar.gz -- - https://github.com/bucanero/libunrar-ps3/tarball/master -> libunrar.tar.gz +- - https://github.com/wargio/tiny3d/tarball/master -> tiny3d.tar.gz +- - https://github.com/bucanero/libunrar-ps3/tarball/master -> libunrar.tar.gz - - https://github.com/sahlberg/libnfs/tarball/master -> libnfs.tar.gz - - https://github.com/sahlberg/libsmb2/tarball/master -> libsmb2.tar.gz +- - https://github.com/bucanero/pthread-emb-ps3/tarball/master -> pthread-emb-ps3.tar.gz diff --git a/scripts/032-pthread-emb.sh b/scripts/032-pthread-emb.sh new file mode 100755 index 0000000..d86226b --- /dev/null +++ b/scripts/032-pthread-emb.sh @@ -0,0 +1,12 @@ +#!/bin/sh -e +# +# pthread-emb ps3 library + +## Download the source code. +../download.sh pthread-emb-ps3.tar.gz + +## Unpack the source code. +rm -Rf pthread-emb-ps3 && mkdir pthread-emb-ps3 && tar --strip-components=1 --directory=libunrar -xvzf ../archives/pthread-emb-ps3.tar.gz && cd pthread-emb-ps3/platform/psl1ght + +## Compile and install. +${MAKE:-make} install From bf30f0303a52cffda779a5bedc845cce548dc128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Parrino?= Date: Sun, 7 Jun 2026 11:40:12 -0300 Subject: [PATCH 2/4] Fix extraction directory for pthread-emb-ps3 --- scripts/032-pthread-emb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/032-pthread-emb.sh b/scripts/032-pthread-emb.sh index d86226b..b6d8a88 100755 --- a/scripts/032-pthread-emb.sh +++ b/scripts/032-pthread-emb.sh @@ -6,7 +6,7 @@ ../download.sh pthread-emb-ps3.tar.gz ## Unpack the source code. -rm -Rf pthread-emb-ps3 && mkdir pthread-emb-ps3 && tar --strip-components=1 --directory=libunrar -xvzf ../archives/pthread-emb-ps3.tar.gz && cd pthread-emb-ps3/platform/psl1ght +rm -Rf pthread-emb-ps3 && mkdir pthread-emb-ps3 && tar --strip-components=1 --directory=pthread-emb-ps3 -xvzf ../archives/pthread-emb-ps3.tar.gz && cd pthread-emb-ps3/platform/psl1ght ## Compile and install. ${MAKE:-make} install From 698433250c4f8c0013c96809522924ecff1d0bfa Mon Sep 17 00:00:00 2001 From: Damian Parrino Date: Sun, 7 Jun 2026 11:54:21 -0300 Subject: [PATCH 3/4] Update build.yml --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a9a4481..fc48b90 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,6 +23,7 @@ jobs: run: | curl -sL https://github.com/bucanero/ps3toolchain/releases/download/ubuntu-latest-fad3b5fb/ps3dev-ubuntu-latest-2020-08-31.tar.gz | tar xvz -C ./ curl -sL https://github.com/ps3dev/PSL1GHT/raw/master/ppu/include/sysutil/sysutil.h -o ps3dev/ppu/include/sysutil/sysutil.h + curl -sL https://github.com/ps3dev/PSL1GHT/raw/master/ppu/include/sys/atomic.h -o ps3dev/ppu/include/sys/atomic.h curl -sL https://gist.github.com/bucanero/150ec41325894bbd1b4513ecb9e1cfb6/raw/1814600a1b3c804209c4f71dd6316779e160cb25/utime.h -o ps3dev/ppu/ppu/include/sys/utime.h echo "PS3DEV=${GITHUB_WORKSPACE}/ps3dev" >> $GITHUB_ENV echo "PSL1GHT=${GITHUB_WORKSPACE}/ps3dev" >> $GITHUB_ENV From 5236059ac6a74f73022bbb9d606c34397b5988ad Mon Sep 17 00:00:00 2001 From: Damian Parrino Date: Tue, 16 Jun 2026 18:47:22 -0300 Subject: [PATCH 4/4] fixes --- .github/workflows/build.yml | 7 +++++-- scripts/029-libunrar.sh | 2 +- scripts/032-pthread-emb.sh | 16 ++++++++++++---- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c40b6a9..3f34734 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -150,7 +150,7 @@ jobs: - name: Build Polarssl 1.3.9 run: ./libraries.sh 017 - - name: Build Libcurl 7.64.1 + - name: Build MbedTLS 2.28.10 run: ./libraries.sh 018 - name: Build Libmad 0.15.1b @@ -180,7 +180,7 @@ jobs: - name: Build Tiny3d_libfont run: ./libraries.sh 027 - - name: Build MbedTLS 2.28.10 + - name: Build Libcurl 7.64.1 run: ./libraries.sh 028 - name: Build Libunrar @@ -192,6 +192,9 @@ jobs: - name: Build Libsmb2 run: ./libraries.sh 031 + - name: Build Pthread-emb + run: ./libraries.sh 032 + - name: Build Package run: | cd $PSL1GHT diff --git a/scripts/029-libunrar.sh b/scripts/029-libunrar.sh index da45ca6..eb3b1da 100755 --- a/scripts/029-libunrar.sh +++ b/scripts/029-libunrar.sh @@ -17,4 +17,4 @@ cd libunrar ## Compile and install. jobs=$(nproc 2>/dev/null || sysctl -n hw.ncpu) -${MAKE:-make} -j"$jobs" +${MAKE:-make} -j"$jobs" install diff --git a/scripts/032-pthread-emb.sh b/scripts/032-pthread-emb.sh index b6d8a88..e800ef4 100755 --- a/scripts/032-pthread-emb.sh +++ b/scripts/032-pthread-emb.sh @@ -1,12 +1,20 @@ -#!/bin/sh -e -# +#!/usr/bin/env bash +set -eo pipefail # pthread-emb ps3 library +## Source util functions +source ../utils/utils.sh + ## Download the source code. ../download.sh pthread-emb-ps3.tar.gz ## Unpack the source code. -rm -Rf pthread-emb-ps3 && mkdir pthread-emb-ps3 && tar --strip-components=1 --directory=pthread-emb-ps3 -xvzf ../archives/pthread-emb-ps3.tar.gz && cd pthread-emb-ps3/platform/psl1ght +rm -Rf pthread-emb-ps3 +mkdir pthread-emb-ps3 +echo "Unpacking pthread-emb" +extract ../archives/pthread-emb-ps3.tar.gz --strip-components=1 --directory=pthread-emb-ps3 +cd pthread-emb-ps3/platform/psl1ght ## Compile and install. -${MAKE:-make} install +jobs=$(nproc 2>/dev/null || sysctl -n hw.ncpu) +${MAKE:-make} -j"$jobs" install