mirror of
https://github.com/libretro/libretro-super
synced 2025-04-01 19:20:11 +00:00
update psp script
This commit is contained in:
parent
d2ead2f4d2
commit
fd87ec04ed
@ -1,17 +1,29 @@
|
|||||||
display_usage() {
|
display_usage() {
|
||||||
echo -e "\nSetup a RetroArch PSP build environment on Debian/Ubuntu or MSYS2 (MINGW64 only)"
|
echo -e "\nSetup a RetroArch PSP build environment on Debian/Ubuntu or MSYS2 (MINGW64 only)"
|
||||||
echo -e "\nUsage: [install] [build] [export]\n"
|
echo -e "\nUsage: [install] [build] [export]\n"
|
||||||
echo -e "It will install the toolchain in /home/buildbot/tools\n"
|
echo -e "It will install the toolchain in /home/buildbot/tools\n"
|
||||||
echo -e "Arguments:\n"
|
echo -e "Arguments:\n"
|
||||||
echo -e "install:\n install or re(install) the toolchain"
|
echo -e "install:\n install or re(install) the toolchain"
|
||||||
echo -e "build:\n update the source tree and build everything"
|
echo -e "build:\n update the source tree and build everything"
|
||||||
echo -e "export:\n setup the environment for local building, run with source psp-env.sh"
|
echo -e "export:\n setup the environment for local building, run with source psp-env.sh"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fetch()
|
||||||
|
{
|
||||||
|
cd ~
|
||||||
|
if [ ! -d ~/libretro/psp ]; then
|
||||||
|
mkdir libretro
|
||||||
|
cd libretro
|
||||||
|
git clone https://github.com/libretro/libretro-super.git psp
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
platform=psp1
|
||||||
|
|
||||||
if [ "$1" = "install" ]; then
|
if [ "$1" = "install" ]; then
|
||||||
if [[ "$MSYSTEM" == *"MINGW64"* ]]; then
|
if [[ "$MSYSTEM" == *"MINGW64"* ]]; then
|
||||||
|
|
||||||
pacman -S git make p7zip tar wget
|
pacman -S git make p7zip tar wget
|
||||||
|
|
||||||
mkdir -p /home/buildbot/tools/devkitpro
|
mkdir -p /home/buildbot/tools/devkitpro
|
||||||
@ -20,13 +32,10 @@ if [ "$1" = "install" ]; then
|
|||||||
tar zxvf devkitPSP_r16-1-x86_64-win.tar.gz
|
tar zxvf devkitPSP_r16-1-x86_64-win.tar.gz
|
||||||
rm devkitPSP_r16-1-x86_64-win.tar.gz
|
rm devkitPSP_r16-1-x86_64-win.tar.gz
|
||||||
|
|
||||||
cd ~
|
fetch
|
||||||
mkdir libretro
|
|
||||||
cd libretro
|
|
||||||
git clone https://github.com/libretro/libretro-super.git psp
|
|
||||||
|
|
||||||
else
|
else
|
||||||
apt install build-essential git p7zip tar wget
|
|
||||||
|
sudo apt install build-essential git p7zip tar wget
|
||||||
|
|
||||||
mkdir -p tools/devkitpro
|
mkdir -p tools/devkitpro
|
||||||
cd tools/devkitpro
|
cd tools/devkitpro
|
||||||
@ -34,34 +43,41 @@ if [ "$1" = "install" ]; then
|
|||||||
tar jxvf devkitPSP_r16-1-x86_64-linux.tar.bz2
|
tar jxvf devkitPSP_r16-1-x86_64-linux.tar.bz2
|
||||||
rm devkitPSP_r16-1-x86_64-linux.tar.bz2
|
rm devkitPSP_r16-1-x86_64-linux.tar.bz2
|
||||||
|
|
||||||
cd ~
|
fetch
|
||||||
mkdir libretro
|
|
||||||
cd libretro
|
|
||||||
git clone https://github.com/libretro/libretro-super.git psp
|
|
||||||
|
|
||||||
cd ~
|
cd ~
|
||||||
sudo mkdir -p /home/buildbot
|
|
||||||
sudo ln -s ~/tools /home/buildbot/tools
|
|
||||||
|
|
||||||
|
if [ ! -d "/home/buildbot/tools" ]; then
|
||||||
|
sudo mkdir -p /home/buildbot
|
||||||
|
sudo ln -s ~/tools /home/buildbot/tools
|
||||||
|
fi;
|
||||||
fi;
|
fi;
|
||||||
|
echo $platform environment ready...
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
if [ "$1" = "build" ]; then
|
if [ "$1" = "build" ]; then
|
||||||
cd ~/libretro/psp
|
if [ -d "/home/buildbot/tools/devkitpro/" ]; then
|
||||||
git pull
|
cd ~/libretro/psp
|
||||||
./libretro-buildbot-recipe.sh recipes/playstation/psp
|
git pull
|
||||||
|
./libretro-buildbot-recipe.sh recipes/playstation/psp
|
||||||
|
else
|
||||||
|
echo $platform environment not found, run with install again...
|
||||||
|
fi
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
if [ "$1" = "export" ]; then
|
if [ "$1" = "export" ]; then
|
||||||
export PATH=$PATH:/home/buildbot/tools/devkitpro/devkitPSP/bin/
|
if [ -d "/home/buildbot/tools/devkitpro/" ]; then
|
||||||
export DEVKITPRO=/home/buildbot/tools/devkitpro/
|
export PATH=$PATH:/home/buildbot/tools/devkitpro/devkitPSP/bin/
|
||||||
export DEVKITPSP=/home/buildbot/tools/devkitpro/devkitPSP/
|
export DEVKITPRO=/home/buildbot/tools/devkitpro/
|
||||||
export platform=psp1
|
export DEVKITPSP=/home/buildbot/tools/devkitpro/devkitPSP/
|
||||||
export PLATFORM=psp1
|
export platform=psp1
|
||||||
export CC=psp-gcc
|
export PLATFORM=psp1
|
||||||
export CXX=psp-g++
|
export CC=psp-gcc
|
||||||
|
export CXX=psp-g++
|
||||||
echo environment ready...
|
echo $platform environment ready...
|
||||||
|
else
|
||||||
|
echo $platform environment not found, run with install again...
|
||||||
|
fi;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $# -le 0 ]; then
|
if [ $# -le 0 ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user