mirror of
https://github.com/ps5-payload-dev/sdk.git
synced 2026-10-19 01:51:19 -05:00
move homebrew stuff to user/homebrew
This commit is contained in:
1 parent
7886bcd6f6
commit
6bcc3209a8
11 files changed
+28
-19
No files matched your search
+2
-2
@@ -48,5 +48,5 @@ clean:
|
||||
rm -f *.o
|
||||
|
||||
install: crt1.o
|
||||
install -d $(DESTDIR)/target/lib
|
||||
install $^ $(DESTDIR)/target/lib
|
||||
install -d $(DESTDIR)/target/user/homebrew/lib
|
||||
install $^ $(DESTDIR)/target/user/homebrew/lib
|
||||
@@ -20,6 +20,7 @@ SCRIPT_NAME="$(basename "${SCRIPT_PATH}")"
|
||||
SCRIPT_DIR="$(dirname "${SCRIPT_PATH}")"
|
||||
|
||||
PS5_PAYLOAD_SDK="$(realpath "${SCRIPT_DIR}/..")"
|
||||
PS5_PAYLOAD_HBROOT="${PS5_PAYLOAD_SDK}/target/user/homebrew"
|
||||
|
||||
LIBS="-lc"
|
||||
DEPS="-lSceLibcInternal -lSceNet"
|
||||
@@ -35,6 +36,6 @@ export PATH=${SCRIPT_DIR}:$PATH
|
||||
exec -a "${SCRIPT_NAME}" "${SCRIPT_DIR}/clang" \
|
||||
-target x86_64-sie-ps5 \
|
||||
-isysroot "${PS5_PAYLOAD_SDK}" \
|
||||
-isystem "${PS5_PAYLOAD_SDK}/target/include" \
|
||||
-resource-dir "${PS5_PAYLOAD_HBROOT}" \
|
||||
-fno-stack-protector -fno-plt -femulated-tls \
|
||||
$LIBS "$@" $DEPS
|
||||
@@ -20,6 +20,7 @@ SCRIPT_NAME="$(basename "${SCRIPT_PATH}")"
|
||||
SCRIPT_DIR="$(dirname "${SCRIPT_PATH}")"
|
||||
|
||||
PS5_PAYLOAD_SDK="$(realpath "${SCRIPT_DIR}/..")"
|
||||
PS5_PAYLOAD_HBROOT="${PS5_PAYLOAD_SDK}/target/user/homebrew"
|
||||
|
||||
LIBS_C="-lc"
|
||||
LIBS_CXX="-lunwind -lc++abi -lc++"
|
||||
@@ -41,7 +42,8 @@ export PATH=${SCRIPT_DIR}:$PATH
|
||||
exec -a "${SCRIPT_NAME}" "${SCRIPT_DIR}/clang++" \
|
||||
-target x86_64-sie-ps5 \
|
||||
-isysroot "${PS5_PAYLOAD_SDK}" \
|
||||
-stdlib++-isystem "${PS5_PAYLOAD_SDK}/target/include/c++/v1" \
|
||||
-resource-dir "${PS5_PAYLOAD_HBROOT}" \
|
||||
-stdlib++-isystem "${PS5_PAYLOAD_HBROOT}/include/c++/v1" \
|
||||
-fno-stack-protector -fno-plt -femulated-tls \
|
||||
-frtti -fexceptions \
|
||||
$LIBS_C $LIBS_CXX "$@" $LIBS_DEPS
|
||||
@@ -20,6 +20,7 @@ SCRIPT_NAME="$(basename "${SCRIPT_PATH}")"
|
||||
SCRIPT_DIR="$(dirname "${SCRIPT_PATH}")"
|
||||
|
||||
PS5_PAYLOAD_SDK="$(realpath "${SCRIPT_DIR}/..")"
|
||||
PS5_PAYLOAD_HBROOT="${PS5_PAYLOAD_SDK}/target/user/homebrew"
|
||||
|
||||
LLVM_CONFIG="${SCRIPT_DIR}/llvm-config"
|
||||
LLVM_BINDIR=$("${LLVM_CONFIG}" --bindir)
|
||||
@@ -38,6 +39,7 @@ exec "${BIN_PATH}" \
|
||||
-z max-page-size=0x4000 \
|
||||
-T "${PS5_PAYLOAD_SDK}/ldscripts/elf_x86_64.x" \
|
||||
-L "${PS5_PAYLOAD_SDK}/target/lib" \
|
||||
-L "${PS5_PAYLOAD_HBROOT}/lib" \
|
||||
"$@" \
|
||||
"${LIBKERNEL}" \
|
||||
"${PS5_PAYLOAD_SDK}/target/lib/crt1.o"
|
||||
"${PS5_PAYLOAD_HBROOT}/lib/crt1.o"
|
||||
@@ -22,8 +22,8 @@ SCRIPT_DIR="$(dirname "${SCRIPT_PATH}")"
|
||||
PS5_PAYLOAD_SDK="$(realpath "${SCRIPT_DIR}/..")"
|
||||
|
||||
export PKG_CONFIG_DIR=
|
||||
export PKG_CONFIG_SYSROOT_DIR=${PS5_PAYLOAD_SDK}/target
|
||||
export PKG_CONFIG_LIBDIR=${PS5_PAYLOAD_SDK}/target/lib/pkgconfig
|
||||
export PKG_CONFIG_PATH=${PS5_PAYLOAD_SDK}/target/libdata/pkgconfig
|
||||
export PKG_CONFIG_SYSROOT_DIR=${PS5_PAYLOAD_SDK}/target/user/homebrew
|
||||
export PKG_CONFIG_LIBDIR=${PKG_CONFIG_SYSROOT_DIR}/lib/pkgconfig
|
||||
export PKG_CONFIG_PATH=${PKG_CONFIG_SYSROOT_DIR}/libdata/pkgconfig
|
||||
|
||||
exec -a "${SCRIPT_NAME}" pkg-config --static "$@"
|
||||
@@ -16,7 +16,9 @@
|
||||
|
||||
PS5_PAYLOAD_SDK := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))..)
|
||||
PS5_SYSROOT := $(PS5_PAYLOAD_SDK)/target
|
||||
PS5_DEPLOY := $(PS5_PAYLOAD_SDK)/bin/prospero-deploy
|
||||
PS5_HBROOT := /user/homebrew
|
||||
|
||||
PS5_DEPLOY := $(PS5_PAYLOAD_SDK)/bin/prospero-deploy
|
||||
|
||||
AS := $(PS5_PAYLOAD_SDK)/bin/prospero-clang
|
||||
CC := $(PS5_PAYLOAD_SDK)/bin/prospero-clang
|
||||
|
||||
@@ -22,6 +22,8 @@ PS5_PAYLOAD_SDK="$(realpath "${PS5_PAYLOAD_SDK}")"
|
||||
|
||||
export PS5_PAYLOAD_SDK=${PS5_PAYLOAD_SDK}
|
||||
export PS5_SYSROOT=${PS5_PAYLOAD_SDK}/target
|
||||
export PS5_HBROOT=/user/homebrew
|
||||
|
||||
export PS5_DEPLOY=${PS5_PAYLOAD_SDK}/bin/prospero-deploy
|
||||
|
||||
export CC=${PS5_PAYLOAD_SDK}/bin/prospero-clang
|
||||
|
||||
+4
-4
@@ -21,7 +21,7 @@ all:
|
||||
clean:
|
||||
|
||||
install:
|
||||
install -d $(DESTDIR)/target
|
||||
cp -r freebsd/. $(DESTDIR)/target/include
|
||||
cp -r khronos/. $(DESTDIR)/target/include
|
||||
cp -r ps5/. $(DESTDIR)/target/include/ps5
|
||||
install -d $(DESTDIR)/target/user/homebrew/include
|
||||
cp -r freebsd/. $(DESTDIR)/target/user/homebrew/include
|
||||
cp -r khronos/. $(DESTDIR)/target/user/homebrew/include
|
||||
cp -r ps5/. $(DESTDIR)/target/user/homebrew/include/ps5
|
||||
+2
-2
@@ -47,6 +47,6 @@ clean:
|
||||
rm -f *.a *.o
|
||||
|
||||
install: $(ARCHIVE)
|
||||
install -d $(DESTDIR)/target/lib
|
||||
install $^ $(DESTDIR)/target/lib
|
||||
install -d $(DESTDIR)/target/user/homebrew/lib
|
||||
install $^ $(DESTDIR)/target/user/homebrew/lib
|
||||
|
||||
@@ -34,7 +34,7 @@ tar xf $TEMPDIR/llvm.tar.xz -C $TEMPDIR || exit 1
|
||||
|
||||
${CMAKE} -S $TEMPDIR/llvm-project-$LLVM_VER.src/runtimes \
|
||||
-B $TEMPDIR/build \
|
||||
-DCMAKE_INSTALL_PREFIX="${PS5_SYSROOT}" \
|
||||
-DCMAKE_INSTALL_PREFIX="${PS5_HBROOT}" \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_CXX_FLAGS="-nostdlib++" \
|
||||
-DLLVM_ENABLE_RUNTIMES="libunwind;libcxxabi;libcxx" \
|
||||
@@ -56,4 +56,4 @@ ${CMAKE} -S $TEMPDIR/llvm-project-$LLVM_VER.src/runtimes \
|
||||
-DLIBUNWIND_IS_BAREMETAL=YES \
|
||||
-DLIBUNWIND_ENABLE_SHARED=NO \
|
||||
-DLIBUNWIND_USE_COMPILER_RT=NO || exit 1
|
||||
${MAKE} -C $TEMPDIR/build install DESTDIR="/"
|
||||
${MAKE} -C $TEMPDIR/build install DESTDIR="${PS5_SYSROOT}"
|
||||
+2
-2
@@ -64,5 +64,5 @@ clean:
|
||||
rm -f *.o *.so $(NID_DB)
|
||||
|
||||
install: $(SHARED)
|
||||
install -d $(DESTDIR)/target/lib
|
||||
install $(SHARED) $(DESTDIR)/target/lib
|
||||
install -d $(DESTDIR)/target/user/homebrew/lib
|
||||
install $(SHARED) $(DESTDIR)/target/user/homebrew/lib
|
||||
Reference in new issue
Block a user